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, undefined, null], | 7 [null, undefined, null], |
8 [null, "foo", null], | 8 [null, "foo", null], |
9 [null, "1foo", "INVALID_CHARACTER_ERR"], | 9 [null, "1foo", "INVALID_CHARACTER_ERR"], |
10 [null, "f1oo", null], | 10 [null, "f1oo", null], |
11 [null, "foo1", null], | 11 [null, "foo1", null], |
12 [null, "1foo", "INVALID_CHARACTER_ERR"], | |
13 [null, "\u0300foo", "INVALID_CHARACTER_ERR"], | 12 [null, "\u0300foo", "INVALID_CHARACTER_ERR"], |
14 [null, "}foo", "INVALID_CHARACTER_ERR"], | 13 [null, "}foo", "INVALID_CHARACTER_ERR"], |
15 [null, "f}oo", "INVALID_CHARACTER_ERR"], | 14 [null, "f}oo", "INVALID_CHARACTER_ERR"], |
16 [null, "foo}", "INVALID_CHARACTER_ERR"], | 15 [null, "foo}", "INVALID_CHARACTER_ERR"], |
17 [null, "\uFFFFfoo", "INVALID_CHARACTER_ERR"], | 16 [null, "\uFFFFfoo", "INVALID_CHARACTER_ERR"], |
18 [null, "f\uFFFFoo", "INVALID_CHARACTER_ERR"], | 17 [null, "f\uFFFFoo", "INVALID_CHARACTER_ERR"], |
19 [null, "foo\uFFFF", "INVALID_CHARACTER_ERR"], | 18 [null, "foo\uFFFF", "INVALID_CHARACTER_ERR"], |
20 [null, "<foo", "INVALID_CHARACTER_ERR"], | 19 [null, "<foo", "INVALID_CHARACTER_ERR"], |
21 [null, "foo>", "INVALID_CHARACTER_ERR"], | 20 [null, "foo>", "INVALID_CHARACTER_ERR"], |
22 [null, "<foo>", "INVALID_CHARACTER_ERR"], | 21 [null, "<foo>", "INVALID_CHARACTER_ERR"], |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 ["http://example.com/", "foo:", "NAMESPACE_ERR"], | 58 ["http://example.com/", "foo:", "NAMESPACE_ERR"], |
60 ["http://example.com/", "_:_", null], | 59 ["http://example.com/", "_:_", null], |
61 ["http://example.com/", "_:h0", null], | 60 ["http://example.com/", "_:h0", null], |
62 ["http://example.com/", "_:test", null], | 61 ["http://example.com/", "_:test", null], |
63 ["http://example.com/", "l_:_", null], | 62 ["http://example.com/", "l_:_", null], |
64 ["http://example.com/", "ns:_0", null], | 63 ["http://example.com/", "ns:_0", null], |
65 ["http://example.com/", "ns:a0", null], | 64 ["http://example.com/", "ns:a0", null], |
66 ["http://example.com/", "ns0:test", null], | 65 ["http://example.com/", "ns0:test", null], |
67 ["http://example.com/", "a.b:c", null], | 66 ["http://example.com/", "a.b:c", null], |
68 ["http://example.com/", "a-b:c", null], | 67 ["http://example.com/", "a-b:c", null], |
69 ["http://example.com/", "a-b:c", null], | |
70 ["http://example.com/", "xml", null], | 68 ["http://example.com/", "xml", null], |
71 ["http://example.com/", "xmlns", "NAMESPACE_ERR"], | 69 ["http://example.com/", "xmlns", "NAMESPACE_ERR"], |
72 ["http://example.com/", "XMLNS", null], | 70 ["http://example.com/", "XMLNS", null], |
73 ["http://example.com/", "xmlfoo", null], | 71 ["http://example.com/", "xmlfoo", null], |
74 ["http://example.com/", "xml:foo", "NAMESPACE_ERR"], | 72 ["http://example.com/", "xml:foo", "NAMESPACE_ERR"], |
75 ["http://example.com/", "XML:foo", null], | 73 ["http://example.com/", "XML:foo", null], |
76 ["http://example.com/", "xmlns:foo", "NAMESPACE_ERR"], | 74 ["http://example.com/", "xmlns:foo", "NAMESPACE_ERR"], |
77 ["http://example.com/", "XMLNS:foo", null], | 75 ["http://example.com/", "XMLNS:foo", null], |
78 ["http://example.com/", "xmlfoo:bar", null], | 76 ["http://example.com/", "xmlfoo:bar", null], |
79 ["http://example.com/", "prefix::local", "NAMESPACE_ERR"], | 77 ["http://example.com/", "prefix::local", "NAMESPACE_ERR"], |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 ["foo:", ":foo", "NAMESPACE_ERR"], | 151 ["foo:", ":foo", "NAMESPACE_ERR"], |
154 ["foo:", "f:oo", null], | 152 ["foo:", "f:oo", null], |
155 ["foo:", "foo:", "NAMESPACE_ERR"], | 153 ["foo:", "foo:", "NAMESPACE_ERR"], |
156 ["foo:", "xml", null], | 154 ["foo:", "xml", null], |
157 ["foo:", "xmlns", "NAMESPACE_ERR"], | 155 ["foo:", "xmlns", "NAMESPACE_ERR"], |
158 ["foo:", "xmlfoo", null], | 156 ["foo:", "xmlfoo", null], |
159 ["foo:", "xml:foo", "NAMESPACE_ERR"], | 157 ["foo:", "xml:foo", "NAMESPACE_ERR"], |
160 ["foo:", "xmlns:foo", "NAMESPACE_ERR"], | 158 ["foo:", "xmlns:foo", "NAMESPACE_ERR"], |
161 ["foo:", "xmlfoo:bar", null], | 159 ["foo:", "xmlfoo:bar", null], |
162 ] | 160 ] |
OLD | NEW |