summaryrefslogtreecommitdiffstats
path: root/dom/xbl/test/file_bug844783.xhtml
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/file_bug844783.xhtml
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/file_bug844783.xhtml')
-rw-r--r--dom/xbl/test/file_bug844783.xhtml54
1 files changed, 54 insertions, 0 deletions
diff --git a/dom/xbl/test/file_bug844783.xhtml b/dom/xbl/test/file_bug844783.xhtml
new file mode 100644
index 000000000..a2e04edf2
--- /dev/null
+++ b/dom/xbl/test/file_bug844783.xhtml
@@ -0,0 +1,54 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=844783
+-->
+<head>
+ <bindings xmlns="http://www.mozilla.org/xbl">
+ <binding id="testBinding">
+ <implementation>
+ <constructor>
+ is(windowExpando, 42, "Expandos show up without explicit waiving");
+ someFunction();
+ ok(called, "Function called");
+ go();
+ </constructor>
+ </implementation>
+ <handlers>
+ <handler event="testevent" action="is(boundExpando, 11, 'See expandos on |this|'); SimpleTest.finish();"/>
+ </handlers>
+ </binding>
+ </bindings>
+ <script type="application/javascript">
+ <![CDATA[
+
+ is = parent.is;
+ ok = parent.ok;
+ SimpleTest = parent.SimpleTest;
+ window.windowExpando = 42;
+ window.someFunction = function() { ok(true, "Called"); window.called = true; };
+
+ function go() {
+ var bound = document.getElementById('bound');
+ bound.boundExpando = 11;
+ bound.dispatchEvent(new CustomEvent('testevent'));
+ }
+
+ function setup() {
+ // When the bindings are applied, the constructor will be invoked and the
+ // test will continue.
+ document.getElementById('bound').style.MozBinding = 'url(#testBinding)';
+ }
+
+ ]]>
+</script>
+</head>
+<body onload="setup()">
+<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=844783">Mozilla Bug 844783</a>
+<p id="display"></p>
+<div id="content">
+ <div id="bound">Bound element</div>
+</div>
+<pre id="test">
+</pre>
+</body>
+</html>