1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug553896.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,69 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=553896 1.7 +--> 1.8 +<head> 1.9 + <title>Test for Bug 553896</title> 1.10 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.12 +</head> 1.13 +<body> 1.14 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=553896">Mozilla Bug 553896</a> 1.15 +<p id="display"></p> 1.16 +<div id="content" style="display: none"> 1.17 + 1.18 +</div> 1.19 +<pre id="test"> 1.20 +<script type="application/javascript"> 1.21 +<![CDATA[ 1.22 +/** Test for Bug 553896 **/ 1.23 +try { 1.24 + ok(!document.createElement("foo").isEqualNode(null), "Node is equal to null?"); 1.25 +} catch (e) { 1.26 + ok(false, "Exception was raised."); 1.27 +} 1.28 +try { 1.29 + ok(!document.createAttribute("foo").isEqualNode(null), "Node is equal to null?"); 1.30 +} catch (e) { 1.31 + ok(false, "Exception was raised."); 1.32 +} 1.33 +try { 1.34 + ok(!document.createTextNode("foo").isEqualNode(null), "Node is equal to null?"); 1.35 +} catch (e) { 1.36 + ok(false, "Exception was raised."); 1.37 +} 1.38 +try { 1.39 + ok(!document.createCDATASection("foo").isEqualNode(null), "Node is equal to null?"); 1.40 +} catch (e) { 1.41 + ok(false, "Exception was raised."); 1.42 +} 1.43 +try { 1.44 + ok(!document.createProcessingInstruction("foo", "bar").isEqualNode(null), "Node is equal to null?"); 1.45 +} catch (e) { 1.46 + ok(false, "Exception was raised."); 1.47 +} 1.48 +try { 1.49 + ok(!document.createComment("foo").isEqualNode(null), "Node is equal to null?"); 1.50 +} catch (e) { 1.51 + ok(false, "Exception was raised."); 1.52 +} 1.53 +try { 1.54 + ok(!document.isEqualNode(null), "Node is equal to null?"); 1.55 +} catch (e) { 1.56 + ok(false, "Exception was raised."); 1.57 +} 1.58 +try { 1.59 + ok(!document.implementation.createDocumentType("html", "", "").isEqualNode(null), "Node is equal to null?"); 1.60 +} catch (e) { 1.61 + ok(false, "Exception was raised."); 1.62 +} 1.63 +try { 1.64 + ok(!document.createDocumentFragment().isEqualNode(null), "Node is equal to null?"); 1.65 +} catch (e) { 1.66 + ok(false, "Exception was raised."); 1.67 +} 1.68 +]]> 1.69 +</script> 1.70 +</pre> 1.71 +</body> 1.72 +</html>