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

Unified Diff: LayoutTests/fast/dom/Document/createCDATASection.html

Issue 22911020: Block "]]>" in createCDataSection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added trailing whitespace to "expected". Created 7 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/createCDATASection-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/Document/createCDATASection.html
diff --git a/LayoutTests/fast/dom/Document/createCDATASection.html b/LayoutTests/fast/dom/Document/createCDATASection.html
new file mode 100644
index 0000000000000000000000000000000000000000..735ee073bdc23ae7a5cf3676f61b8b827b3a9728
--- /dev/null
+++ b/LayoutTests/fast/dom/Document/createCDATASection.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+window.xmlDoc = document.implementation.createDocument(null, "example", null);
+shouldBe('"createCDATASection" in window.xmlDoc', 'true');
+shouldBeEqualToString('window.xmlDoc.createCDATASection("Hello").data', "Hello");
+shouldThrow('window.xmlDoc.createCDATASection("Ha]]>o")');
+shouldBeEqualToString('window.xmlDoc.createCDATASection(null).data', "null");
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/createCDATASection-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698