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

Side by Side Diff: LayoutTests/fast/dom/domparser-parsefromstring-mimetype-support-expected.txt

Issue 855023002: Sync the DOMParser interface with spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert TypeChecking=Interface Created 5 years, 11 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/xml/DOMParser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This tests DOMParser supports creating Document for HTML content with mime-type "text/html". 1 This tests DOMParser supports creating Document for HTML content with mime-type "text/html".
2 2
3 1. Should support mime-type = "text/html" 3 1. Should support mime-type = "text/html"
4 HTML content: 4 HTML content:
5 Scripts must be disabled for the document created using DOMParser.parseFromStrin g() 5 Scripts must be disabled for the document created using DOMParser.parseFromStrin g()
6 Sample text content 6 Sample text content
7 PASS 7 PASS
8 8
9 2. Should support mime-type = "text/xml" 9 2. Should support mime-type = "text/xml"
10 Root element: root 10 Root element: root
11 PASS 11 PASS
12 12
13 3. Should support mime-type = "application/xml" 13 3. Should support mime-type = "application/xml"
14 Root element: root 14 Root element: root
15 PASS 15 PASS
16 16
17 4. Should support mime-type = "application/xhtml+xml" 17 4. Should support mime-type = "application/xhtml+xml"
18 Root element: html 18 Root element: html
19 PASS 19 PASS
20 20
21 5. Should support mime-type = "image/svg+xml" 21 5. Should support mime-type = "image/svg+xml"
22 Root element: svg 22 Root element: svg
23 PASS 23 PASS
24 24
25 6. Should THROW exception for mime-type = "text/xsl" 25 6. Should THROW exception for mime-type = "text/xsl"
26 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified. 26 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex t/xsl') is not a valid enum value.
27 PASS 27 PASS
28 28
29 7. Should THROW exception for mime-type = "text/dummy+xml" 29 7. Should THROW exception for mime-type = "text/dummy+xml"
30 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified. 30 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex t/dummy+xml') is not a valid enum value.
31 PASS 31 PASS
32 32
33 8. Should THROW exception for mime-type = "text/XML" 33 8. Should THROW exception for mime-type = "text/XML"
34 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified. 34 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('tex t/XML') is not a valid enum value.
35 PASS 35 PASS
36 36
37 9. Should THROW exception for mime-type = "TEXT/html" 37 9. Should THROW exception for mime-type = "TEXT/html"
38 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified. 38 TypeError: Failed to execute 'parseFromString' on 'DOMParser': parameter 2 ('TEX T/html') is not a valid enum value.
39 PASS 39 PASS
40 40
41 41
OLDNEW
« no previous file with comments | « no previous file | Source/core/xml/DOMParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698