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..a4e1b073b60eeb7acab827543d5368254b10ac31 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/Document/createCDATASection.html |
@@ -0,0 +1,17 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../js/resources/js-test-pre.js"></script> |
+</head> |
+<body> |
+<script> |
+var domParser = new DOMParser(); |
+window.xmlDoc = domParser.parseFromString("<example></example>", "text/xml"); |
arv (Not doing code reviews)
2013/08/20 17:47:06
xmlDoc is not a property of window. Use var instea
arv (Not doing code reviews)
2013/08/20 17:47:06
You do not need to create a DOMParser for this tes
|
+shouldBe('"createCDATASection" in window.xmlDoc', 'true'); |
arv (Not doing code reviews)
2013/08/20 17:47:06
s/window.xmlDoc/xmlDoc/
|
+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> |