We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb9dc19 commit ce98550Copy full SHA for ce98550
src/test/java/org/htmlunit/javascript/host/Window2Test.java
@@ -181,6 +181,24 @@ public void atob() throws Exception {
181
loadPageVerifyTitle2(html);
182
}
183
184
+ /**
185
+ * @throws Exception if the test fails
186
+ */
187
+ @Test
188
+ @Alerts({"InvalidCharacterError/DOMException"})
189
+ public void atobMalformedInput() throws Exception {
190
+ final String html
191
+ = "<html><head></head><body>\n"
192
+ + "<script>\n"
193
+ + LOG_TITLE_FUNCTION
194
+ + " try {\n"
195
+ + " window.atob('b');\n"
196
+ + " } catch(e) {logEx(e)}\n"
197
+ + "</script>\n"
198
+ + "</body></html>";
199
+ loadPageVerifyTitle2(html);
200
+ }
201
+
202
/**
203
* @throws Exception if the test fails
204
*/
0 commit comments