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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/DOMImplementation-createDocumentType-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
(Empty)
1 This is a testharness.js-based test.
2 Found 82 tests; 79 PASS, 3 FAIL, 0 TIMEOUT, 0 NOTRUN.
3 PASS DOMImplementation.createDocumentType(qualifiedName, publicId, systemId)
4 PASS createDocumentType("", "", "") should throw INVALID_CHARACTER_ERR
5 PASS createDocumentType("test:root", "1234", "") should work
6 PASS createDocumentType("test:root", "1234", "test") should work
7 PASS createDocumentType("test:root", "test", "") should work
8 PASS createDocumentType("test:root", "test", "test") should work
9 PASS createDocumentType("_:_", "", "") should work
10 PASS createDocumentType("_:h0", "", "") should work
11 PASS createDocumentType("_:test", "", "") should work
12 PASS createDocumentType("_:_.", "", "") should work
13 PASS createDocumentType("_:a-", "", "") should work
14 PASS createDocumentType("l_:_", "", "") should work
15 PASS createDocumentType("ns:_0", "", "") should work
16 PASS createDocumentType("ns:a0", "", "") should work
17 PASS createDocumentType("ns0:test", "", "") should work
18 PASS createDocumentType("ns:EEE.", "", "") should work
19 PASS createDocumentType("ns:_-", "", "") should work
20 PASS createDocumentType("a.b:c", "", "") should work
21 PASS createDocumentType("a-b:c.j", "", "") should work
22 PASS createDocumentType("a-b:c", "", "") should work
23 PASS createDocumentType("foo", "", "") should work
24 PASS createDocumentType("1foo", "", "") should throw INVALID_CHARACTER_ERR
25 PASS createDocumentType("foo1", "", "") should work
26 PASS createDocumentType("f1oo", "", "") should work
27 PASS createDocumentType("@foo", "", "") should throw INVALID_CHARACTER_ERR
28 PASS createDocumentType("foo@", "", "") should throw INVALID_CHARACTER_ERR
29 PASS createDocumentType("f@oo", "", "") should throw INVALID_CHARACTER_ERR
30 PASS createDocumentType("edi:{", "", "") should throw INVALID_CHARACTER_ERR
31 PASS createDocumentType("edi:}", "", "") should throw INVALID_CHARACTER_ERR
32 PASS createDocumentType("edi:~", "", "") should throw INVALID_CHARACTER_ERR
33 PASS createDocumentType("edi:'", "", "") should throw INVALID_CHARACTER_ERR
34 PASS createDocumentType("edi:!", "", "") should throw INVALID_CHARACTER_ERR
35 PASS createDocumentType("edi:@", "", "") should throw INVALID_CHARACTER_ERR
36 PASS createDocumentType("edi:#", "", "") should throw INVALID_CHARACTER_ERR
37 PASS createDocumentType("edi:$", "", "") should throw INVALID_CHARACTER_ERR
38 PASS createDocumentType("edi:%", "", "") should throw INVALID_CHARACTER_ERR
39 PASS createDocumentType("edi:^", "", "") should throw INVALID_CHARACTER_ERR
40 PASS createDocumentType("edi:&", "", "") should throw INVALID_CHARACTER_ERR
41 PASS createDocumentType("edi:*", "", "") should throw INVALID_CHARACTER_ERR
42 PASS createDocumentType("edi:(", "", "") should throw INVALID_CHARACTER_ERR
43 PASS createDocumentType("edi:)", "", "") should throw INVALID_CHARACTER_ERR
44 PASS createDocumentType("edi:+", "", "") should throw INVALID_CHARACTER_ERR
45 PASS createDocumentType("edi:=", "", "") should throw INVALID_CHARACTER_ERR
46 PASS createDocumentType("edi:[", "", "") should throw INVALID_CHARACTER_ERR
47 PASS createDocumentType("edi:]", "", "") should throw INVALID_CHARACTER_ERR
48 PASS createDocumentType("edi:\\", "", "") should throw INVALID_CHARACTER_ERR
49 PASS createDocumentType("edi:/", "", "") should throw INVALID_CHARACTER_ERR
50 PASS createDocumentType("edi:;", "", "") should throw INVALID_CHARACTER_ERR
51 PASS createDocumentType("edi:`", "", "") should throw INVALID_CHARACTER_ERR
52 PASS createDocumentType("edi:<", "", "") should throw INVALID_CHARACTER_ERR
53 PASS createDocumentType("edi:>", "", "") should throw INVALID_CHARACTER_ERR
54 PASS createDocumentType("edi:,", "", "") should throw INVALID_CHARACTER_ERR
55 PASS createDocumentType("edi:a ", "", "") should throw INVALID_CHARACTER_ERR
56 PASS createDocumentType("edi:\"", "", "") should throw INVALID_CHARACTER_ERR
57 PASS createDocumentType("{", "", "") should throw INVALID_CHARACTER_ERR
58 PASS createDocumentType("}", "", "") should throw INVALID_CHARACTER_ERR
59 PASS createDocumentType("'", "", "") should throw INVALID_CHARACTER_ERR
60 PASS createDocumentType("~", "", "") should throw INVALID_CHARACTER_ERR
61 PASS createDocumentType("`", "", "") should throw INVALID_CHARACTER_ERR
62 PASS createDocumentType("@", "", "") should throw INVALID_CHARACTER_ERR
63 PASS createDocumentType("#", "", "") should throw INVALID_CHARACTER_ERR
64 PASS createDocumentType("$", "", "") should throw INVALID_CHARACTER_ERR
65 PASS createDocumentType("%", "", "") should throw INVALID_CHARACTER_ERR
66 PASS createDocumentType("^", "", "") should throw INVALID_CHARACTER_ERR
67 PASS createDocumentType("&", "", "") should throw INVALID_CHARACTER_ERR
68 PASS createDocumentType("*", "", "") should throw INVALID_CHARACTER_ERR
69 PASS createDocumentType("(", "", "") should throw INVALID_CHARACTER_ERR
70 PASS createDocumentType(")", "", "") should throw INVALID_CHARACTER_ERR
71 PASS createDocumentType("f:oo", "", "") should work
72 FAIL createDocumentType(":foo", "", "") should throw INVALID_CHARACTER_ERR asser t_throws: function "function () {
73 document.implementation.createDocumentType(qualifiedName, publicId, sy stemId)
74 }" threw object "NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': The qualified name provided (':foo') has an empty namesp ace prefix." that is not a DOMException INVALID_CHARACTER_ERR: property "code" i s equal to 14, expected 5
75 FAIL createDocumentType("foo:", "", "") should throw INVALID_CHARACTER_ERR asser t_throws: function "function () {
76 document.implementation.createDocumentType(qualifiedName, publicId, sy stemId)
77 }" threw object "NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': The qualified name provided ('foo:') has an empty local name." that is not a DOMException INVALID_CHARACTER_ERR: property "code" is equa l to 14, expected 5
78 FAIL createDocumentType("prefix::local", "", "") should throw INVALID_CHARACTER_ ERR assert_throws: function "function () {
79 document.implementation.createDocumentType(qualifiedName, publicId, sy stemId)
80 }" threw object "NamespaceError: Failed to execute 'createDocumentType' on 'DOMImplementation': The qualified name provided ('prefix::local') contains m ultiple colons." that is not a DOMException INVALID_CHARACTER_ERR: property "cod e" is equal to 14, expected 5
81 PASS createDocumentType("foo", "foo", "") should work
82 PASS createDocumentType("foo", "", "foo") should work
83 PASS createDocumentType("foo", "f'oo", "") should work
84 PASS createDocumentType("foo", "", "f'oo") should work
85 PASS createDocumentType("foo", "f\"oo", "") should work
86 PASS createDocumentType("foo", "", "f\"oo") should work
87 PASS createDocumentType("foo", "f'o\"o", "") should work
88 PASS createDocumentType("foo", "", "f'o\"o") should work
89 PASS createDocumentType("foo", "foo>", "") should work
90 PASS createDocumentType("foo", "", "foo>") should work
91 Harness: the test ran to completion.
92
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698