2010-09-16 02:53:01 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<!--
|
|
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=591198
|
|
|
|
-->
|
|
|
|
<head>
|
|
|
|
<title>Test for Bug 591198</title>
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
|
|
|
|
</head>
|
|
|
|
<body onload="gen.next();">
|
|
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=591198">Mozilla Bug 591198</a>
|
|
|
|
<iframe id=iframe></iframe>
|
|
|
|
<pre id="test">
|
2017-02-23 00:10:07 +03:00
|
|
|
<script class="testbody" type="text/javascript">
|
2010-09-16 02:53:01 +04:00
|
|
|
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
|
|
|
|
gen = runTest();
|
|
|
|
|
2016-12-01 12:11:32 +03:00
|
|
|
function* runTest() {
|
2010-09-16 02:53:01 +04:00
|
|
|
let iframe = $('iframe');
|
|
|
|
window.addEventListener("message", function(e) {
|
2016-12-01 12:11:32 +03:00
|
|
|
gen.next(JSON.parse(e.data));
|
2017-01-17 13:50:25 +03:00
|
|
|
});
|
2010-09-16 02:53:01 +04:00
|
|
|
|
|
|
|
iframe.src = "file_bug591198_inner.html";
|
|
|
|
let res = (yield);
|
|
|
|
is(res.widths[0], res.widths[2], "binding was rendered");
|
|
|
|
isnot(res.widths[0], res.widths[1], "binding was rendered");
|
|
|
|
is(res.anonChildCount, 2, "correct number of anon children");
|
|
|
|
|
2014-01-10 07:03:25 +04:00
|
|
|
iframe.src = "http://noxul.example.com/tests/dom/xbl/test/file_bug591198_inner.html";
|
2014-09-16 03:30:47 +04:00
|
|
|
res = (yield);
|
2010-09-16 02:53:01 +04:00
|
|
|
is(res.widths[0], res.widths[1], "binding was not rendered");
|
|
|
|
isnot(res.widths[0], res.widths[2], "binding was not rendered");
|
|
|
|
is("anonChildCount" in res, false, "no anon children");
|
|
|
|
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|