1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/test/test_bug381167.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=381167 1.7 +--> 1.8 +<head> 1.9 + <title>Test for Bug 381167</title> 1.10 + <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> 1.12 +</head> 1.13 +<body> 1.14 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=381167">Mozilla Bug 381167</a> 1.15 +<p id="display"></p> 1.16 +<div id="content" style="display: none"> 1.17 + 1.18 +</div> 1.19 +<xul:tree> 1.20 + <xul:tree> 1.21 + <xul:treechildren/> 1.22 + <xul:treecol/> 1.23 + </xul:tree> 1.24 +</xul:tree> 1.25 +<pre id="test"> 1.26 +<script type="application/javascript"> 1.27 + 1.28 +/** Test for Bug 381167 **/ 1.29 + 1.30 +SimpleTest.waitForExplicitFinish(); 1.31 + 1.32 +function closeit() { 1.33 + var evt = document.createEvent('KeyEvents'); 1.34 + evt.initKeyEvent('keypress', true, true, 1.35 + window, 1.36 + true, false, false, false, 1.37 + 'W'.charCodeAt(0), 0); 1.38 + window.dispatchEvent(evt); 1.39 + 1.40 + setTimeout(finish, 200); 1.41 +} 1.42 +window.addEventListener('load', closeit, false); 1.43 + 1.44 +function finish() 1.45 +{ 1.46 + ok(true, "This is a mochikit version of a crash test. To complete is to pass."); 1.47 + SimpleTest.finish(); 1.48 +} 1.49 +</script> 1.50 +</pre> 1.51 +</body> 1.52 +</html>