Skip to content

Commit 4f0b226

Browse files
committed
more tests
1 parent 036798a commit 4f0b226

File tree

4 files changed

+598
-21
lines changed

4 files changed

+598
-21
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public void bootstrap_3_3_7() throws Exception {
227227
*/
228228
@Test
229229
public void bootstrap_3_4_1() throws Exception {
230-
final String media = "(-webkit-transform-3d);"
230+
String media = "(-webkit-transform-3d);"
231231
+ "(max-device-width: 480px) and (orientation: landscape);"
232232
+ "(max-width: 767px);"
233233
+ "(min-width: 1200px);"
@@ -240,6 +240,10 @@ public void bootstrap_3_4_1() throws Exception {
240240
+ "screen and (min-width: 768px);";
241241
realWorld("realworld/bootstrap_3_4_1.css", 1188, 2320, media, 0, 0);
242242
realWorld("realworld/bootstrap_3_4_1.min.css", 1188, 2319, media, 1, 0);
243+
244+
media = "(max-width: 767px);";
245+
realWorld("realworld/bootstrap-theme_3_4_1.css", 63, 277, media, 0, 0);
246+
realWorld("realworld/bootstrap-theme_3_4_1.min.css", 63, 277, media, 0, 0);
243247
}
244248

245249
/**

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,26 +4127,6 @@ public void nonePropertyValue() throws Exception {
41274127
assertEquals("*.test { display: none; }", rule.getCssText());
41284128
}
41294129

4130-
4131-
/**
4132-
* @throws Exception if the test fails
4133-
*/
4134-
@Test
4135-
public void abc() throws Exception {
4136-
final String css = ".close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}";
4137-
4138-
final CSSStyleSheetImpl sheet = parse(css);
4139-
final CSSRuleListImpl rules = sheet.getCssRules();
4140-
4141-
assertEquals(1, rules.getLength());
4142-
4143-
final AbstractCSSRuleImpl rule = rules.getRules().get(0);
4144-
assertEquals("*.test { display: none; }", rule.toString());
4145-
assertEquals("*.test { display: none; }", rule.getCssText());
4146-
}
4147-
4148-
4149-
41504130
// /**
41514131
// * @throws Exception if any error occurs
41524132
// */

0 commit comments

Comments
 (0)