Skip to content

Commit a2545a9

Browse files
committed
more tests
1 parent 73a8a40 commit a2545a9

File tree

3 files changed

+17054
-1
lines changed

3 files changed

+17054
-1
lines changed

src/test/java/org/htmlunit/cssparser/parser/CSS3ParserRealWorldTest.java

+22
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,28 @@ public void filterscontainer() throws Exception {
515515
realWorld("realworld/filterscontainer.css", 43, 74, media, 0, 0);
516516
}
517517

518+
/**
519+
* @throws Exception if any error occurs
520+
*/
521+
@Test
522+
public void alibabaHugeIndex() throws Exception {
523+
final String media = "(max-width: 767px);(max-width: 768px);"
524+
+ "(max-width: 991px);"
525+
+ "(min-width: 1024px);"
526+
+ "(min-width: 1200px);"
527+
+ "(min-width: 1280px);"
528+
+ "(min-width: 360px);"
529+
+ "(min-width: 640px);"
530+
+ "(min-width: 768px);"
531+
+ "(min-width: 992px);"
532+
+ "(prefers-reduced-motion: no-preference);"
533+
+ "screen and (max-width: 1200px);"
534+
+ "screen and (max-width: 480px);"
535+
+ "screen and (max-width: 767px);"
536+
+ "screen and (max-width: 768px);";
537+
realWorld("realworld/alibaba-huge-index.css", 3201, 6863, media, 12, 6);
538+
}
539+
518540
private void realWorld(final String resourceName, final int rules, final int properties,
519541
final String media,
520542
final int err, final int warn) throws Exception {

0 commit comments

Comments
 (0)