tor-browser

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

test_bug862540.html (805B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=862540
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 862540</title>
      9  <script src="/tests/SimpleTest/SimpleTest.js"></script>
     10  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     11  <script type="application/javascript">
     12 
     13  /** Test for Bug 862540 */
     14   window.status = 5;
     15   is(window.status, "5", "Should be able to get 5");
     16 
     17   window.status = { toString() { return "foo"; } };
     18   ok(window.status === "foo", "Should be coercing window.status to string");
     19 
     20  </script>
     21 </head>
     22 <body>
     23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=862540">Mozilla Bug 862540</a>
     24 <p id="display"></p>
     25 <div id="content" style="display: none">
     26 
     27 </div>
     28 <pre id="test">
     29 </pre>
     30 </body>
     31 </html>