Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 2 | <!-- |
michael@0 | 3 | https://bugzilla.mozilla.org/show_bug.cgi?id=381167 |
michael@0 | 4 | --> |
michael@0 | 5 | <head> |
michael@0 | 6 | <title>Test for Bug 381167</title> |
michael@0 | 7 | <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 8 | <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> |
michael@0 | 9 | </head> |
michael@0 | 10 | <body> |
michael@0 | 11 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=381167">Mozilla Bug 381167</a> |
michael@0 | 12 | <p id="display"></p> |
michael@0 | 13 | <div id="content" style="display: none"> |
michael@0 | 14 | |
michael@0 | 15 | </div> |
michael@0 | 16 | <xul:tree> |
michael@0 | 17 | <xul:tree> |
michael@0 | 18 | <xul:treechildren/> |
michael@0 | 19 | <xul:treecol/> |
michael@0 | 20 | </xul:tree> |
michael@0 | 21 | </xul:tree> |
michael@0 | 22 | <pre id="test"> |
michael@0 | 23 | <script type="application/javascript"> |
michael@0 | 24 | |
michael@0 | 25 | /** Test for Bug 381167 **/ |
michael@0 | 26 | |
michael@0 | 27 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 28 | |
michael@0 | 29 | function closeit() { |
michael@0 | 30 | var evt = document.createEvent('KeyEvents'); |
michael@0 | 31 | evt.initKeyEvent('keypress', true, true, |
michael@0 | 32 | window, |
michael@0 | 33 | true, false, false, false, |
michael@0 | 34 | 'W'.charCodeAt(0), 0); |
michael@0 | 35 | window.dispatchEvent(evt); |
michael@0 | 36 | |
michael@0 | 37 | setTimeout(finish, 200); |
michael@0 | 38 | } |
michael@0 | 39 | window.addEventListener('load', closeit, false); |
michael@0 | 40 | |
michael@0 | 41 | function finish() |
michael@0 | 42 | { |
michael@0 | 43 | ok(true, "This is a mochikit version of a crash test. To complete is to pass."); |
michael@0 | 44 | SimpleTest.finish(); |
michael@0 | 45 | } |
michael@0 | 46 | </script> |
michael@0 | 47 | </pre> |
michael@0 | 48 | </body> |
michael@0 | 49 | </html> |