Skip to content

Commit

Permalink
Removed duplicate test from summarized selectors suite
Browse files Browse the repository at this point in the history
  • Loading branch information
bmavity committed Sep 28, 2010
1 parent 82ad8e8 commit 347bc80
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions tests/test.js
Expand Up @@ -24,7 +24,6 @@ vows.describe('Summarized Selectors').addBatch({
'*': shouldParse(), '*': shouldParse(),
'E': shouldParse(), 'E': shouldParse(),
'E[foo]': shouldParse(), 'E[foo]': shouldParse(),
'E[foo=bar]': shouldParse(),
'E[foo="bar"]': shouldParse(), 'E[foo="bar"]': shouldParse(),
'E[foo~="bar"]': shouldParse(), 'E[foo~="bar"]': shouldParse(),
'E[foo^="bar"]': shouldParse(), 'E[foo^="bar"]': shouldParse(),
Expand Down Expand Up @@ -117,33 +116,38 @@ vows.describe('Attribute Selectors with Identifiers').addBatch({
'[foo*=bar]': shouldParse(), '[foo*=bar]': shouldParse(),
'[foo|=en]': shouldParse() '[foo|=en]': shouldParse()
}).run(); }).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)') vows.describe('Nth Selectors').addBatch({
assert_selector_parses(':nth-child(+2n-3)') ':nth-child(-n)': shouldParse(),
assert_selector_parses(':nth-child(-2n+3)') ':nth-child(+n)': shouldParse(),
assert_selector_parses(':nth-child(-2n+ 3)')
':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) { :nth-child(2n + 3) {
a: b; } a: b; }
CSS CSS
:nth-child( 2n + 3 ) { :nth-child( 2n + 3 ) {
a: b; } a: b; }
SCSS SCSS
end
}).run();
/*
def test_negation_selectors def test_negation_selectors
assert_selector_parses(':not(foo|bar)') assert_selector_parses(':not(foo|bar)')
assert_selector_parses(':not(*|bar)') assert_selector_parses(':not(*|bar)')
Expand Down

0 comments on commit 347bc80

Please sign in to comment.