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

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

Issue 534583002: Implemented XMLSerializer in PrivateScript. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/BUILD.gn » ('j') | Source/core/xml/XMLSerializer.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise. 1 This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise.
2 2
3 1. Verifying XMLSerializer.serializeToString() should THROW exception with node value = null 3 1. Verifying XMLSerializer.serializeToString() should THROW exception with node value = null
4 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': Invalid node value.] 4 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': parameter 1 is not of type 'Node'.]
5 PASS 5 PASS
6 6
7 2. Verifying XMLSerializer.serializeToString() should THROW exception with node value = undefined 7 2. Verifying XMLSerializer.serializeToString() should THROW exception with node value = undefined
8 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': Invalid node value.] 8 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': parameter 1 is not of type 'Node'.]
9 PASS 9 PASS
10 10
11 3. Verifying XMLSerializer.serializeToString() should THROW exception with node value = <html><title>Hello World</title></html> 11 3. Verifying XMLSerializer.serializeToString() should THROW exception with node value = <html><title>Hello World</title></html>
12 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': Invalid node value.] 12 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': parameter 1 is not of type 'Node'.]
13 PASS 13 PASS
14 14
15 4. Verifying XMLSerializer.serializeToString() should THROW exception with node value = [object HTMLCollection] 15 4. Verifying XMLSerializer.serializeToString() should THROW exception with node value = [object HTMLCollection]
16 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': Invalid node value.] 16 Exception thrown = [TypeError: Failed to execute 'serializeToString' on 'XMLSeri alizer': parameter 1 is not of type 'Node'.]
17 PASS 17 PASS
18 18
19 5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLDocument] 19 5. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLDocument]
20 PASS 20 PASS
21 21
22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement] 22 6. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement]
23 PASS 23 PASS
24 24
25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement] 25 7. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with n ode value = [object HTMLHtmlElement]
26 PASS 26 PASS
(...skipping 11 matching lines...) Expand all
38 PASS 38 PASS
39 39
40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement] 40 12. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object HTMLHtmlElement]
41 PASS 41 PASS
42 42
43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object XMLDocument] 43 13. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object XMLDocument]
44 PASS 44 PASS
45 45
46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Element] 46 14. Verifying XMLSerializer.serializeToString() should NOT-THROW exception with node value = [object Element]
47 PASS 47 PASS
OLDNEW
« no previous file with comments | « no previous file | Source/core/BUILD.gn » ('j') | Source/core/xml/XMLSerializer.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698