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