Skip to content

Commit 1f14d7d

Browse files
committed
add jenkins real world test
1 parent 1953fcc commit 1f14d7d

File tree

2 files changed

+8116
-2
lines changed

2 files changed

+8116
-2
lines changed

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

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4744,7 +4744,7 @@ public void realWorldSpiegel() throws Exception {
47444744
* @throws Exception if any error occurs
47454745
*/
47464746
@Test
4747-
public void realStackoverflow() throws Exception {
4747+
public void realWorldStackoverflow() throws Exception {
47484748
final String media = "not all;"
47494749
+ "only screen and (min--moz-device-pixel-ratio: 1.5);"
47504750
+ "print;screen and (max-height: 740px);"
@@ -4758,7 +4758,7 @@ public void realStackoverflow() throws Exception {
47584758
* @throws Exception if any error occurs
47594759
*/
47604760
@Test
4761-
public void realMui() throws Exception {
4761+
public void realWorldMui() throws Exception {
47624762
final String media = "(-ms-high-contrast: active);"
47634763
+ "(max-width: 543px);"
47644764
+ "(min-width: 1200px);"
@@ -4774,6 +4774,32 @@ public void realMui() throws Exception {
47744774
realWorld("realworld/mui.css", 342, 752, media, 0, 0);
47754775
}
47764776

4777+
/**
4778+
* Test case for https://github.com/jenkinsci/jenkins/pull/10078.
4779+
* @throws Exception if any error occurs
4780+
*/
4781+
@Test
4782+
public void realWorldJenkins10078() throws Exception {
4783+
final String media = "(hover: hover);"
4784+
+ "(hover: hover) and (hover: hover);"
4785+
+ "(hover: none);(max-width: 1200px);"
4786+
+ "(max-width: 767px);(max-width: 900px);"
4787+
+ "(min-width: 1170px);(min-width: 1200px);"
4788+
+ "(min-width: 767px);"
4789+
+ "(min-width: 768px) and (max-width: 991px);"
4790+
+ "(min-width: 900px);"
4791+
+ "(min-width: 992px) and (max-width: 1199px);"
4792+
+ "(prefers-contrast: more);"
4793+
+ "(prefers-reduced-motion);"
4794+
+ "print;"
4795+
+ "screen and (max-width: 1200px);"
4796+
+ "screen and (max-width: 900px);"
4797+
+ "screen and (min-width: 1300px);"
4798+
+ "screen and (min-width: 1800px);"
4799+
+ "screen and (min-width: 800px);";
4800+
realWorld("realworld/jenkins_10078.css", 1423, 4016, media, 16, 0);
4801+
}
4802+
47774803
private void realWorld(final String resourceName, final int rules, final int properties,
47784804
final String media,
47794805
final int err, final int warn) throws Exception {

0 commit comments

Comments
 (0)