4 https://bugzilla.mozilla.org/show_bug.cgi?id=591198
7 <title>Test for Bug
591198</title>
8 <script type=
"text/javascript" src=
"/MochiKit/packed.js"></script>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css">
12 <body onload=
"gen.next();">
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=591198">Mozilla Bug
591198</a>
14 <iframe id=iframe
></iframe>
16 <script class=
"testbody" type=
"text/javascript;version=1.8">
18 SimpleTest.waitForExplicitFinish();
23 let iframe = $('iframe');
24 window.addEventListener(
"message", function(e) {
25 gen.send(JSON.parse(e.data));
28 iframe.src =
"file_bug591198_inner.html";
30 is(res.widths[
0], res.widths[
2],
"binding was rendered");
31 isnot(res.widths[
0], res.widths[
1],
"binding was rendered");
32 is(res.anonChildCount,
2,
"correct number of anon children");
34 iframe.src =
"http://noxul.example.com/tests/content/xbl/test/file_bug591198_inner.html";
36 is(res.widths[
0], res.widths[
1],
"binding was not rendered");
37 isnot(res.widths[
0], res.widths[
2],
"binding was not rendered");
38 is(
"anonChildCount" in res, false,
"no anon children");