tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug812817.xhtml (1157B)


      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=812817
      7 -->
      8 <window title="Mozilla Bug 812817"
      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 <panel id="panel" width="200" height="200" onpopupshown="continueTest()">
     13 </panel>
     14 <body xmlns="http://www.w3.org/1999/xhtml">
     15 <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=812817"
     16   target="_blank">Mozilla Bug 812817</a>
     17 </body>
     18  <!-- test code goes here -->
     19 <script type="application/javascript">
     20 <![CDATA[
     21 SimpleTest.waitForExplicitFinish();
     22 
     23 var panel = document.getElementById('panel');
     24 function doTest() {
     25  panel.openPopup(null, '', 500, 500, false, false, null);
     26 }
     27 
     28 function continueTest() {
     29  panel.style.background = "url(blue-32x32.png)";
     30  setTimeout(function() {
     31    ok(true, "Didn't crash");
     32    SimpleTest.finish();
     33  }, 50);
     34 }
     35 
     36 ]]></script>
     37 </window>