layout/xul/test/test_bug372685.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/test/test_bug372685.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,49 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
     1.7 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.8 +        xmlns:html="http://www.w3.org/1999/xhtml"
     1.9 +        title="Test for Bug 372685">
    1.10 +<!--
    1.11 +https://bugzilla.mozilla.org/show_bug.cgi?id=372685
    1.12 +-->
    1.13 +
    1.14 +  <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    1.15 +
    1.16 +<menuitem id="a" style="display: -moz-stack;">
    1.17 +<box id="b" style="display: -moz-popup; ">
    1.18 +<box id="c" style="position: fixed;"></box>
    1.19 +</box>
    1.20 +</menuitem>
    1.21 +
    1.22 +<script class="testbody" type="application/javascript">
    1.23 +<![CDATA[
    1.24 +
    1.25 +function removestyles(i){
    1.26 +          document.getElementById('a').removeAttribute('style');
    1.27 +	  var x=document.getElementById('html_body').offsetHeight;
    1.28 +	  is(0, 0, "this is a crash test, so always ok if we survive this far");
    1.29 +          SimpleTest.finish();
    1.30 +}
    1.31 +function do_test() {
    1.32 +          setTimeout(removestyles,200);
    1.33 +}
    1.34 +
    1.35 +SimpleTest.waitForExplicitFinish();
    1.36 +
    1.37 +]]>
    1.38 +</script>
    1.39 +
    1.40 +<body  id="html_body" xmlns="http://www.w3.org/1999/xhtml">
    1.41 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=372685">Mozilla Bug 372685</a>
    1.42 +<p id="display"></p>
    1.43 +
    1.44 +<pre id="test">
    1.45 +</pre>
    1.46 +<script>
    1.47 +addLoadEvent(do_test);
    1.48 +</script>
    1.49 +</body>
    1.50 +
    1.51 +
    1.52 +</window>

mercurial