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

Unified Diff: LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt

Issue 23532055: XMLSerializer.serializeToString() should throw exception for invalid node value. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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/xmlserializer-serialize-to-string-exception-expected.txt
diff --git a/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt b/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..30408856d454444ed9070cdc8db7048c8db13a49
--- /dev/null
+++ b/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt
@@ -0,0 +1,47 @@
+This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise.
+
+1. Verifying XMLSerializer.serializeToString() should THROW exception with node value = null
+Exception thrown = [TypeError: Invalid node value.]
+PASS
+
+2. Verifying XMLSerializer.serializeToString() should THROW exception with node value = undefined
+Exception thrown = [TypeError: Invalid node value.]
+PASS
+
+3. Verifying XMLSerializer.serializeToString() should THROW exception with node value = <html><title>Hello World</title></html>
+Exception thrown = [TypeError: Invalid node value.]
+PASS
+
+4. Verifying XMLSerializer.serializeToString() should THROW exception with node value = [object HTMLCollection]
+Exception thrown = [TypeError: Invalid node value.]
+PASS
+
+5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDocument]
+PASS
+
+6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+PASS
+
+7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+PASS
+
+8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDivElement]
+PASS
+
+9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHeadingElement]
+PASS
+
+10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLUnknownElement]
+PASS
+
+11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDocument]
+PASS
+
+12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+PASS
+
+13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Document]
+PASS
+
+14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Element]
+PASS
« no previous file with comments | « LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html ('k') | Source/core/xml/XMLSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698