OLD | NEW |
1 var createElementNS_tests = [ | 1 var createElementNS_tests = [ |
2 /* Arrays with three elements: | 2 /* Arrays with three elements: |
3 * the namespace argument | 3 * the namespace argument |
4 * the qualifiedName argument | 4 * the qualifiedName argument |
5 * the expected exception, or null if none | 5 * the expected exception, or null if none |
6 */ | 6 */ |
7 [null, null, null], | 7 [null, null, null], |
8 [null, undefined, null], | 8 [null, undefined, null], |
9 [null, "foo", null], | 9 [null, "foo", null], |
10 [null, "1foo", "INVALID_CHARACTER_ERR"], | 10 [null, "1foo", "INVALID_CHARACTER_ERR"], |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 ["http://example.com/", "_:_", null], | 84 ["http://example.com/", "_:_", null], |
85 ["http://example.com/", "_:h0", null], | 85 ["http://example.com/", "_:h0", null], |
86 ["http://example.com/", "_:test", null], | 86 ["http://example.com/", "_:test", null], |
87 ["http://example.com/", "l_:_", null], | 87 ["http://example.com/", "l_:_", null], |
88 ["http://example.com/", "ns:_0", null], | 88 ["http://example.com/", "ns:_0", null], |
89 ["http://example.com/", "ns:a0", null], | 89 ["http://example.com/", "ns:a0", null], |
90 ["http://example.com/", "ns0:test", null], | 90 ["http://example.com/", "ns0:test", null], |
91 ["http://example.com/", "a.b:c", null], | 91 ["http://example.com/", "a.b:c", null], |
92 ["http://example.com/", "a-b:c", null], | 92 ["http://example.com/", "a-b:c", null], |
93 ["http://example.com/", "xml", null], | 93 ["http://example.com/", "xml", null], |
94 ["http://example.com/", "xmlns", "NAMESPACE_ERR"], | |
95 ["http://example.com/", "XMLNS", null], | 94 ["http://example.com/", "XMLNS", null], |
96 ["http://example.com/", "xmlfoo", null], | 95 ["http://example.com/", "xmlfoo", null], |
97 ["http://example.com/", "xml:foo", "NAMESPACE_ERR"], | 96 ["http://example.com/", "xml:foo", "NAMESPACE_ERR"], |
98 ["http://example.com/", "XML:foo", null], | 97 ["http://example.com/", "XML:foo", null], |
99 ["http://example.com/", "xmlns:foo", "NAMESPACE_ERR"], | 98 ["http://example.com/", "xmlns:foo", "NAMESPACE_ERR"], |
100 ["http://example.com/", "XMLNS:foo", null], | 99 ["http://example.com/", "XMLNS:foo", null], |
101 ["http://example.com/", "xmlfoo:bar", null], | 100 ["http://example.com/", "xmlfoo:bar", null], |
102 ["http://example.com/", "prefix::local", "NAMESPACE_ERR"], | 101 ["http://example.com/", "prefix::local", "NAMESPACE_ERR"], |
103 ["http://example.com/", "namespaceURI:{", "INVALID_CHARACTER_ERR"], | 102 ["http://example.com/", "namespaceURI:{", "INVALID_CHARACTER_ERR"], |
104 ["http://example.com/", "namespaceURI:}", "INVALID_CHARACTER_ERR"], | 103 ["http://example.com/", "namespaceURI:}", "INVALID_CHARACTER_ERR"], |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 ["foo:", ":foo", "NAMESPACE_ERR"], | 175 ["foo:", ":foo", "NAMESPACE_ERR"], |
177 ["foo:", "f:oo", null], | 176 ["foo:", "f:oo", null], |
178 ["foo:", "foo:", "NAMESPACE_ERR"], | 177 ["foo:", "foo:", "NAMESPACE_ERR"], |
179 ["foo:", "xml", null], | 178 ["foo:", "xml", null], |
180 ["foo:", "xmlns", "NAMESPACE_ERR"], | 179 ["foo:", "xmlns", "NAMESPACE_ERR"], |
181 ["foo:", "xmlfoo", null], | 180 ["foo:", "xmlfoo", null], |
182 ["foo:", "xml:foo", "NAMESPACE_ERR"], | 181 ["foo:", "xml:foo", "NAMESPACE_ERR"], |
183 ["foo:", "xmlns:foo", "NAMESPACE_ERR"], | 182 ["foo:", "xmlns:foo", "NAMESPACE_ERR"], |
184 ["foo:", "xmlfoo:bar", null], | 183 ["foo:", "xmlfoo:bar", null], |
185 ] | 184 ] |
OLD | NEW |