michael@0: /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim:set ts=2 sw=2 sts=2 et: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: dtdTests = ["attrgetownerelement01", "documentimportnode03", michael@0: "documentimportnode04", "documentimportnode19", michael@0: "documentimportnode20", "documentimportnode21", michael@0: "documentimportnode22", michael@0: "elementgetattributenodens03", "elementgetattributens02", michael@0: "elementhasattribute02", "getAttributeNS01", "getElementById01", michael@0: "getNamedItemNS03", "getNamedItemNS04", "hasAttribute02", michael@0: "hasAttributeNS04", "importNode07", "importNode09", michael@0: "importNode10", "importNode11", "importNode12", "importNode13", michael@0: "internalSubset01", "localName02", "namednodemapgetnameditemns01", michael@0: "namednodemapremovenameditemns02", michael@0: "namednodemapremovenameditemns05", "namednodemapsetnameditemns05", michael@0: "namednodemapsetnameditemns09", "namednodemapsetnameditemns10", michael@0: "namednodemapsetnameditemns11", "namespaceURI01", michael@0: "nodeissupported04", "nodenormalize01", "nodesetprefix04", michael@0: "prefix08", "removeAttributeNS01", "removeAttributeNS02", michael@0: "removeNamedItemNS03", "setAttributeNodeNS02", "setAttributeNS03", michael@0: "setNamedItemNS04"]; michael@0: michael@0: bug371552 = ["elementhasattributens02"]; michael@0: wrongDocError = ["elementsetattributenodens05", "namednodemapsetnameditemns03", michael@0: "setAttributeNodeNS05", "setNamedItemNS02"]; michael@0: attrExodus = ["elementsetattributenodens06", "importNode01", michael@0: "hc_namednodemapinvalidtype1"]; michael@0: bogusPrefix = ["nodesetprefix05", "nodesetprefix09", "prefix06", "prefix07"]; michael@0: prefixReplacement = ["setAttributeNodeNS04"]; michael@0: michael@0: function concat(lst/*...*/) { michael@0: var f = []; michael@0: if (arguments !== null) { michael@0: f = arguments[0]; michael@0: } michael@0: for (var i = 1; i < arguments.length; i++) { michael@0: f = f.concat(arguments[i]); michael@0: } michael@0: return f; michael@0: } michael@0: michael@0: var todoTests = {}; michael@0: var exclusions = concat(dtdTests, bug371552, wrongDocError, attrExodus, michael@0: bogusPrefix, prefixReplacement); michael@0: for (var excludedTestName in exclusions) { michael@0: todoTests[exclusions[excludedTestName]] = true; michael@0: }