dom/bindings/test/test_bug788369.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=788369
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 788369</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11 </head>
    12 <body>
    13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=788369">Mozilla Bug 788369</a>
    14 <p id="display"></p>
    15 <div id="content" style="display: none">
    16 </div>
    17 <pre id="test">
    18 <script type="application/javascript">
    20 /** Test for Bug 788369 **/
    21 try {
    22   var xhr = new(window.ActiveXObject || XMLHttpRequest)("Microsoft.XMLHTTP");
    23   ok(xhr instanceof XMLHttpRequest, "Should have an XHR object");
    24 } catch (e) {
    25   ok(false, "Should not throw exception when constructing: " + e);
    26 }
    27 </script>
    28 </pre>
    29 </body>
    30 </html>

mercurial