1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/bugs/394676-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.5 +<head> 1.6 + <bindings xmlns="http://www.mozilla.org/xbl"> 1.7 + <binding id="xbltest"> 1.8 + <implementation> 1.9 + <constructor> 1.10 + <![CDATA[ 1.11 + var win = XPCNativeWrapper.unwrap(window); 1.12 + win.str += "constructor " 1.13 + win.testFinished(); 1.14 + ]]> 1.15 + </constructor> 1.16 + </implementation> 1.17 + </binding> 1.18 + </bindings> 1.19 +</head> 1.20 +<body> 1.21 +<span id="test" style="-moz-binding: url(#xbltest)"></span> 1.22 +<script class="testbody" type="text/javascript"> 1.23 +<![CDATA[ 1.24 + var testsToFinish = 2; 1.25 + var str = ""; 1.26 + 1.27 + function testFinished() { 1.28 + --testsToFinish; 1.29 + if (!testsToFinish) { 1.30 + document.getElementById("test").textContent = str; 1.31 + document.documentElement.className = ''; 1.32 + } 1.33 + } 1.34 + 1.35 + window.onload = function() { 1.36 + str += "onload "; 1.37 + testFinished(); 1.38 + } 1.39 +]]> 1.40 +</script> 1.41 +</body> 1.42 +</html> 1.43 +