content/base/test/test_bug357509.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <html>
     2 <!--
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=357509
     4 -->
     5 <head>
     6     <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>        
     7     <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     8     <script>
     9     function foo(elem) {
    10       rng = document.createRange();
    11       rng.setStartBefore(elem);
    12     }
    13     </script>
    14 </head>
    15 <body>
    16 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=357509">Mozilla Bug 357509</a>
    17 <div style="display: none" id="rangetest">
    18 </div>
    19 <pre id="test">
    20 <script type="text/javascript">
    21 var passed = false;
    22 try {
    23   foo(document.getElementById("rangetest"))
    24   passed = true;
    25 }
    26 catch (e) {
    27   passed = false;
    28 }
    30 <!-- The ok() function tests the first arg -->
    31 ok(passed, "nsIDOMRange.setStartBefore");
    33 </script>
    34 </pre>
    35 </body>
    36 </html>

mercurial