layout/xul/test/test_bug394800.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/test/test_bug394800.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml"
     1.5 +      xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     1.6 +<head>
     1.7 +<!--
     1.8 +https://bugzilla.mozilla.org/show_bug.cgi?id=394800
     1.9 +-->
    1.10 +  <title>Test Mozilla bug 394800</title>
    1.11 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +
    1.13 +<script class="testbody" type="application/javascript">
    1.14 +
    1.15 +function do_test()
    1.16 +{
    1.17 +  var x = document.getElementById("x");
    1.18 +  x.parentNode.removeChild(x);
    1.19 +  is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far");
    1.20 +  SimpleTest.finish();
    1.21 +}
    1.22 +
    1.23 +SimpleTest.waitForExplicitFinish();
    1.24 +</script>
    1.25 +</head>
    1.26 +
    1.27 +<body>
    1.28 +
    1.29 +<xul:menulist><xul:tooltip/><div><span><xul:hbox id="x"/></span></div></xul:menulist>
    1.30 +
    1.31 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=394800">Mozilla Bug 394800</a>
    1.32 +<p id="display"></p>
    1.33 +
    1.34 +<pre id="test">
    1.35 +</pre>
    1.36 +
    1.37 +<script>
    1.38 +  addLoadEvent(do_test);
    1.39 +</script>
    1.40 +
    1.41 +</body>
    1.42 +</html>

mercurial