Skip to content

Commit e688f09

Browse files
committed
Added #110 test file
1 parent 8183ff8 commit e688f09

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

ph-css/src/test/java/com/helger/css/reader/CSSReader30SpecialFuncTest.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import java.nio.charset.Charset;
2525
import java.nio.charset.StandardCharsets;
2626

27+
import org.junit.Ignore;
2728
import org.junit.Test;
2829
import org.slf4j.Logger;
2930
import org.slf4j.LoggerFactory;
@@ -395,6 +396,21 @@ public void testIssue101 ()
395396
assertEquals (17, aCSS.getStyleRuleCount ());
396397
}
397398

399+
@Test
400+
@Ignore ("Not working atm")
401+
public void testIssue110 ()
402+
{
403+
final ECSSVersion eVersion = ECSSVersion.CSS30;
404+
final Charset aCharset = StandardCharsets.UTF_8;
405+
final File aFile = new File ("src/test/resources/testfiles/css30/good/issue110.css");
406+
final CascadingStyleSheet aCSS = CSSReader.readFromFile (aFile, aCharset, eVersion);
407+
assertNotNull (aCSS);
408+
assertEquals (1, aCSS.getRuleCount ());
409+
assertEquals (1, aCSS.getStyleRuleCount ());
410+
assertEquals (".tableView tr:has(>.error){position:relative}",
411+
new CSSWriter (new CSSWriterSettings ().setOptimizedOutput (true)).getCSSAsString (aCSS));
412+
}
413+
398414
@Test
399415
public void testIssue112 ()
400416
{
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:is(#new_comment_field, button)
2+
{
3+
position: relative;
4+
}

0 commit comments

Comments
 (0)