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