| 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 PASS document.createElementNS().toString() is "[object Element]" | |
| 7 PASS document.createElementNS("http://www.example.com").toString() is "[object E
lement]" | |
| 8 HTML tests: | 6 HTML tests: |
| 9 PASS createElementNS(, ) | 7 PASS createElementNS(, ) |
| 10 PASS createElementNS(null, ) | 8 PASS createElementNS(null, ) |
| 11 PASS createElementNS(, null); threw INVALID_CHARACTER_ERR | 9 PASS createElementNS(, null) |
| 12 PASS createElementNS(null, null); threw INVALID_CHARACTER_ERR | 10 PASS createElementNS(null, null) |
| 13 PASS createElementNS(null, ""); threw INVALID_CHARACTER_ERR | 11 PASS createElementNS(null, ""); threw INVALID_CHARACTER_ERR |
| 14 PASS createElementNS("", null); threw INVALID_CHARACTER_ERR | 12 PASS createElementNS("", null) |
| 15 PASS createElementNS("", ""); threw INVALID_CHARACTER_ERR | 13 PASS createElementNS("", ""); threw INVALID_CHARACTER_ERR |
| 16 PASS createElementNS(null, "<div>"); threw INVALID_CHARACTER_ERR | 14 PASS createElementNS(null, "<div>"); threw INVALID_CHARACTER_ERR |
| 17 PASS createElementNS(null, "0div"); threw INVALID_CHARACTER_ERR | 15 PASS createElementNS(null, "0div"); threw INVALID_CHARACTER_ERR |
| 18 PASS createElementNS(null, "di v"); threw INVALID_CHARACTER_ERR | 16 PASS createElementNS(null, "di v"); threw INVALID_CHARACTER_ERR |
| 19 PASS createElementNS(null, "di<v"); threw INVALID_CHARACTER_ERR | 17 PASS createElementNS(null, "di<v"); threw INVALID_CHARACTER_ERR |
| 20 PASS createElementNS(null, "-div"); threw INVALID_CHARACTER_ERR | 18 PASS createElementNS(null, "-div"); threw INVALID_CHARACTER_ERR |
| 21 PASS createElementNS(null, ".div"); threw INVALID_CHARACTER_ERR | 19 PASS createElementNS(null, ".div"); threw INVALID_CHARACTER_ERR |
| 22 PASS createElementNS("http://example.com/", "<div>"); threw INVALID_CHARACTER_ER
R | 20 PASS createElementNS("http://example.com/", "<div>"); threw INVALID_CHARACTER_ER
R |
| 23 PASS createElementNS("http://example.com/", "0div"); threw INVALID_CHARACTER_ERR | 21 PASS createElementNS("http://example.com/", "0div"); threw INVALID_CHARACTER_ERR |
| 24 PASS createElementNS("http://example.com/", "di<v"); threw INVALID_CHARACTER_ERR | 22 PASS createElementNS("http://example.com/", "di<v"); threw INVALID_CHARACTER_ERR |
| (...skipping 15 matching lines...) Expand all Loading... |
| 40 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 INVALID_CHARACTE
R_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 INVALID_CHARACTE
R_ERR |
| 41 PASS createElementNS("http://example.com/", "a:aெ") | 39 PASS createElementNS("http://example.com/", "a:aெ") |
| 42 PASS createElementNS("http://example.com/", "aெ:a") | 40 PASS createElementNS("http://example.com/", "aெ:a") |
| 43 PASS createElementNS("http://example.com/", "xml:test"); binding xml prefix wron
g; threw NAMESPACE_ERR | 41 PASS createElementNS("http://example.com/", "xml:test"); binding xml prefix wron
g; threw NAMESPACE_ERR |
| 44 PASS createElementNS("http://example.com/", "xmlns:test"); binding xmlns prefix
wrong; threw NAMESPACE_ERR | 42 PASS createElementNS("http://example.com/", "xmlns:test"); binding xmlns prefix
wrong; threw NAMESPACE_ERR |
| 45 PASS createElementNS("http://www.w3.org/2000/xmlns/", "x:test"); binding namespa
ce namespace to wrong prefix; threw NAMESPACE_ERR | 43 PASS createElementNS("http://www.w3.org/2000/xmlns/", "x:test"); binding namespa
ce namespace to wrong prefix; threw NAMESPACE_ERR |
| 46 PASS createElementNS("http://www.w3.org/2000/xmlns/", "xmlns:test") | 44 PASS createElementNS("http://www.w3.org/2000/xmlns/", "xmlns:test") |
| 47 PASS createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test") | 45 PASS createElementNS("http://www.w3.org/XML/1998/namespace", "xml:test") |
| 48 PASS createElementNS("http://www.w3.org/XML/1998/namespace", "x:test") | 46 PASS createElementNS("http://www.w3.org/XML/1998/namespace", "x:test") |
| 49 PASS createElement() | 47 PASS createElement() |
| 50 PASS createElement(null); threw INVALID_CHARACTER_ERR | 48 PASS createElement(null) |
| 51 PASS createElement(""); threw INVALID_CHARACTER_ERR | 49 PASS createElement(""); threw INVALID_CHARACTER_ERR |
| 52 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR | 50 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR |
| 53 PASS createElement("0div"); threw INVALID_CHARACTER_ERR | 51 PASS createElement("0div"); threw INVALID_CHARACTER_ERR |
| 54 PASS createElement("di v"); threw INVALID_CHARACTER_ERR | 52 PASS createElement("di v"); threw INVALID_CHARACTER_ERR |
| 55 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR | 53 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR |
| 56 PASS createElement("-div"); threw INVALID_CHARACTER_ERR | 54 PASS createElement("-div"); threw INVALID_CHARACTER_ERR |
| 57 PASS createElement(".div"); threw INVALID_CHARACTER_ERR | 55 PASS createElement(".div"); threw INVALID_CHARACTER_ERR |
| 58 PASS createElement(":"); valid XML name, invalid QName | 56 PASS createElement(":"); valid XML name, invalid QName |
| 59 PASS createElement(":div"); valid XML name, invalid QName | 57 PASS createElement(":div"); valid XML name, invalid QName |
| 60 PASS createElement("div:"); valid XML name, invalid QName | 58 PASS createElement("div:"); valid XML name, invalid QName |
| 61 PASS createElement("d:iv") | 59 PASS createElement("d:iv") |
| 62 PASS createElement("a:b:c"); valid XML name, invalid QName | 60 PASS createElement("a:b:c"); valid XML name, invalid QName |
| 63 PASS createElement("a::c"); valid XML name, invalid QName | 61 PASS createElement("a::c"); valid XML name, invalid QName |
| 64 PASS createElement("a::c:"); valid XML name, invalid QName | 62 PASS createElement("a::c:"); valid XML name, invalid QName |
| 65 PASS createElement("a:0"); valid XML name, not a valid QName | 63 PASS createElement("a:0"); valid XML name, not a valid QName |
| 66 PASS createElement("0:a"); 0 at start makes it not a valid XML name; threw INVAL
ID_CHARACTER_ERR | 64 PASS createElement("0:a"); 0 at start makes it not a valid XML name; threw INVAL
ID_CHARACTER_ERR |
| 67 PASS createElement("a:_") | 65 PASS createElement("a:_") |
| 68 PASS createElement("a:ெ"); non-ASCII character after colon is CombiningChar, whi
ch is valid in pre-namespace XML | 66 PASS createElement("a:ெ"); non-ASCII character after colon is CombiningChar, whi
ch is valid in pre-namespace XML |
| 69 PASS createElement("ெ:a"); not a valid start character; threw INVALID_CHARACTER_
ERR | 67 PASS createElement("ெ:a"); not a valid start character; threw INVALID_CHARACTER_
ERR |
| 70 PASS createElement("a:aெ") | 68 PASS createElement("a:aெ") |
| 71 PASS createElement("aெ:a") | 69 PASS createElement("aெ:a") |
| 72 PASS createElement("xml:test") | 70 PASS createElement("xml:test") |
| 73 PASS createElement("xmlns:test") | 71 PASS createElement("xmlns:test") |
| 74 PASS createElement("x:test") | 72 PASS createElement("x:test") |
| 75 PASS createElement("xmlns:test") | 73 PASS createElement("xmlns:test") |
| 76 PASS createElement("SOAP-ENV:Body") | 74 PASS createElement("SOAP-ENV:Body") |
| 77 XHTML createElement tests: | 75 XHTML createElement tests: |
| 78 PASS createElement() | 76 PASS createElement() |
| 79 PASS createElement(null); threw INVALID_CHARACTER_ERR | 77 PASS createElement(null) |
| 80 PASS createElement(""); threw INVALID_CHARACTER_ERR | 78 PASS createElement(""); threw INVALID_CHARACTER_ERR |
| 81 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR | 79 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR |
| 82 PASS createElement("0div"); threw INVALID_CHARACTER_ERR | 80 PASS createElement("0div"); threw INVALID_CHARACTER_ERR |
| 83 PASS createElement("di v"); threw INVALID_CHARACTER_ERR | 81 PASS createElement("di v"); threw INVALID_CHARACTER_ERR |
| 84 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR | 82 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR |
| 85 PASS createElement("-div"); threw INVALID_CHARACTER_ERR | 83 PASS createElement("-div"); threw INVALID_CHARACTER_ERR |
| 86 PASS createElement(".div"); threw INVALID_CHARACTER_ERR | 84 PASS createElement(".div"); threw INVALID_CHARACTER_ERR |
| 87 PASS createElement(":"); valid XML name, invalid QName | 85 PASS createElement(":"); valid XML name, invalid QName |
| 88 PASS createElement(":div"); valid XML name, invalid QName | 86 PASS createElement(":div"); valid XML name, invalid QName |
| 89 PASS createElement("div:"); valid XML name, invalid QName | 87 PASS createElement("div:"); valid XML name, invalid QName |
| 90 PASS createElement("d:iv") | 88 PASS createElement("d:iv") |
| 91 PASS createElement("a:b:c"); valid XML name, invalid QName | 89 PASS createElement("a:b:c"); valid XML name, invalid QName |
| 92 PASS createElement("a::c"); valid XML name, invalid QName | 90 PASS createElement("a::c"); valid XML name, invalid QName |
| 93 PASS createElement("a::c:"); valid XML name, invalid QName | 91 PASS createElement("a::c:"); valid XML name, invalid QName |
| 94 PASS createElement("a:0"); valid XML name, not a valid QName | 92 PASS createElement("a:0"); valid XML name, not a valid QName |
| 95 PASS createElement("0:a"); 0 at start makes it not a valid XML name; threw INVAL
ID_CHARACTER_ERR | 93 PASS createElement("0:a"); 0 at start makes it not a valid XML name; threw INVAL
ID_CHARACTER_ERR |
| 96 PASS createElement("a:_") | 94 PASS createElement("a:_") |
| 97 PASS createElement("a:ெ"); non-ASCII character after colon is CombiningChar, whi
ch is valid in pre-namespace XML | 95 PASS createElement("a:ெ"); non-ASCII character after colon is CombiningChar, whi
ch is valid in pre-namespace XML |
| 98 PASS createElement("ெ:a"); not a valid start character; threw INVALID_CHARACTER_
ERR | 96 PASS createElement("ெ:a"); not a valid start character; threw INVALID_CHARACTER_
ERR |
| 99 PASS createElement("a:aெ") | 97 PASS createElement("a:aெ") |
| 100 PASS createElement("aெ:a") | 98 PASS createElement("aெ:a") |
| 101 PASS createElement("xml:test") | 99 PASS createElement("xml:test") |
| 102 PASS createElement("xmlns:test") | 100 PASS createElement("xmlns:test") |
| 103 PASS createElement("x:test") | 101 PASS createElement("x:test") |
| 104 PASS createElement("xmlns:test") | 102 PASS createElement("xmlns:test") |
| 105 PASS createElement("SOAP-ENV:Body") | 103 PASS createElement("SOAP-ENV:Body") |
| 106 XML createElement tests: | 104 XML createElement tests: |
| 107 PASS createElement() | 105 PASS createElement() |
| 108 PASS createElement(null); threw INVALID_CHARACTER_ERR | 106 PASS createElement(null) |
| 109 PASS createElement(""); threw INVALID_CHARACTER_ERR | 107 PASS createElement(""); threw INVALID_CHARACTER_ERR |
| 110 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR | 108 PASS createElement("<div>"); threw INVALID_CHARACTER_ERR |
| 111 PASS createElement("0div"); threw INVALID_CHARACTER_ERR | 109 PASS createElement("0div"); threw INVALID_CHARACTER_ERR |
| 112 PASS createElement("di v"); threw INVALID_CHARACTER_ERR | 110 PASS createElement("di v"); threw INVALID_CHARACTER_ERR |
| 113 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR | 111 PASS createElement("di<v"); threw INVALID_CHARACTER_ERR |
| 114 PASS createElement("-div"); threw INVALID_CHARACTER_ERR | 112 PASS createElement("-div"); threw INVALID_CHARACTER_ERR |
| 115 PASS createElement(".div"); threw INVALID_CHARACTER_ERR | 113 PASS createElement(".div"); threw INVALID_CHARACTER_ERR |
| 116 PASS createElement(":"); valid XML name, invalid QName | 114 PASS createElement(":"); valid XML name, invalid QName |
| 117 PASS createElement(":div"); valid XML name, invalid QName | 115 PASS createElement(":div"); valid XML name, invalid QName |
| 118 PASS createElement("div:"); valid XML name, invalid QName | 116 PASS createElement("div:"); valid XML name, invalid QName |
| (...skipping 10 matching lines...) Expand all Loading... |
| 129 PASS createElement("aெ:a") | 127 PASS createElement("aெ:a") |
| 130 PASS createElement("xml:test") | 128 PASS createElement("xml:test") |
| 131 PASS createElement("xmlns:test") | 129 PASS createElement("xmlns:test") |
| 132 PASS createElement("x:test") | 130 PASS createElement("x:test") |
| 133 PASS createElement("xmlns:test") | 131 PASS createElement("xmlns:test") |
| 134 PASS createElement("SOAP-ENV:Body") | 132 PASS createElement("SOAP-ENV:Body") |
| 135 PASS successfullyParsed is true | 133 PASS successfullyParsed is true |
| 136 | 134 |
| 137 TEST COMPLETE | 135 TEST COMPLETE |
| 138 | 136 |
| OLD | NEW |