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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/DOMImplementation/createDocument-namespace-err-expected.txt

Issue 2841393003: createElementNS() should now throw only InvalidCharacterError, not NamespaceError (Closed)
Patch Set: rebased Created 3 years, 7 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
1 createDocument tests modelled after createElementNS tests from mozilla which wer e attached to webkit bug 16833 1 createDocument tests modelled after createElementNS tests from mozilla which wer e attached to webkit bug 16833
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS document.implementation.createDocument() threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but on ly 0 present.. 6 PASS document.implementation.createDocument() threw exception TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but on ly 0 present..
7 PASS document.implementation.createDocument("http://www.example.com") threw exce ption TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 ar guments required, but only 1 present.. 7 PASS document.implementation.createDocument("http://www.example.com") threw exce ption TypeError: Failed to execute 'createDocument' on 'DOMImplementation': 2 ar guments required, but only 1 present..
8 PASS createDocument(, , null) 8 PASS createDocument(, , null)
9 PASS createDocument(null, , null) 9 PASS createDocument(null, , null)
10 FAIL createDocument(, null, null) 10 FAIL createDocument(, null, null)
11 FAIL createDocument(null, null, null) 11 FAIL createDocument(null, null, null)
12 FAIL createDocument(null, "", null) 12 FAIL createDocument(null, "", null)
13 FAIL createDocument("", null, null) 13 FAIL createDocument("", null, null)
14 FAIL createDocument("", "", null) 14 FAIL createDocument("", "", null)
15 PASS createDocument(null, "<div>", null); threw INVALID_CHARACTER_ERR 15 PASS createDocument(null, "<div>", null); threw INVALID_CHARACTER_ERR
16 PASS createDocument(null, "0div", null); threw INVALID_CHARACTER_ERR 16 PASS createDocument(null, "0div", null); threw INVALID_CHARACTER_ERR
17 PASS createDocument(null, "di v", null); threw INVALID_CHARACTER_ERR 17 PASS createDocument(null, "di v", null); threw INVALID_CHARACTER_ERR
18 PASS createDocument(null, "di<v", null); threw INVALID_CHARACTER_ERR 18 PASS createDocument(null, "di<v", null); threw INVALID_CHARACTER_ERR
19 PASS createDocument(null, "-div", null); threw INVALID_CHARACTER_ERR 19 PASS createDocument(null, "-div", null); threw INVALID_CHARACTER_ERR
20 PASS createDocument(null, ".div", null); threw INVALID_CHARACTER_ERR 20 PASS createDocument(null, ".div", null); threw INVALID_CHARACTER_ERR
21 PASS createDocument("http://example.com/", "<div>", null); threw INVALID_CHARACT ER_ERR 21 PASS createDocument("http://example.com/", "<div>", null); threw INVALID_CHARACT ER_ERR
22 PASS createDocument("http://example.com/", "0div", null); threw INVALID_CHARACTE R_ERR 22 PASS createDocument("http://example.com/", "0div", null); threw INVALID_CHARACTE R_ERR
23 PASS createDocument("http://example.com/", "di<v", null); threw INVALID_CHARACTE R_ERR 23 PASS createDocument("http://example.com/", "di<v", null); threw INVALID_CHARACTE R_ERR
24 PASS createDocument("http://example.com/", "-div", null); threw INVALID_CHARACTE R_ERR 24 PASS createDocument("http://example.com/", "-div", null); threw INVALID_CHARACTE R_ERR
25 PASS createDocument("http://example.com/", ".div", null); threw INVALID_CHARACTE R_ERR 25 PASS createDocument("http://example.com/", ".div", null); threw INVALID_CHARACTE R_ERR
26 PASS createDocument(null, ":div", null); threw NAMESPACE_ERR 26 PASS createDocument(null, ":div", null); threw INVALID_CHARACTER_ERR
27 PASS createDocument(null, "div:", null); threw NAMESPACE_ERR 27 PASS createDocument(null, "div:", null); threw INVALID_CHARACTER_ERR
28 PASS createDocument("http://example.com/", ":div", null); threw NAMESPACE_ERR 28 PASS createDocument("http://example.com/", ":div", null); threw INVALID_CHARACTE R_ERR
29 PASS createDocument("http://example.com/", "div:", null); threw NAMESPACE_ERR 29 PASS createDocument("http://example.com/", "div:", null); threw INVALID_CHARACTE R_ERR
30 PASS createDocument(null, "d:iv", null); threw NAMESPACE_ERR 30 PASS createDocument(null, "d:iv", null); threw NAMESPACE_ERR
31 PASS createDocument(null, "a:b:c", null); valid XML name, invalid QName; threw N AMESPACE_ERR 31 PASS createDocument(null, "a:b:c", null); valid XML name, invalid QName; threw I NVALID_CHARACTER_ERR
32 PASS createDocument("http://example.com/", "a:b:c", null); valid XML name, inval id QName; threw NAMESPACE_ERR 32 PASS createDocument("http://example.com/", "a:b:c", null); valid XML name, inval id QName; threw INVALID_CHARACTER_ERR
33 PASS createDocument(null, "a::c", null); valid XML name, invalid QName; threw NA MESPACE_ERR 33 PASS createDocument(null, "a::c", null); valid XML name, invalid QName; threw IN VALID_CHARACTER_ERR
34 PASS createDocument("http://example.com/", "a::c", null); valid XML name, invali d QName; threw NAMESPACE_ERR 34 PASS createDocument("http://example.com/", "a::c", null); valid XML name, invali d QName; threw INVALID_CHARACTER_ERR
35 PASS createDocument("http://example.com/", "a:0", null); valid XML name, not a v alid QName; threw INVALID_CHARACTER_ERR 35 PASS createDocument("http://example.com/", "a:0", null); valid XML name, not a v alid QName; threw INVALID_CHARACTER_ERR
36 PASS createDocument("http://example.com/", "0:a", null); 0 at start makes it not a valid XML name; threw INVALID_CHARACTER_ERR 36 PASS createDocument("http://example.com/", "0:a", null); 0 at start makes it not a valid XML name; threw INVALID_CHARACTER_ERR
37 PASS createDocument("http://example.com/", "a:_", null) 37 PASS createDocument("http://example.com/", "a:_", null)
38 FAIL createDocument("http://example.com/", "a:ெ", null); non-ASCII character aft er colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR ); expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR 38 FAIL createDocument("http://example.com/", "a:ெ", null); non-ASCII character aft er colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR ); expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR
39 PASS createDocument("http://example.com/", "ெ:a", null); non-ASCII character aft er colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is va lid as this is both an invalid XML name and an invalid QName); threw INVALID_CHA RACTER_ERR 39 PASS createDocument("http://example.com/", "ெ:a", null); non-ASCII character aft er colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is va lid as this is both an invalid XML name and an invalid QName); threw INVALID_CHA RACTER_ERR
40 PASS createDocument("http://example.com/", "a:aெ", null) 40 PASS createDocument("http://example.com/", "a:aெ", null)
41 PASS createDocument("http://example.com/", "aெ:a", null) 41 PASS createDocument("http://example.com/", "aெ:a", null)
42 PASS createDocument("http://example.com/", "xml:test", null); binding xml prefix wrong; threw NAMESPACE_ERR 42 PASS createDocument("http://example.com/", "xml:test", null); binding xml prefix wrong; threw NAMESPACE_ERR
43 PASS createDocument("http://example.com/", "xmlns:test", null); binding xmlns pr efix wrong; threw NAMESPACE_ERR 43 PASS createDocument("http://example.com/", "xmlns:test", null); binding xmlns pr efix wrong; threw NAMESPACE_ERR
44 PASS createDocument("http://www.w3.org/2000/xmlns/", "x:test", null); binding na mespace namespace to wrong prefix; threw NAMESPACE_ERR 44 PASS createDocument("http://www.w3.org/2000/xmlns/", "x:test", null); binding na mespace namespace to wrong prefix; threw NAMESPACE_ERR
45 PASS createDocument("http://www.w3.org/2000/xmlns/", "xmlns:test", null) 45 PASS createDocument("http://www.w3.org/2000/xmlns/", "xmlns:test", null)
46 PASS createDocument("http://www.w3.org/XML/1998/namespace", "xml:test", null) 46 PASS createDocument("http://www.w3.org/XML/1998/namespace", "xml:test", null)
47 PASS createDocument("http://www.w3.org/XML/1998/namespace", "x:test", null) 47 PASS createDocument("http://www.w3.org/XML/1998/namespace", "x:test", null)
48 PASS successfullyParsed is true 48 PASS successfullyParsed is true
49 49
50 TEST COMPLETE 50 TEST COMPLETE
51 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698