Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:set ts=2 sw=2 sts=2 et: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 dtdTests = ["attrgetownerelement01", "documentimportnode03",
8 "documentimportnode04", "documentimportnode19",
9 "documentimportnode20", "documentimportnode21",
10 "documentimportnode22",
11 "elementgetattributenodens03", "elementgetattributens02",
12 "elementhasattribute02", "getAttributeNS01", "getElementById01",
13 "getNamedItemNS03", "getNamedItemNS04", "hasAttribute02",
14 "hasAttributeNS04", "importNode07", "importNode09",
15 "importNode10", "importNode11", "importNode12", "importNode13",
16 "internalSubset01", "localName02", "namednodemapgetnameditemns01",
17 "namednodemapremovenameditemns02",
18 "namednodemapremovenameditemns05", "namednodemapsetnameditemns05",
19 "namednodemapsetnameditemns09", "namednodemapsetnameditemns10",
20 "namednodemapsetnameditemns11", "namespaceURI01",
21 "nodeissupported04", "nodenormalize01", "nodesetprefix04",
22 "prefix08", "removeAttributeNS01", "removeAttributeNS02",
23 "removeNamedItemNS03", "setAttributeNodeNS02", "setAttributeNS03",
24 "setNamedItemNS04"];
26 bug371552 = ["elementhasattributens02"];
27 wrongDocError = ["elementsetattributenodens05", "namednodemapsetnameditemns03",
28 "setAttributeNodeNS05", "setNamedItemNS02"];
29 attrExodus = ["elementsetattributenodens06", "importNode01",
30 "hc_namednodemapinvalidtype1"];
31 bogusPrefix = ["nodesetprefix05", "nodesetprefix09", "prefix06", "prefix07"];
32 prefixReplacement = ["setAttributeNodeNS04"];
34 function concat(lst/*...*/) {
35 var f = [];
36 if (arguments !== null) {
37 f = arguments[0];
38 }
39 for (var i = 1; i < arguments.length; i++) {
40 f = f.concat(arguments[i]);
41 }
42 return f;
43 }
45 var todoTests = {};
46 var exclusions = concat(dtdTests, bug371552, wrongDocError, attrExodus,
47 bogusPrefix, prefixReplacement);
48 for (var excludedTestName in exclusions) {
49 todoTests[exclusions[excludedTestName]] = true;
50 }