@@ -109,6 +109,7 @@ public void selector() throws Exception {
109109 selectorType (".only" , SelectorType .ELEMENT_NODE_SELECTOR );
110110 selectorType (".none" , SelectorType .ELEMENT_NODE_SELECTOR );
111111 selectorType (".from" , SelectorType .ELEMENT_NODE_SELECTOR );
112+ selectorType (".and" , SelectorType .ELEMENT_NODE_SELECTOR );
112113 }
113114
114115 /**
@@ -230,6 +231,7 @@ public void condition() throws Exception {
230231 conditionType (".only" , ConditionType .CLASS_CONDITION );
231232 conditionType (".none" , ConditionType .CLASS_CONDITION );
232233 conditionType (".from" , ConditionType .CLASS_CONDITION );
234+ conditionType (".and" , ConditionType .CLASS_CONDITION );
233235 }
234236
235237 /**
@@ -1854,7 +1856,7 @@ public void unexpectedEndOfPageRule() throws Exception {
18541856
18551857 assertEquals (1 , errorHandler .getErrorCount ());
18561858 final String expected = "Error in @page rule. "
1857- + "(Invalid token \" <EOF>\" . Was expecting one of: <S>, \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>,"
1859+ + "(Invalid token \" <EOF>\" . Was expecting one of: <S>, \" and \" , \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>,"
18581860 + " \" }\" , \" ;\" , \" *\" , <CUSTOM_PROPERTY_NAME>.)" ;
18591861 assertEquals (expected , errorHandler .getErrorMessage ());
18601862 assertEquals ("1" , errorHandler .getErrorLines ());
@@ -3234,7 +3236,7 @@ public void invalid_not() throws Exception {
32343236
32353237 checkErrorSelector ("input:not()" ,
32363238 "Error in simple selector. (Invalid token \" )\" . "
3237- + "Was expecting one of: <S>, \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>, \" .\" , \" :\" , \" *\" , \" [\" , <HASH>.)" );
3239+ + "Was expecting one of: <S>, \" and \" , \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>, \" .\" , \" :\" , \" *\" , \" [\" , <HASH>.)" );
32383240
32393241// checkErrorSelector("input:not(*.home)",
32403242// "Error in pseudo class or element. (Invalid token \".\"."
@@ -3282,7 +3284,7 @@ public void pseudoElementsErrors() throws Exception {
32823284 "Duplicate pseudo class \" :foo(ab)\" or pseudo class \" :foo(ab)\" not at end." );
32833285 checkErrorSelector ("input:before:" ,
32843286 "Error in pseudo class or element. (Invalid token \" <EOF>\" . "
3285- + "Was expecting one of: \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>, "
3287+ + "Was expecting one of: \" and \" , \" only\" , \" inherit\" , \" none\" , \" from\" , <IDENT>, "
32863288 + "\" :\" , <FUNCTION_NOT>, <FUNCTION_LANG>, <FUNCTION>.)" );
32873289
32883290 // pseudo element not at end
0 commit comments