diff --git a/src/test/java/org/htmlunit/html/HtmlElementTest.java b/src/test/java/org/htmlunit/html/HtmlElementTest.java index 4159d7e2e7f..0c783da85cd 100644 --- a/src/test/java/org/htmlunit/html/HtmlElementTest.java +++ b/src/test/java/org/htmlunit/html/HtmlElementTest.java @@ -20,6 +20,7 @@ import java.util.List; import org.htmlunit.SimpleWebTestCase; +import org.htmlunit.WebClient; import org.htmlunit.junit.BrowserRunner; import org.htmlunit.junit.BrowserRunner.Alerts; import org.junit.Test; @@ -1185,18 +1186,42 @@ public void asXml() throws Exception { * @throws Exception if the test fails */ @Test - @Alerts("false") - public void isDisplayed() throws Exception { + @Alerts({"true", "false", "false"}) + public void isDisplayedJsDisabled() throws Exception { final String html = "
\n" + "\n" + "\n" + "