diff --git a/src/test/java/org/htmlunit/javascript/host/Window2Test.java b/src/test/java/org/htmlunit/javascript/host/Window2Test.java index 77aad8b56ca..fa468c103b6 100644 --- a/src/test/java/org/htmlunit/javascript/host/Window2Test.java +++ b/src/test/java/org/htmlunit/javascript/host/Window2Test.java @@ -181,6 +181,24 @@ public void atob() throws Exception { loadPageVerifyTitle2(html); } + /** + * @throws Exception if the test fails + */ + @Test + @Alerts({"InvalidCharacterError/DOMException"}) + public void atobMalformedInput() throws Exception { + final String html + = "
\n" + + "\n" + + ""; + loadPageVerifyTitle2(html); + } + /** * @throws Exception if the test fails */