summaryrefslogtreecommitdiffstats
path: root/dom/xbl/test/test_bug591198.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /dom/xbl/test/test_bug591198.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/xbl/test/test_bug591198.html')
-rw-r--r--dom/xbl/test/test_bug591198.html46
1 files changed, 46 insertions, 0 deletions
diff --git a/dom/xbl/test/test_bug591198.html b/dom/xbl/test/test_bug591198.html
new file mode 100644
index 000000000..2c7df3613
--- /dev/null
+++ b/dom/xbl/test/test_bug591198.html
@@ -0,0 +1,46 @@
+<!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">
+<script class="testbody" type="text/javascript;version=1.8">
+
+SimpleTest.waitForExplicitFinish();
+
+gen = runTest();
+
+function runTest() {
+ let iframe = $('iframe');
+ window.addEventListener("message", function(e) {
+ gen.send(JSON.parse(e.data));
+ }, false);
+
+ 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");
+
+ iframe.src = "http://noxul.example.com/tests/dom/xbl/test/file_bug591198_inner.html";
+ res = (yield);
+ 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();
+ yield undefined;
+}
+
+</script>
+</pre>
+</body>
+</html>