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