mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
54
dom/xbl/test/file_bug844783.xhtml
Normal file
54
dom/xbl/test/file_bug844783.xhtml
Normal file
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue