Browse files

Added tests for 'Attribute Selectors with Identifiers'

  • Loading branch information...
1 parent 62599f8 commit 82ad8e83237d1b4bfc6caa3290071485f1484261 @bmavity committed Sep 21, 2010
Showing with 9 additions and 8 deletions.
  1. +9 −8 tests/test.js
View
17 tests/test.js
@@ -66,6 +66,7 @@ vows.describe('Summarized Selectors').addBatch({
'E ~ F': shouldParse()
}).run();
+
vows.describe('Lonely Selectors').addBatch({
// Taken from http://www.w3.org/TR/css3-selectors/#selectors,
// but without the element names
@@ -108,15 +109,15 @@ vows.describe('Lonely Selectors').addBatch({
':not(s)': shouldParse()
}).run();
-/*
- def test_attribute_selectors_with_identifiers
- assert_selector_parses('[foo~=bar]')
- assert_selector_parses('[foo^=bar]')
- assert_selector_parses('[foo$=bar]')
- assert_selector_parses('[foo*=bar]')
- assert_selector_parses('[foo|=en]')
- end
+vows.describe('Attribute Selectors with Identifiers').addBatch({
+ '[foo~=bar]': shouldParse(),
+ '[foo^=bar]': shouldParse(),
+ '[foo$=bar]': shouldParse(),
+ '[foo*=bar]': shouldParse(),
+ '[foo|=en]': shouldParse()
+}).run();
+/*
def test_nth_selectors
assert_selector_parses(':nth-child(-n)')
assert_selector_parses(':nth-child(+n)')

0 comments on commit 82ad8e8

Please sign in to comment.