dom/tests/mochitest/dom-level2-core/exclusions.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/dom-level2-core/exclusions.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,50 @@
     1.4 +/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim:set ts=2 sw=2 sts=2 et: */
     1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.9 +
    1.10 +dtdTests = ["attrgetownerelement01", "documentimportnode03", 
    1.11 +            "documentimportnode04", "documentimportnode19",
    1.12 +            "documentimportnode20", "documentimportnode21",
    1.13 +            "documentimportnode22",
    1.14 +            "elementgetattributenodens03", "elementgetattributens02",
    1.15 +            "elementhasattribute02", "getAttributeNS01", "getElementById01",
    1.16 +            "getNamedItemNS03", "getNamedItemNS04", "hasAttribute02",
    1.17 +            "hasAttributeNS04", "importNode07", "importNode09",
    1.18 +            "importNode10", "importNode11", "importNode12", "importNode13",
    1.19 +            "internalSubset01", "localName02", "namednodemapgetnameditemns01",
    1.20 +            "namednodemapremovenameditemns02",
    1.21 +            "namednodemapremovenameditemns05", "namednodemapsetnameditemns05",
    1.22 +            "namednodemapsetnameditemns09", "namednodemapsetnameditemns10",
    1.23 +            "namednodemapsetnameditemns11", "namespaceURI01", 
    1.24 +            "nodeissupported04", "nodenormalize01", "nodesetprefix04",
    1.25 +            "prefix08", "removeAttributeNS01", "removeAttributeNS02",
    1.26 +            "removeNamedItemNS03", "setAttributeNodeNS02", "setAttributeNS03",
    1.27 +            "setNamedItemNS04"];
    1.28 +
    1.29 +bug371552 = ["elementhasattributens02"];
    1.30 +wrongDocError = ["elementsetattributenodens05", "namednodemapsetnameditemns03",
    1.31 +                 "setAttributeNodeNS05", "setNamedItemNS02"];
    1.32 +attrExodus = ["elementsetattributenodens06", "importNode01",
    1.33 +              "hc_namednodemapinvalidtype1"];
    1.34 +bogusPrefix = ["nodesetprefix05", "nodesetprefix09", "prefix06", "prefix07"];
    1.35 +prefixReplacement = ["setAttributeNodeNS04"];
    1.36 +
    1.37 +function concat(lst/*...*/) {
    1.38 +  var f = [];
    1.39 +  if (arguments !== null) {
    1.40 +    f = arguments[0];
    1.41 +  }
    1.42 +  for (var i = 1; i < arguments.length; i++) {
    1.43 +    f = f.concat(arguments[i]);
    1.44 +  }
    1.45 +  return f;
    1.46 +}
    1.47 +
    1.48 +var todoTests = {};
    1.49 +var exclusions = concat(dtdTests, bug371552, wrongDocError, attrExodus,
    1.50 +                        bogusPrefix, prefixReplacement);
    1.51 +for (var excludedTestName in exclusions) { 
    1.52 +  todoTests[exclusions[excludedTestName]] = true; 
    1.53 +}

mercurial