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

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

Issue 752153002: Sync XMLSerializer IDL with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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
index c809966e4cefaa9dfb8de60c5eda1d779bc8548d..3ceb7e36f62d1d4fdb57d389979a415198b98a9d 100644
--- a/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt
+++ b/LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception-expected.txt
@@ -1,47 +1,51 @@
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: Failed to execute 'serializeToString' on 'XMLSerializer': Invalid node value.]
+1. Verifying XMLSerializer.serializeToString() should THROW exception with no argument
+Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': 1 argument required, but only 0 present.]
PASS
-2. Verifying XMLSerializer.serializeToString() should THROW exception with node value = undefined
-Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': Invalid node value.]
+2. Verifying XMLSerializer.serializeToString() should THROW exception with argument null
+Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.]
PASS
-3. Verifying XMLSerializer.serializeToString() should THROW exception with node value = <html><title>Hello World</title></html>
-Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': Invalid node value.]
+3. Verifying XMLSerializer.serializeToString() should THROW exception with argument undefined
+Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.]
PASS
-4. Verifying XMLSerializer.serializeToString() should THROW exception with node value = [object HTMLCollection]
-Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': Invalid node value.]
+4. Verifying XMLSerializer.serializeToString() should THROW exception with argument <html><title>Hello World</title></html>
+Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.]
PASS
-5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDocument]
+5. Verifying XMLSerializer.serializeToString() should THROW exception with argument [object HTMLCollection]
+Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.]
PASS
-6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLDocument]
PASS
-7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLHtmlElement]
PASS
-8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDivElement]
+8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLHtmlElement]
PASS
-9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHeadingElement]
+9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLDivElement]
PASS
-10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLUnknownElement]
+10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLHeadingElement]
PASS
-11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDocument]
+11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLUnknownElement]
PASS
-12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
+12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLDocument]
PASS
-13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object XMLDocument]
+13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object HTMLHtmlElement]
PASS
-14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Element]
+14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object XMLDocument]
+PASS
+
+15. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with argument [object Element]
PASS
« no previous file with comments | « LayoutTests/fast/dom/xmlserializer-serialize-to-string-exception.html ('k') | Source/core/xml/XMLSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698