|
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 --> |
|
10 |
|
11 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
12 |
|
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> |
|
18 |
|
19 <script class="testbody" type="application/javascript"> |
|
20 <![CDATA[ |
|
21 |
|
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 } |
|
31 |
|
32 SimpleTest.waitForExplicitFinish(); |
|
33 |
|
34 ]]> |
|
35 </script> |
|
36 |
|
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> |
|
40 |
|
41 <pre id="test"> |
|
42 </pre> |
|
43 <script> |
|
44 addLoadEvent(do_test); |
|
45 </script> |
|
46 </body> |
|
47 |
|
48 |
|
49 </window> |