+ "body,td,a,p,.h{font-family:arial,sans-serif;} .h{font-size: 20px;} .h{color:} .q{text-decoration:none; color:#0000cc;}\n"
+ "//--></style>", "http://www.yle.fi/");
parser.registerScanners();
parseAndAssertNodeCount(5);
assertTrue(node[4] instanceof StyleTag);
StyleTag styleTag = (StyleTag) node[4];
String expectedCode = "<!--\r\n"
+ "body,td,a,p,.h{font-family:arial,sans-serif;} .h{font-size: 20px;} .h{color:} .q{text-decoration:none; color:#0000cc;}\r\n"
+ "//-->";
assertStringEquals("Expected Style Code", expectedCode, styleTag.getStyleCode());
}