@Override @Test public void noBody() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void noBody() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void notADocument() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void notADocument() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Test public void scriptPushedToBody() throws Exception { String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void noBody() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-headnobody-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Test public void scriptPushedToBody() throws Exception { String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void notADocument() throws Exception { // Note that no doctype is injected for fragments String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fragment-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Test public void scriptPushedToBody() throws Exception { String content = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-leadingscript-expected.html"); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void docNoDoctype() throws Exception { // Note that no doctype is properly created when none specified String content = loadFile("org/apache/shindig/gadgets/parse/test-fulldocnodoctype.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fulldocnodoctype-expected.html"); assertNull(parser.parseDom(content).getDoctype()); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void docNoDoctype() throws Exception { // Note that no doctype is properly created when none specified String content = loadFile("org/apache/shindig/gadgets/parse/test-fulldocnodoctype.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fulldocnodoctype-expected.html"); assertNull(parser.parseDom(content).getDoctype()); parseAndCompareBalanced(content, expected, parser); }
@Override @Test public void docNoDoctype() throws Exception { // Note that no doctype is properly created when none specified String content = loadFile("org/apache/shindig/gadgets/parse/test-fulldocnodoctype.html"); String expected = loadFile("org/apache/shindig/gadgets/parse/nekohtml/test-fulldocnodoctype-expected.html"); assertNull(parser.parseDom(content).getDoctype()); parseAndCompareBalanced(content, expected, parser); }