Skip to content

Commit b1bc77f

Browse files
committed
more tests
1 parent 08f54a8 commit b1bc77f

File tree

7 files changed

+21614
-0
lines changed

7 files changed

+21614
-0
lines changed

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

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,63 @@ public void bootstrap_5_2_0() throws Exception {
303303
realWorld("realworld/bootstrap_5_2_0.min.css", 1198, 3041, media, 32, 0);
304304
}
305305

306+
/**
307+
* @throws Exception if any error occurs
308+
*/
309+
@Test
310+
public void bootstrap_5_3_8() throws Exception {
311+
final String media = "(max-width: 1199.98px);"
312+
+ "(max-width: 1199.98px) and (prefers-reduced-motion: reduce);"
313+
+ "(max-width: 1399.98px);(max-width: 1399.98px) and (prefers-reduced-motion: reduce);"
314+
+ "(max-width: 575.98px);"
315+
+ "(max-width: 575.98px) and (prefers-reduced-motion: reduce);"
316+
+ "(max-width: 767.98px);"
317+
+ "(max-width: 767.98px) and (prefers-reduced-motion: reduce);"
318+
+ "(max-width: 991.98px);"
319+
+ "(max-width: 991.98px) and (prefers-reduced-motion: reduce);"
320+
+ "(min-width: 1200px);"
321+
+ "(min-width: 1400px);"
322+
+ "(min-width: 576px);"
323+
+ "(min-width: 768px);"
324+
+ "(min-width: 992px);"
325+
+ "(prefers-reduced-motion: no-preference);"
326+
+ "(prefers-reduced-motion: reduce);"
327+
+ "print;";
328+
realWorld("realworld/bootstrap_5_3_8.css", 1307, 3414, media, 122, 0);
329+
realWorld("realworld/bootstrap_5_3_8.min.css", 1307, 3414, media, 122, 0);
330+
}
331+
332+
/**
333+
* @throws Exception if any error occurs
334+
*/
335+
@Test
336+
public void bootstrapUtilities_5_3_8() throws Exception {
337+
final String media = "(min-width: 1200px);"
338+
+ "(min-width: 1400px);"
339+
+ "(min-width: 576px);"
340+
+ "(min-width: 768px);"
341+
+ "(min-width: 992px);"
342+
+ "(prefers-reduced-motion: reduce);"
343+
+ "print;";
344+
realWorld("realworld/bootstrap-utilities_5_3_8.css", 529, 830, media, 100, 0);
345+
realWorld("realworld/bootstrap-utilities_5_3_8.min.css", 529, 830, media, 100, 0);
346+
}
347+
348+
/**
349+
* @throws Exception if any error occurs
350+
*/
351+
@Test
352+
public void bootstrapGrid_5_3_8() throws Exception {
353+
final String media = "(min-width: 1200px);"
354+
+ "(min-width: 1400px);"
355+
+ "(min-width: 576px);"
356+
+ "(min-width: 768px);"
357+
+ "(min-width: 992px);"
358+
+ "print;";
359+
realWorld("realworld/bootstrap-grid_5_3_8.css", 209, 262, media, 0, 0);
360+
realWorld("realworld/bootstrap-grid_5_3_8.min.css", 209, 262, media, 0, 0);
361+
}
362+
306363
/**
307364
* @throws Exception if any error occurs
308365
*/

0 commit comments

Comments
 (0)