blob: be72fc32c8ded9936f6c2569242d7d0b88bea783 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<bindings xmlns="http://www.mozilla.org/xbl">
<binding id="xbltest">
<implementation>
<constructor>
<![CDATA[
var win = XPCNativeWrapper.unwrap(window);
win.str += "constructor "
win.testFinished();
]]>
</constructor>
</implementation>
</binding>
</bindings>
</head>
<body>
<span id="test" style="-moz-binding: url(#xbltest)"></span>
<script class="testbody" type="text/javascript">
<![CDATA[
var testsToFinish = 2;
var str = "";
function testFinished() {
--testsToFinish;
if (!testsToFinish) {
document.getElementById("test").textContent = str;
document.documentElement.className = '';
}
}
window.onload = function() {
str += "onload ";
testFinished();
}
]]>
</script>
</body>
</html>
|