Permalink
Browse files

Prune dead namespace attribute selector tests

  • Loading branch information...
1 parent 9a752d7 commit e9f1e2f34741b83e8a2b0c3ef3805aca99c82984 @sstephenson committed May 12, 2010
Showing with 2 additions and 18 deletions.
  1. +2 −18 test/unit/selector_test.js
View
@@ -95,11 +95,6 @@ new Test.Unit.Runner({
this.assertEnumEqual([$('attr_with_dash')], $$('[foo-bar]'), "attribute with hyphen");
},
- testSelectorWithUniversalAndHyphenTokenizedAttributeValue: function() {
- this.assertEnumEqual([$('item_3')], $$('*[xml:lang|="es"]'));
- this.assertEnumEqual([$('item_3')], $$('*[xml:lang|="ES"]'));
- },
-
testSelectorWithTagNameAndNegatedAttributeValue: function() {
this.assertEnumEqual([], $$('a[href!="#"]'));
},
@@ -171,17 +166,6 @@ new Test.Unit.Runner({
// AND NOW COME THOSE NEW TESTS AFTER ANDREW'S REWRITE!
- testSelectorWithNamespacedAttributes: function() {
- if (Prototype.BrowserFeatures.XPath) {
- this.assertUndefined(new Selector('html[xml:lang]').xpath);
- this.assertUndefined(new Selector('body p[xml:lang]').xpath);
- } else
- this.info("Could not test XPath bypass: no XPath to begin with!");
-
- this.assertElementsMatch($$('[xml:lang]'), 'html', '#item_3');
- this.assertElementsMatch($$('*[xml:lang]'), 'html', '#item_3');
- },
-
testSelectorWithChild: function() {
this.assertEnumEqual($('link_1', 'link_2'), $$('p.first > a'));
this.assertEnumEqual($('father', 'uncle'), $$('div#grandfather > div'));
@@ -336,8 +320,8 @@ new Test.Unit.Runner({
},
testCommasFor$$: function() {
- this.assertEnumEqual($('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm'), $$('#list, .first,*[xml:lang="es-us"] , #troubleForm'));
- this.assertEnumEqual($('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm'), $$('#list, .first,', '*[xml:lang="es-us"] , #troubleForm'));
+ this.assertEnumEqual($('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm'), $$('#list, .first,#item_3 , #troubleForm'));
+ this.assertEnumEqual($('p', 'link_1', 'list', 'item_1', 'item_3', 'troubleForm'), $$('#list, .first,', '#item_3 , #troubleForm'));
this.assertEnumEqual($('commaParent', 'commaChild'), $$('form[title*="commas,"], input[value="#commaOne,#commaTwo"]'));
this.assertEnumEqual($('commaParent', 'commaChild'), $$('form[title*="commas,"]', 'input[value="#commaOne,#commaTwo"]'));
},

0 comments on commit e9f1e2f

Please sign in to comment.