mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
c1612afa13
We use XPCNativeWrapper.unwrap rather than .wrappedJSObject so that the tests are agnostic to whether there's an Xray wrapper or not. I converted test_tree_column_reorder.xul into a chrome test because it does all sorts of crazy introspection on the binding, and it really should be a chrome test anyway.
41 lines
903 B
HTML
41 lines
903 B
HTML
<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>
|
|
|