OLD | NEW |
1 createElementNS tests from mozilla, attached to webkit bug 16833 | 1 createElementNS tests from mozilla, 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 HTML tests: | 6 HTML tests: |
7 PASS createElementNS(, ) | 7 PASS createElementNS(, ) |
8 PASS createElementNS(null, ) | 8 PASS createElementNS(null, ) |
9 PASS createElementNS(, null) | 9 PASS createElementNS(, null) |
10 PASS createElementNS(null, null) | 10 PASS createElementNS(null, null) |
11 PASS createElementNS(null, ""); threw InvalidCharacterError: Failed to execute '
createElementNS' on 'Document': The qualified name provided is empty. | 11 PASS createElementNS(null, ""); threw InvalidCharacterError: Failed to execute '
createElementNS' on 'Document': The qualified name provided is empty. |
12 PASS createElementNS("", null) | 12 PASS createElementNS("", null) |
13 PASS createElementNS("", ""); threw InvalidCharacterError: Failed to execute 'cr
eateElementNS' on 'Document': The qualified name provided is empty. | 13 PASS createElementNS("", ""); threw InvalidCharacterError: Failed to execute 'cr
eateElementNS' on 'Document': The qualified name provided is empty. |
14 PASS createElementNS(null, "<div>"); threw InvalidCharacterError: Failed to exec
ute 'createElementNS' on 'Document': The qualified name provided ('<div>') conta
ins the invalid name-start character '<'. | 14 PASS createElementNS(null, "<div>"); threw InvalidCharacterError: Failed to exec
ute 'createElementNS' on 'Document': The qualified name provided ('<div>') conta
ins the invalid name-start character '<'. |
15 PASS createElementNS(null, "0div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('0div') contain
s the invalid name-start character '0'. | 15 PASS createElementNS(null, "0div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('0div') contain
s the invalid name-start character '0'. |
16 PASS createElementNS(null, "di v"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('di v') contain
s the invalid character ' '. | 16 PASS createElementNS(null, "di v"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('di v') contain
s the invalid character ' '. |
17 PASS createElementNS(null, "di<v"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('di<v') contain
s the invalid character '<'. | 17 PASS createElementNS(null, "di<v"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('di<v') contain
s the invalid character '<'. |
18 PASS createElementNS(null, "-div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('-div') contain
s the invalid name-start character '-'. | 18 PASS createElementNS(null, "-div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('-div') contain
s the invalid name-start character '-'. |
19 PASS createElementNS(null, ".div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('.div') contain
s the invalid name-start character '.'. | 19 PASS createElementNS(null, ".div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('.div') contain
s the invalid name-start character '.'. |
20 PASS createElementNS("http://example.com/", "<div>"); threw InvalidCharacterErro
r: Failed to execute 'createElementNS' on 'Document': The qualified name provide
d ('<div>') contains the invalid name-start character '<'. | 20 PASS createElementNS("http://example.com/", "<div>"); threw InvalidCharacterErro
r: Failed to execute 'createElementNS' on 'Document': The qualified name provide
d ('<div>') contains the invalid name-start character '<'. |
21 PASS createElementNS("http://example.com/", "0div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('0div') contains the invalid name-start character '0'. | 21 PASS createElementNS("http://example.com/", "0div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('0div') contains the invalid name-start character '0'. |
22 PASS createElementNS("http://example.com/", "di<v"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('di<v') contains the invalid character '<'. | 22 PASS createElementNS("http://example.com/", "di<v"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('di<v') contains the invalid character '<'. |
23 PASS createElementNS("http://example.com/", "-div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('-div') contains the invalid name-start character '-'. | 23 PASS createElementNS("http://example.com/", "-div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('-div') contains the invalid name-start character '-'. |
24 PASS createElementNS("http://example.com/", ".div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('.div') contains the invalid name-start character '.'. | 24 PASS createElementNS("http://example.com/", ".div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('.div') contains the invalid name-start character '.'. |
25 PASS createElementNS(null, ":div"); threw NamespaceError: Failed to execute 'cre
ateElementNS' on 'Document': The qualified name provided (':div') has an empty n
amespace prefix. | 25 PASS createElementNS(null, ":div"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided (':div') has an
empty namespace prefix. |
26 PASS createElementNS(null, "div:"); threw NamespaceError: Failed to execute 'cre
ateElementNS' on 'Document': The qualified name provided ('div:') has an empty l
ocal name. | 26 PASS createElementNS(null, "div:"); threw InvalidCharacterError: Failed to execu
te 'createElementNS' on 'Document': The qualified name provided ('div:') has an
empty local name. |
27 PASS createElementNS("http://example.com/", ":div"); threw NamespaceError: Faile
d to execute 'createElementNS' on 'Document': The qualified name provided (':div
') has an empty namespace prefix. | 27 PASS createElementNS("http://example.com/", ":div"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
(':div') has an empty namespace prefix. |
28 PASS createElementNS("http://example.com/", "div:"); threw NamespaceError: Faile
d to execute 'createElementNS' on 'Document': The qualified name provided ('div:
') has an empty local name. | 28 PASS createElementNS("http://example.com/", "div:"); threw InvalidCharacterError
: Failed to execute 'createElementNS' on 'Document': The qualified name provided
('div:') has an empty local name. |
29 PASS createElementNS(null, "d:iv"); threw NamespaceError: Failed to execute 'cre
ateElementNS' on 'Document': The namespace URI provided ('') is not valid for th
e qualified name provided ('d:iv'). | 29 PASS createElementNS(null, "d:iv"); threw NamespaceError: Failed to execute 'cre
ateElementNS' on 'Document': The namespace URI provided ('') is not valid for th
e qualified name provided ('d:iv'). |
30 PASS createElementNS(null, "a:b:c"); valid XML name, invalid QName; threw Namesp
aceError: Failed to execute 'createElementNS' on 'Document': The qualified name
provided ('a:b:c') contains multiple colons. | 30 PASS createElementNS(null, "a:b:c"); valid XML name, invalid QName; threw Invali
dCharacterError: Failed to execute 'createElementNS' on 'Document': The qualifie
d name provided ('a:b:c') contains multiple colons. |
31 PASS createElementNS("http://example.com/", "a:b:c"); valid XML name, invalid QN
ame; threw NamespaceError: Failed to execute 'createElementNS' on 'Document': Th
e qualified name provided ('a:b:c') contains multiple colons. | 31 PASS createElementNS("http://example.com/", "a:b:c"); valid XML name, invalid QN
ame; threw InvalidCharacterError: Failed to execute 'createElementNS' on 'Docume
nt': The qualified name provided ('a:b:c') contains multiple colons. |
32 PASS createElementNS(null, "a::c"); valid XML name, invalid QName; threw Namespa
ceError: Failed to execute 'createElementNS' on 'Document': The qualified name p
rovided ('a::c') contains multiple colons. | 32 PASS createElementNS(null, "a::c"); valid XML name, invalid QName; threw Invalid
CharacterError: Failed to execute 'createElementNS' on 'Document': The qualified
name provided ('a::c') contains multiple colons. |
33 PASS createElementNS("http://example.com/", "a::c"); valid XML name, invalid QNa
me; threw NamespaceError: Failed to execute 'createElementNS' on 'Document': The
qualified name provided ('a::c') contains multiple colons. | 33 PASS createElementNS("http://example.com/", "a::c"); valid XML name, invalid QNa
me; threw InvalidCharacterError: Failed to execute 'createElementNS' on 'Documen
t': The qualified name provided ('a::c') contains multiple colons. |
34 PASS createElementNS("http://example.com/", "a:0"); valid XML name, not a valid
QName; threw InvalidCharacterError: Failed to execute 'createElementNS' on 'Docu
ment': The qualified name provided ('a:0') contains the invalid name-start chara
cter '0'. | 34 PASS createElementNS("http://example.com/", "a:0"); valid XML name, not a valid
QName; threw InvalidCharacterError: Failed to execute 'createElementNS' on 'Docu
ment': The qualified name provided ('a:0') contains the invalid name-start chara
cter '0'. |
35 PASS createElementNS("http://example.com/", "0:a"); 0 at start makes it not a va
lid XML name; threw InvalidCharacterError: Failed to execute 'createElementNS' o
n 'Document': The qualified name provided ('0:a') contains the invalid name-star
t character '0'. | 35 PASS createElementNS("http://example.com/", "0:a"); 0 at start makes it not a va
lid XML name; threw InvalidCharacterError: Failed to execute 'createElementNS' o
n 'Document': The qualified name provided ('0:a') contains the invalid name-star
t character '0'. |
36 PASS createElementNS("http://example.com/", "a:_") | 36 PASS createElementNS("http://example.com/", "a:_") |
37 FAIL createElementNS("http://example.com/", "a:ெ"); non-ASCII character after co
lon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at s
tart of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR); ex
pected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR | 37 FAIL createElementNS("http://example.com/", "a:ெ"); non-ASCII character after co
lon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at s
tart of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR); ex
pected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR |
38 PASS createElementNS("http://example.com/", "ெ:a"); non-ASCII character after co
lon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at s
tart of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid a
s this is both an invalid XML name and an invalid QName); threw InvalidCharacter
Error: Failed to execute 'createElementNS' on 'Document': The qualified name pro
vided ('ெ:a') contains the invalid name-start character 'ெ'. | 38 PASS createElementNS("http://example.com/", "ெ:a"); non-ASCII character after co
lon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at s
tart of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid a
s this is both an invalid XML name and an invalid QName); threw InvalidCharacter
Error: Failed to execute 'createElementNS' on 'Document': The qualified name pro
vided ('ெ:a') contains the invalid name-start character 'ெ'. |
39 PASS createElementNS("http://example.com/", "a:aெ") | 39 PASS createElementNS("http://example.com/", "a:aெ") |
40 PASS createElementNS("http://example.com/", "aெ:a") | 40 PASS createElementNS("http://example.com/", "aெ:a") |
41 PASS createElementNS("http://example.com/", "xml:test"); binding xml prefix wron
g; threw NamespaceError: Failed to execute 'createElementNS' on 'Document': The
namespace URI provided ('http://example.com/') is not valid for the qualified na
me provided ('xml:test'). | 41 PASS createElementNS("http://example.com/", "xml:test"); binding xml prefix wron
g; threw NamespaceError: Failed to execute 'createElementNS' on 'Document': The
namespace URI provided ('http://example.com/') is not valid for the qualified na
me provided ('xml:test'). |
42 PASS createElementNS("http://example.com/", "xmlns:test"); binding xmlns prefix
wrong; threw NamespaceError: Failed to execute 'createElementNS' on 'Document':
The namespace URI provided ('http://example.com/') is not valid for the qualifie
d name provided ('xmlns:test'). | 42 PASS createElementNS("http://example.com/", "xmlns:test"); binding xmlns prefix
wrong; threw NamespaceError: Failed to execute 'createElementNS' on 'Document':
The namespace URI provided ('http://example.com/') is not valid for the qualifie
d name provided ('xmlns:test'). |
43 PASS createElementNS("http://www.w3.org/2000/xmlns/", "x:test"); binding namespa
ce namespace to wrong prefix; threw NamespaceError: Failed to execute 'createEle
mentNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/xmlns
/') is not valid for the qualified name provided ('x:test'). | 43 PASS createElementNS("http://www.w3.org/2000/xmlns/", "x:test"); binding namespa
ce namespace to wrong prefix; threw NamespaceError: Failed to execute 'createEle
mentNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/xmlns
/') is not valid for the qualified name provided ('x:test'). |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 PASS createElement("aெ:a") | 127 PASS createElement("aெ:a") |
128 PASS createElement("xml:test") | 128 PASS createElement("xml:test") |
129 PASS createElement("xmlns:test") | 129 PASS createElement("xmlns:test") |
130 PASS createElement("x:test") | 130 PASS createElement("x:test") |
131 PASS createElement("xmlns:test") | 131 PASS createElement("xmlns:test") |
132 PASS createElement("SOAP-ENV:Body") | 132 PASS createElement("SOAP-ENV:Body") |
133 PASS successfullyParsed is true | 133 PASS successfullyParsed is true |
134 | 134 |
135 TEST COMPLETE | 135 TEST COMPLETE |
136 | 136 |
OLD | NEW |