content/base/test/test_bug553896.xhtml

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 xmlns="http://www.w3.org/1999/xhtml">
     2 <!--
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=553896
     4 -->
     5 <head>
     6   <title>Test for Bug 553896</title>
     7   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     8   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     9 </head>
    10 <body>
    11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=553896">Mozilla Bug 553896</a>
    12 <p id="display"></p>
    13 <div id="content" style="display: none">
    15 </div>
    16 <pre id="test">
    17 <script type="application/javascript">
    18 <![CDATA[
    19 /** Test for Bug 553896 **/
    20 try {
    21   ok(!document.createElement("foo").isEqualNode(null), "Node is equal to null?");
    22 } catch (e) {
    23   ok(false, "Exception was raised.");
    24 }
    25 try {
    26   ok(!document.createAttribute("foo").isEqualNode(null), "Node is equal to null?");
    27 } catch (e) {
    28   ok(false, "Exception was raised.");
    29 }
    30 try {
    31   ok(!document.createTextNode("foo").isEqualNode(null), "Node is equal to null?");
    32 } catch (e) {
    33   ok(false, "Exception was raised.");
    34 }
    35 try {
    36   ok(!document.createCDATASection("foo").isEqualNode(null), "Node is equal to null?");
    37 } catch (e) {
    38   ok(false, "Exception was raised.");
    39 }
    40 try {
    41   ok(!document.createProcessingInstruction("foo", "bar").isEqualNode(null), "Node is equal to null?");
    42 } catch (e) {
    43   ok(false, "Exception was raised.");
    44 }
    45 try {
    46   ok(!document.createComment("foo").isEqualNode(null), "Node is equal to null?");
    47 } catch (e) {
    48   ok(false, "Exception was raised.");
    49 }
    50 try {
    51   ok(!document.isEqualNode(null), "Node is equal to null?");
    52 } catch (e) {
    53   ok(false, "Exception was raised.");
    54 }
    55 try {
    56   ok(!document.implementation.createDocumentType("html", "", "").isEqualNode(null), "Node is equal to null?");
    57 } catch (e) {
    58   ok(false, "Exception was raised.");
    59 }
    60 try {
    61   ok(!document.createDocumentFragment().isEqualNode(null), "Node is equal to null?");
    62 } catch (e) {
    63   ok(false, "Exception was raised.");
    64 }
    65 ]]>
    66 </script>
    67 </pre>
    68 </body>
    69 </html>

mercurial