test_bug514660.xhtml (1043B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet type="text/css" href="chrome://global/skin"?> 3 <?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css" 4 type="text/css"?> 5 <!-- 6 https://bugzilla.mozilla.org/show_bug.cgi?id=514660 7 --> 8 <window title="Mozilla Bug 504311" 9 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 10 onload="doTest()"> 11 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 12 <body xmlns="http://www.w3.org/1999/xhtml"> 13 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=514660" 14 target="_blank">Mozilla Bug 514660</a> 15 <textarea></textarea> 16 </body> 17 <!-- test code goes here --> 18 <script type="application/javascript"> 19 <![CDATA[ 20 SimpleTest.waitForExplicitFinish(); 21 22 function doTest() 23 { 24 var viewer = window.docShell.docViewer; 25 viewer.authorStyleDisabled = true; 26 27 document.documentElement.getBoundingClientRect(); 28 ok(true, "Didn't crash"); 29 30 viewer.authorStyleDisabled = false; 31 32 SimpleTest.finish(); 33 } 34 ]]></script> 35 </window>