Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Unified Diff: LayoutTests/fast/dom/EntityReference/script-tests/readonly-exceptions.js

Issue 14990005: Remove ENTITY_REFERENCE_NODE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some empty lines Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/EntityReference/script-tests/readonly-exceptions.js
diff --git a/LayoutTests/fast/dom/EntityReference/script-tests/readonly-exceptions.js b/LayoutTests/fast/dom/EntityReference/script-tests/readonly-exceptions.js
deleted file mode 100644
index af24657d82db3e8a7fbbe4877d3d3d63b109d477..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/EntityReference/script-tests/readonly-exceptions.js
+++ /dev/null
@@ -1,31 +0,0 @@
-description("Test to make sure EntityReference nodes are always treated readonly")
-
-var xmlDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", null);
-var xmlDoc2 = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", null);
-var entityReference = xmlDoc.createEntityReference("gt");
-
-shouldThrow("xmlDoc2.adoptNode(entityReference)");
-shouldBe("entityReference.ownerDocument", "xmlDoc")
-
-// nodeValue is defined to be null for Entity Reference nodes, and thus should silently fail to modify
-// Spec is ambigious as to if we should throw here or not. I've requested clarification:
-// http://lists.w3.org/Archives/Public/www-dom/2008JanMar/0009.html
-shouldThrow("entityReference.nodeValue = 'foo'");
-shouldBe("entityReference.nodeValue", "null");
-
-shouldThrow("entityReference.prefix = 'foo'");
-shouldBe("entityReference.prefix", "null");
-
-shouldThrow("entityReference.textContent = 'foo'");
-shouldBe("entityReference.textContent", "'>'");
-
-var childrenBeforeFailedAppend = entityReference.childNodes.length;
-shouldBe("childrenBeforeFailedAppend", "1");
-var text = document.createTextNode("FAIL");
-shouldThrow("entityReference.appendChild(text)");
-shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");
-
-childrenBeforeFailedAppend = entityReference.childNodes.length;
-shouldBe("childrenBeforeFailedAppend", "1");
-shouldThrow("entityReference.insertBefore(text, entityReference.firstChild)");
-shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");
« no previous file with comments | « LayoutTests/fast/dom/EntityReference/script-tests/TEMPLATE.html ('k') | LayoutTests/fast/dom/Node/initial-values-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698