|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=396367 |
|
5 --> |
|
6 <head> |
|
7 <title>Test for Bug 396367</title> |
|
8 <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
|
9 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> |
|
10 <style>select::after { content:"m"; }</style> |
|
11 <script> |
|
12 SimpleTest.waitForExplicitFinish(); |
|
13 |
|
14 function finish() { |
|
15 ok(true, "didn't crash"); |
|
16 var docviewer = getdocviewer(); |
|
17 docviewer.textZoom = 1; |
|
18 SimpleTest.finish(); |
|
19 } |
|
20 |
|
21 function getdocviewer() { |
|
22 var navigator1 = top.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation); |
|
23 var docShell = navigator1.QueryInterface(Components.interfaces.nsIDocShell); |
|
24 var docviewer = docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer); |
|
25 return docviewer; |
|
26 } |
|
27 </script> |
|
28 </head> |
|
29 <body> |
|
30 |
|
31 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=396367">Mozilla Bug 396367</a> |
|
32 <p id="display"></p> |
|
33 <div id="content" style="display: none"> |
|
34 |
|
35 </div> |
|
36 <pre id="test"> |
|
37 |
|
38 <div style="overflow: scroll; float: left;"> |
|
39 |
|
40 <select></select> |
|
41 |
|
42 <li style="display: table-cell;"> |
|
43 |
|
44 <script> |
|
45 var docviewer = getdocviewer(); |
|
46 docviewer.textZoom=Math.floor(10*Math.random())/4+0.2; |
|
47 document.documentElement.offsetHeight; |
|
48 setTimeout(finish, 0); |
|
49 </script> |
|
50 </li> |
|
51 </div> |
|
52 |
|
53 |
|
54 </pre> |
|
55 </body> |
|
56 </html> |