Permalink
Browse files

Removed duplicate test from summarized selectors suite

  • Loading branch information...
1 parent 82ad8e8 commit 347bc80190e752bd46ef4d2b40a214df246913ff @bmavity committed Sep 21, 2010
Showing with 23 additions and 19 deletions.
  1. +23 −19 tests/test.js
View
@@ -24,7 +24,6 @@ vows.describe('Summarized Selectors').addBatch({
'*': shouldParse(),
'E': shouldParse(),
'E[foo]': shouldParse(),
- 'E[foo=bar]': shouldParse(),
'E[foo="bar"]': shouldParse(),
'E[foo~="bar"]': shouldParse(),
'E[foo^="bar"]': shouldParse(),
@@ -117,33 +116,38 @@ vows.describe('Attribute Selectors with Identifiers').addBatch({
'[foo*=bar]': shouldParse(),
'[foo|=en]': shouldParse()
}).run();
-/*
- def test_nth_selectors
- assert_selector_parses(':nth-child(-n)')
- assert_selector_parses(':nth-child(+n)')
-
- assert_selector_parses(':nth-child(even)')
- assert_selector_parses(':nth-child(odd)')
-
- assert_selector_parses(':nth-child(50)')
- assert_selector_parses(':nth-child(-50)')
- assert_selector_parses(':nth-child(+50)')
- assert_selector_parses(':nth-child(2n+3)')
- assert_selector_parses(':nth-child(2n-3)')
- assert_selector_parses(':nth-child(+2n-3)')
- assert_selector_parses(':nth-child(-2n+3)')
- assert_selector_parses(':nth-child(-2n+ 3)')
+/*
+vows.describe('Nth Selectors').addBatch({
+ ':nth-child(-n)': shouldParse(),
+ ':nth-child(+n)': shouldParse(),
+
+ ':nth-child(even)': shouldParse(),
+ ':nth-child(odd)': shouldParse(),
+
+ ':nth-child(50)': shouldParse(),
+ ':nth-child(-50)': shouldParse(),
+ ':nth-child(+50)': shouldParse(),
+
+ ':nth-child(2n+3)': shouldParse(),
+ ':nth-child(2n-3)': shouldParse(),
+ ':nth-child(+2n-3)': shouldParse(),
+ ':nth-child(-2n+3)': shouldParse(),
+ ':nth-child(-2n+ 3)': shouldParse()
+/*
+ assert_equal(<<CSS, render(<<SCSS))
- assert_equal(<<CSS, render(<<SCSS))
:nth-child(2n + 3) {
a: b; }
CSS
:nth-child( 2n + 3 ) {
a: b; }
SCSS
- end
+}).run();
+
+
+/*
def test_negation_selectors
assert_selector_parses(':not(foo|bar)')
assert_selector_parses(':not(*|bar)')

0 comments on commit 347bc80

Please sign in to comment.