test_bug749186.html (1313B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=749186 5 Note that this is a crashtest, but because of the special privileges 6 required, it needs to be run as a mochitest. Thus, the expected 7 behavior of this test is that it actually loads and doesn't crash the 8 browser. 9 --> 10 <head> 11 <title>Test for Bug 749186 (Crashtest)</title> 12 <script src="/tests/SimpleTest/SimpleTest.js"></script> 13 <script> 14 function endTest() { 15 ok(true, 'test finished without crashing'); 16 SimpleTest.finish(); 17 } 18 19 function removeBoldStyle() { 20 document.getElementById('b').removeAttribute('style'); 21 SpecialPowers.pushPrefEnv({'set': [['font.size.inflation.emPerLine', 0]]},endTest); 22 } 23 24 function startTest() { 25 SimpleTest.waitForExplicitFinish(); 26 SimpleTest.requestFlakyTimeout("untriaged"); 27 SpecialPowers.pushPrefEnv({'set': [['font.size.inflation.emPerLine', 8]]},removeBoldStyle); 28 } 29 30 startTest(); 31 </script> 32 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 33 </head> 34 35 <body> 36 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=749186">Bug 749186</a> 37 <iframe id="a" style="display: none;"></iframe> 38 <div id="b" style="display: inline;"></div> 39 </body> 40 </html>