Document-createElementNS.js (8919B)
1 var createElementNS_tests = [ 2 /* Arrays with three elements: 3 * the namespace argument 4 * the qualifiedName argument 5 * the expected exception, or null if none 6 */ 7 [null, null, null], 8 [null, undefined, null], 9 [null, "foo", null], 10 [null, "1foo", "INVALID_CHARACTER_ERR"], 11 [null, "f1oo", null], 12 [null, "foo1", null], 13 [null, "\u0BC6foo", null], 14 [null, "\u037Efoo", null], 15 [null, "}foo", "INVALID_CHARACTER_ERR"], 16 [null, "f}oo", null], 17 [null, "foo}", null], 18 [null, "\uFFFFfoo", null], 19 [null, "f\uFFFFoo", null], 20 [null, "foo\uFFFF", null], 21 [null, "<foo", "INVALID_CHARACTER_ERR"], 22 [null, "foo>", "INVALID_CHARACTER_ERR"], 23 [null, "<foo>", "INVALID_CHARACTER_ERR"], 24 [null, "f<oo", null], 25 [null, "^^", "INVALID_CHARACTER_ERR"], 26 [null, "fo o", "INVALID_CHARACTER_ERR"], 27 [null, "-foo", "INVALID_CHARACTER_ERR"], 28 [null, ".foo", "INVALID_CHARACTER_ERR"], 29 [null, ":foo", "INVALID_CHARACTER_ERR"], 30 [null, "f:oo", "NAMESPACE_ERR"], 31 [null, "foo:", "INVALID_CHARACTER_ERR"], 32 [null, "f:o:o", "NAMESPACE_ERR"], 33 [null, ":", "INVALID_CHARACTER_ERR"], 34 [null, "xml", null], 35 [null, "xmlns", "NAMESPACE_ERR"], 36 [null, "xmlfoo", null], 37 [null, "xml:foo", "NAMESPACE_ERR"], 38 [null, "xmlns:foo", "NAMESPACE_ERR"], 39 [null, "xmlfoo:bar", "NAMESPACE_ERR"], 40 [null, "null:xml", "NAMESPACE_ERR"], 41 ["", null, null], 42 ["", ":foo", "INVALID_CHARACTER_ERR"], 43 ["", "f:oo", "NAMESPACE_ERR"], 44 ["", "foo:", "INVALID_CHARACTER_ERR"], 45 [undefined, null, null], 46 [undefined, undefined, null], 47 [undefined, "foo", null], 48 [undefined, "1foo", "INVALID_CHARACTER_ERR"], 49 [undefined, "f1oo", null], 50 [undefined, "foo1", null], 51 [undefined, ":foo", "INVALID_CHARACTER_ERR"], 52 [undefined, "f:oo", "NAMESPACE_ERR"], 53 [undefined, "foo:", "INVALID_CHARACTER_ERR"], 54 [undefined, "f::oo", "INVALID_CHARACTER_ERR"], 55 [undefined, "xml", null], 56 [undefined, "xmlns", "NAMESPACE_ERR"], 57 [undefined, "xmlfoo", null], 58 [undefined, "xml:foo", "NAMESPACE_ERR"], 59 [undefined, "xmlns:foo", "NAMESPACE_ERR"], 60 [undefined, "xmlfoo:bar", "NAMESPACE_ERR"], 61 ["http://example.com/", "foo", null], 62 ["http://example.com/", "1foo", "INVALID_CHARACTER_ERR"], 63 ["http://example.com/", "<foo>", "INVALID_CHARACTER_ERR"], 64 ["http://example.com/", "fo<o", null], 65 ["http://example.com/", "-foo", "INVALID_CHARACTER_ERR"], 66 ["http://example.com/", ".foo", "INVALID_CHARACTER_ERR"], 67 ["http://example.com/", "f1oo", null], 68 ["http://example.com/", "foo1", null], 69 ["http://example.com/", ":foo", "INVALID_CHARACTER_ERR"], 70 ["http://example.com/", "f:oo", null], 71 ["http://example.com/", "f:o:o", null], 72 ["http://example.com/", "foo:", "INVALID_CHARACTER_ERR"], 73 ["http://example.com/", "f::oo", "INVALID_CHARACTER_ERR"], 74 ["http://example.com/", "a:0", "INVALID_CHARACTER_ERR"], 75 ["http://example.com/", "0:a", null], 76 ["http://example.com/", "a:_", null], 77 ["http://example.com/", "a:\u0BC6", null], 78 ["http://example.com/", "a:\u037E", null], 79 ["http://example.com/", "a:\u0300", null], 80 ["http://example.com/", "\u0BC6:a", null], 81 ["http://example.com/", "\u0300:a", null], 82 ["http://example.com/", "\u037E:a", null], 83 ["http://example.com/", "a:a\u0BC6", null], 84 ["http://example.com/", "a\u0BC6:a", null], 85 ["http://example.com/", "xml:test", "NAMESPACE_ERR"], 86 ["http://example.com/", "xmlns:test", "NAMESPACE_ERR"], 87 ["http://example.com/", "test:xmlns", null], 88 ["http://example.com/", "xmlns", "NAMESPACE_ERR"], 89 ["http://example.com/", "_:_", null], 90 ["http://example.com/", "_:h0", null], 91 ["http://example.com/", "_:test", null], 92 ["http://example.com/", "l_:_", null], 93 ["http://example.com/", "ns:_0", null], 94 ["http://example.com/", "ns:a0", null], 95 ["http://example.com/", "ns0:test", null], 96 ["http://example.com/", "a.b:c", null], 97 ["http://example.com/", "a-b:c", null], 98 ["http://example.com/", "xml", null], 99 ["http://example.com/", "XMLNS", null], 100 ["http://example.com/", "xmlfoo", null], 101 ["http://example.com/", "xml:foo", "NAMESPACE_ERR"], 102 ["http://example.com/", "XML:foo", null], 103 ["http://example.com/", "xmlns:foo", "NAMESPACE_ERR"], 104 ["http://example.com/", "XMLNS:foo", null], 105 ["http://example.com/", "xmlfoo:bar", null], 106 ["http://example.com/", "prefix::local", "INVALID_CHARACTER_ERR"], 107 ["http://example.com/", "namespaceURI:{", "INVALID_CHARACTER_ERR"], 108 ["http://example.com/", "namespaceURI:}", "INVALID_CHARACTER_ERR"], 109 ["http://example.com/", "namespaceURI:~", "INVALID_CHARACTER_ERR"], 110 ["http://example.com/", "namespaceURI:'", "INVALID_CHARACTER_ERR"], 111 ["http://example.com/", "namespaceURI:!", "INVALID_CHARACTER_ERR"], 112 ["http://example.com/", "namespaceURI:@", "INVALID_CHARACTER_ERR"], 113 ["http://example.com/", "namespaceURI:#", "INVALID_CHARACTER_ERR"], 114 ["http://example.com/", "namespaceURI:$", "INVALID_CHARACTER_ERR"], 115 ["http://example.com/", "namespaceURI:%", "INVALID_CHARACTER_ERR"], 116 ["http://example.com/", "namespaceURI:^", "INVALID_CHARACTER_ERR"], 117 ["http://example.com/", "namespaceURI:&", "INVALID_CHARACTER_ERR"], 118 ["http://example.com/", "namespaceURI:*", "INVALID_CHARACTER_ERR"], 119 ["http://example.com/", "namespaceURI:(", "INVALID_CHARACTER_ERR"], 120 ["http://example.com/", "namespaceURI:)", "INVALID_CHARACTER_ERR"], 121 ["http://example.com/", "namespaceURI:+", "INVALID_CHARACTER_ERR"], 122 ["http://example.com/", "namespaceURI:=", "INVALID_CHARACTER_ERR"], 123 ["http://example.com/", "namespaceURI:[", "INVALID_CHARACTER_ERR"], 124 ["http://example.com/", "namespaceURI:]", "INVALID_CHARACTER_ERR"], 125 ["http://example.com/", "namespaceURI:\\", "INVALID_CHARACTER_ERR"], 126 ["http://example.com/", "namespaceURI:/", "INVALID_CHARACTER_ERR"], 127 ["http://example.com/", "namespaceURI:;", "INVALID_CHARACTER_ERR"], 128 ["http://example.com/", "namespaceURI:`", "INVALID_CHARACTER_ERR"], 129 ["http://example.com/", "namespaceURI:<", "INVALID_CHARACTER_ERR"], 130 ["http://example.com/", "namespaceURI:>", "INVALID_CHARACTER_ERR"], 131 ["http://example.com/", "namespaceURI:,", "INVALID_CHARACTER_ERR"], 132 ["http://example.com/", "namespaceURI:a ", "INVALID_CHARACTER_ERR"], 133 ["http://example.com/", "namespaceURI:\"", "INVALID_CHARACTER_ERR"], 134 ["/", "foo", null], 135 ["/", "1foo", "INVALID_CHARACTER_ERR"], 136 ["/", "f1oo", null], 137 ["/", "foo1", null], 138 ["/", ":foo", "INVALID_CHARACTER_ERR"], 139 ["/", "f:oo", null], 140 ["/", "foo:", "INVALID_CHARACTER_ERR"], 141 ["/", "xml", null], 142 ["/", "xmlns", "NAMESPACE_ERR"], 143 ["/", "xmlfoo", null], 144 ["/", "xml:foo", "NAMESPACE_ERR"], 145 ["/", "xmlns:foo", "NAMESPACE_ERR"], 146 ["/", "xmlfoo:bar", null], 147 ["http://www.w3.org/XML/1998/namespace", "foo", null], 148 ["http://www.w3.org/XML/1998/namespace", "1foo", "INVALID_CHARACTER_ERR"], 149 ["http://www.w3.org/XML/1998/namespace", "f1oo", null], 150 ["http://www.w3.org/XML/1998/namespace", "foo1", null], 151 ["http://www.w3.org/XML/1998/namespace", ":foo", "INVALID_CHARACTER_ERR"], 152 ["http://www.w3.org/XML/1998/namespace", "f:oo", null], 153 ["http://www.w3.org/XML/1998/namespace", "foo:", "INVALID_CHARACTER_ERR"], 154 ["http://www.w3.org/XML/1998/namespace", "xml", null], 155 ["http://www.w3.org/XML/1998/namespace", "xmlns", "NAMESPACE_ERR"], 156 ["http://www.w3.org/XML/1998/namespace", "xmlfoo", null], 157 ["http://www.w3.org/XML/1998/namespace", "xml:foo", null], 158 ["http://www.w3.org/XML/1998/namespace", "xmlns:foo", "NAMESPACE_ERR"], 159 ["http://www.w3.org/XML/1998/namespace", "xmlfoo:bar", null], 160 ["http://www.w3.org/XML/1998/namespaces", "xml:foo", "NAMESPACE_ERR"], 161 ["http://www.w3.org/xml/1998/namespace", "xml:foo", "NAMESPACE_ERR"], 162 ["http://www.w3.org/2000/xmlns/", "foo", "NAMESPACE_ERR"], 163 ["http://www.w3.org/2000/xmlns/", "1foo", "INVALID_CHARACTER_ERR"], 164 ["http://www.w3.org/2000/xmlns/", "f1oo", "NAMESPACE_ERR"], 165 ["http://www.w3.org/2000/xmlns/", "foo1", "NAMESPACE_ERR"], 166 ["http://www.w3.org/2000/xmlns/", ":foo", "INVALID_CHARACTER_ERR"], 167 ["http://www.w3.org/2000/xmlns/", "f:oo", "NAMESPACE_ERR"], 168 ["http://www.w3.org/2000/xmlns/", "foo:", "INVALID_CHARACTER_ERR"], 169 ["http://www.w3.org/2000/xmlns/", "xml", "NAMESPACE_ERR"], 170 ["http://www.w3.org/2000/xmlns/", "xmlns", null], 171 ["http://www.w3.org/2000/xmlns/", "xmlfoo", "NAMESPACE_ERR"], 172 ["http://www.w3.org/2000/xmlns/", "xml:foo", "NAMESPACE_ERR"], 173 ["http://www.w3.org/2000/xmlns/", "xmlns:foo", null], 174 ["http://www.w3.org/2000/xmlns/", "xmlfoo:bar", "NAMESPACE_ERR"], 175 ["http://www.w3.org/2000/xmlns/", "foo:xmlns", "NAMESPACE_ERR"], 176 ["foo:", "foo", null], 177 ["foo:", "1foo", "INVALID_CHARACTER_ERR"], 178 ["foo:", "f1oo", null], 179 ["foo:", "foo1", null], 180 ["foo:", ":foo", "INVALID_CHARACTER_ERR"], 181 ["foo:", "f:oo", null], 182 ["foo:", "foo:", "INVALID_CHARACTER_ERR"], 183 ["foo:", "xml", null], 184 ["foo:", "xmlns", "NAMESPACE_ERR"], 185 ["foo:", "xmlfoo", null], 186 ["foo:", "xml:foo", "NAMESPACE_ERR"], 187 ["foo:", "xmlns:foo", "NAMESPACE_ERR"], 188 ["foo:", "xmlfoo:bar", null], 189 ]