Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Feb 9, 2024
1 parent a76bd96 commit 2889d74
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/test/java/org/htmlunit/html/HtmlPageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
import static org.junit.Assert.fail;

import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
Expand All @@ -35,7 +34,6 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.SerializationUtils;
import org.htmlunit.CollectingAlertHandler;
Expand Down Expand Up @@ -1041,20 +1039,6 @@ public void asXml() throws Exception {
assertEquals(htmlContent, xml.replaceAll("\\s", ""));
}

/**
* @exception Exception If the test fails
*/
@Test
public void asXml1() throws Exception {
final String htmlContent = FileUtils.readFileToString(new File("D:\\test.resp"), StandardCharsets.UTF_8);

getWebClient().getOptions().setJavaScriptEnabled(false);

final HtmlPage page = loadPage(htmlContent);
String xml = page.asXml();
System.out.println(xml);
}

/**
* Tests that the generated XML is valid as HTML code too.
* @exception Exception If the test fails
Expand Down

0 comments on commit 2889d74

Please sign in to comment.