@@ -109,6 +109,7 @@ public void selector() throws Exception {
109
109
selectorType (".only" , SelectorType .ELEMENT_NODE_SELECTOR );
110
110
selectorType (".none" , SelectorType .ELEMENT_NODE_SELECTOR );
111
111
selectorType (".from" , SelectorType .ELEMENT_NODE_SELECTOR );
112
+ selectorType (".and" , SelectorType .ELEMENT_NODE_SELECTOR );
112
113
}
113
114
114
115
/**
@@ -230,6 +231,7 @@ public void condition() throws Exception {
230
231
conditionType (".only" , ConditionType .CLASS_CONDITION );
231
232
conditionType (".none" , ConditionType .CLASS_CONDITION );
232
233
conditionType (".from" , ConditionType .CLASS_CONDITION );
234
+ conditionType (".and" , ConditionType .CLASS_CONDITION );
233
235
}
234
236
235
237
/**
@@ -1854,7 +1856,7 @@ public void unexpectedEndOfPageRule() throws Exception {
1854
1856
1855
1857
assertEquals (1 , errorHandler .getErrorCount ());
1856
1858
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>,"
1858
1860
+ " \" }\" , \" ;\" , \" *\" , <CUSTOM_PROPERTY_NAME>.)" ;
1859
1861
assertEquals (expected , errorHandler .getErrorMessage ());
1860
1862
assertEquals ("1" , errorHandler .getErrorLines ());
@@ -3234,7 +3236,7 @@ public void invalid_not() throws Exception {
3234
3236
3235
3237
checkErrorSelector ("input:not()" ,
3236
3238
"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>.)" );
3238
3240
3239
3241
// checkErrorSelector("input:not(*.home)",
3240
3242
// "Error in pseudo class or element. (Invalid token \".\"."
@@ -3282,7 +3284,7 @@ public void pseudoElementsErrors() throws Exception {
3282
3284
"Duplicate pseudo class \" :foo(ab)\" or pseudo class \" :foo(ab)\" not at end." );
3283
3285
checkErrorSelector ("input:before:" ,
3284
3286
"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>, "
3286
3288
+ "\" :\" , <FUNCTION_NOT>, <FUNCTION_LANG>, <FUNCTION>.)" );
3287
3289
3288
3290
// pseudo element not at end
0 commit comments