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