tor-browser

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

test_jsimplemented_subclassing.html (768B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1400275
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1400275</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 1400275 */
     14    class Foo extends RTCPeerConnection {
     15    }
     16 
     17    var obj = new Foo();
     18    is(Object.getPrototypeOf(obj), Foo.prototype,
     19       "Should have the right prototype");
     20  </script>
     21 </head>
     22 <body>
     23 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1400275">Mozilla Bug 1400275</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>