layout/xul/test/test_bug372685.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <?xml version="1.0"?>
     2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" type="text/css"?>
     4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     5         xmlns:html="http://www.w3.org/1999/xhtml"
     6         title="Test for Bug 372685">
     7 <!--
     8 https://bugzilla.mozilla.org/show_bug.cgi?id=372685
     9 -->
    11   <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
    13 <menuitem id="a" style="display: -moz-stack;">
    14 <box id="b" style="display: -moz-popup; ">
    15 <box id="c" style="position: fixed;"></box>
    16 </box>
    17 </menuitem>
    19 <script class="testbody" type="application/javascript">
    20 <![CDATA[
    22 function removestyles(i){
    23           document.getElementById('a').removeAttribute('style');
    24 	  var x=document.getElementById('html_body').offsetHeight;
    25 	  is(0, 0, "this is a crash test, so always ok if we survive this far");
    26           SimpleTest.finish();
    27 }
    28 function do_test() {
    29           setTimeout(removestyles,200);
    30 }
    32 SimpleTest.waitForExplicitFinish();
    34 ]]>
    35 </script>
    37 <body  id="html_body" xmlns="http://www.w3.org/1999/xhtml">
    38 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=372685">Mozilla Bug 372685</a>
    39 <p id="display"></p>
    41 <pre id="test">
    42 </pre>
    43 <script>
    44 addLoadEvent(do_test);
    45 </script>
    46 </body>
    49 </window>

mercurial