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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise.
2
3 1. Verifying XMLSerializer.serializeToString() should THROW exception with node value = null
4 Exception thrown = [TypeError: Invalid node value.]
5 PASS
6
7 2. Verifying XMLSerializer.serializeToString() should THROW exception with node value = undefined
8 Exception thrown = [TypeError: Invalid node value.]
9 PASS
10
11 3. Verifying XMLSerializer.serializeToString() should THROW exception with node value = <html><title>Hello World</title></html>
12 Exception thrown = [TypeError: Invalid node value.]
13 PASS
14
15 4. Verifying XMLSerializer.serializeToString() should THROW exception with node value = [object HTMLCollection]
16 Exception thrown = [TypeError: Invalid node value.]
17 PASS
18
19 5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLDocument]
20 PASS
21
22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement]
23 PASS
24
25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement]
26 PASS
27
28 8. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLDivElement]
29 PASS
30
31 9. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHeadingElement]
32 PASS
33
34 10. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLUnknownElement]
35 PASS
36
37 11. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLDocument]
38 PASS
39
40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
41 PASS
42
43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Document]
44 PASS
45
46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Element]
47 PASS
OLDNEW
« 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