1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/dom-level1-core/exclusions.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,97 @@ 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 + 1.11 +// tests that depend on DTD features no one cares about 1.12 +var dtdTests = ["attrdefaultvalue","attrnotspecifiedvalue", "attrremovechild1", 1.13 + "attrreplacechild1", "attrsetvaluenomodificationallowederr", 1.14 + "attrsetvaluenomodificationallowederrEE", "attrspecifiedvalueremove", 1.15 + "characterdataappenddatanomodificationallowederr", "characterdataappenddatanomodificationallowederrEE", 1.16 + "characterdatadeletedatanomodificationallowederr", "characterdatadeletedatanomodificationallowederrEE", 1.17 + "characterdatainsertdatanomodificationallowederr", "characterdatainsertdatanomodificationallowederrEE", 1.18 + "characterdatareplacedatanomodificationallowederr", "characterdatareplacedatanomodificationallowederrEE", 1.19 + "characterdatasetdatanomodificationallowederr", "characterdatasetdatanomodificationallowederrEE", 1.20 + "documentcreateelementdefaultattr", "documentcreateentityreference", "documentcreateentityreferenceknown", 1.21 + "documenttypegetentities", "documenttypegetentitieslength", "documenttypegetentitiestype", 1.22 + "documenttypegetnotations", "documenttypegetnotationstype", "elementremoveattribute", 1.23 + "elementremoveattributenodenomodificationallowederr", "elementremoveattributenodenomodificationallowederrEE", 1.24 + "elementremoveattributenomodificationallowederr", "elementremoveattributenomodificationallowederrEE", 1.25 + "elementremoveattributerestoredefaultvalue", "elementretrieveallattributes", 1.26 + "elementsetattributenodenomodificationallowederr", "elementsetattributenodenomodificationallowederrEE", 1.27 + "elementsetattributenomodificationallowederr", "elementsetattributenomodificationallowederrEE", 1.28 + "entitygetentityname", "entitygetpublicid", "entitygetpublicidnull", "namednodemapremovenameditem", 1.29 + "namednodemapremovenameditemgetvalue", "nodeappendchildnomodificationallowederr", "nodeappendchildnomodificationallowederrEE", 1.30 + "nodeentitynodeattributes", "nodeentitynodename", "nodeentitynodetype", "nodeentitynodevalue", 1.31 + "nodeentityreferencenodeattributes", "nodeentityreferencenodename", "nodeentityreferencenodetype", 1.32 + "nodeentityreferencenodevalue", "nodeentitysetnodevalue", "nodeinsertbeforenomodificationallowederr", 1.33 + "nodeinsertbeforenomodificationallowederrEE", "nodenotationnodeattributes", "nodenotationnodename", 1.34 + "nodenotationnodetype", "nodenotationnodevalue", "noderemovechildnomodificationallowederr", 1.35 + "noderemovechildnomodificationallowederrEE", "nodereplacechildnomodificationallowederr", 1.36 + "nodereplacechildnomodificationallowederrEE", "nodesetnodevaluenomodificationallowederr", 1.37 + "nodesetnodevaluenomodificationallowederrEE", "nodevalue03","nodevalue07", "nodevalue08", 1.38 + "notationgetnotationname", "notationgetpublicid", "notationgetpublicidnull", "notationgetsystemid", 1.39 + "notationgetsystemidnull", "processinginstructionsetdatanomodificationallowederr", 1.40 + "processinginstructionsetdatanomodificationallowederrEE", "textsplittextnomodificationallowederr", 1.41 + "textsplittextnomodificationallowederrEE"]; 1.42 + 1.43 +// we don't pass these, unfortunately 1.44 +var indexErrTests = ["characterdataindexsizeerrdeletedatacountnegative", "characterdataindexsizeerrreplacedatacountnegative", 1.45 + "characterdataindexsizeerrsubstringcountnegative", "hc_characterdataindexsizeerrdeletedatacountnegative", 1.46 + "hc_characterdataindexsizeerrreplacedatacountnegative", "hc_characterdataindexsizeerrsubstringcountnegative"]; 1.47 + 1.48 +var attributeModTests = ["hc_attrappendchild1", "hc_attrappendchild3", "hc_attrappendchild5", 1.49 + "hc_attrappendchild6", "hc_attrchildnodes2", "hc_attrclonenode1", "hc_attrinsertbefore1", 1.50 + "hc_attrinsertbefore2", "hc_attrinsertbefore3", "hc_attrinsertbefore4", "hc_attrinsertbefore6", 1.51 + "hc_attrnormalize", "hc_attrreplacechild1", "hc_attrreplacechild2", 1.52 + "hc_attrsetvalue2", "hc_elementnormalize2", "hc_elementnotfounderr", "hc_elementremoveattribute", "hc_elementnormalize2", 1.53 + "hc_elementnotfounderr", "hc_elementremoveattribute", 1.54 + "hc_attrchildnodes1", "hc_attrfirstchild", 1.55 + "hc_attrhaschildnodes", "hc_attrlastchild", 1.56 + "hc_attrremovechild1", "hc_attrsetvalue1"]; 1.57 +var modTests = ["hc_elementwrongdocumenterr", "hc_namednodemapwrongdocumenterr", "hc_nodeappendchildnewchilddiffdocument", "hc_nodeinsertbeforenewchilddiffdocument", 1.58 + "hc_nodereplacechildnewchilddiffdocument", "hc_elementwrongdocumenterr", "hc_namednodemapwrongdocumenterr", "hc_nodeappendchildnewchilddiffdocument", 1.59 + "hc_nodeinsertbeforenewchilddiffdocument", "hc_nodereplacechildnewchilddiffdocument", "elementwrongdocumenterr", "namednodemapwrongdocumenterr", 1.60 + "nodeappendchildnewchilddiffdocument", "nodeinsertbeforenewchilddiffdocument", "nodereplacechildnewchilddiffdocument"]; 1.61 +// These tests rely on an implementation of document.createEntityReference. 1.62 +var createEntityRef = ["documentinvalidcharacterexceptioncreateentref", 1.63 + "documentinvalidcharacterexceptioncreateentref1", 1.64 + "hc_attrgetvalue2", "hc_nodevalue03"]; 1.65 +var createProcessingInstructionHTML = ["documentinvalidcharacterexceptioncreatepi", 1.66 + "documentinvalidcharacterexceptioncreatepi1"]; 1.67 +// These tests expect Node.attributes to exist. 1.68 +var attributesOnNode = [ 1.69 + "hc_commentgetcomment", 1.70 + "hc_documentgetdoctype", 1.71 + "hc_nodeattributenodeattribute", 1.72 + "hc_nodecommentnodeattributes", 1.73 + "hc_nodecommentnodeattributes", 1.74 + "hc_nodedocumentfragmentnodevalue", 1.75 + "hc_nodedocumentnodeattribute", 1.76 + "hc_nodetextnodeattribute", 1.77 + "nodeattributenodeattribute", 1.78 + "nodecommentnodeattributes", 1.79 + "nodecommentnodeattributes", 1.80 + "nodedocumentfragmentnodevalue", 1.81 + "nodedocumentnodeattribute", 1.82 + "nodeprocessinginstructionnodeattributes", 1.83 + "nodetextnodeattribute", 1.84 + "nodecdatasectionnodeattribute", 1.85 + "nodedocumenttypenodevalue" 1.86 +] 1.87 + 1.88 +var todoTests = {}; 1.89 +function concat(lst/*...*/) { 1.90 + var f = []; 1.91 + if (arguments !== null) { 1.92 + f = arguments[0]; 1.93 + } 1.94 + for (var i = 1; i < arguments.length; i++) { 1.95 + f = f.concat(arguments[i]); 1.96 + } 1.97 + return f; 1.98 +} 1.99 +var exclusions = concat(dtdTests, indexErrTests, attributeModTests, modTests, createEntityRef, createProcessingInstructionHTML, attributesOnNode); 1.100 +for (var excludedTestName in exclusions) { todoTests[exclusions[excludedTestName]] = true; }