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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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
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: Unsupported mime-type specified. 26 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified.
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: Unsupported mime-type specified. 30 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified.
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: Unsupported mime-type specified. 34 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified.
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: Unsupported mime-type specified. 38 TypeError: Failed to execute 'parseFromString' on 'DOMParser': Unsupported mime- type specified.
39 PASS 39 PASS
40 40
41 41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698