File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/test/java/org/htmlunit/javascript/host Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ public void addRuleInvalidRule() throws Exception {
256256 * @throws Exception if an error occurs
257257 */
258258 @ Test
259- @ Alerts ("IndexSizeError /DOMException" )
259+ @ Alerts ("SyntaxError /DOMException" )
260260 public void addInvalidRule () throws Exception {
261261 final String html = "<html><head>\n "
262262 + "<script>\n "
@@ -267,7 +267,7 @@ public void addInvalidRule() throws Exception {
267267 + " var rules = s.cssRules || s.rules;\n "
268268 + " try {\n "
269269 + " if (s.addRule)\n "
270- + " s.addRule('.testStyle1;', '', 1 );\n "
270+ + " s.addRule('.testStyle1;', '', 0 );\n "
271271 + " log('added');\n "
272272 + " } catch(e) { logEx(e); }\n "
273273 + "}</script>\n "
Original file line number Diff line number Diff line change @@ -250,8 +250,10 @@ public void browserDetection() throws Exception {
250250 @ Alerts (DEFAULT = {"preparation done" , "null" },
251251 FF = {"preparation done" , "exception " },
252252 FF_ESR = {"preparation done" , "exception " })
253- @ HtmlUnitNYI (CHROME = {"preparation done" , "exception " },
254- EDGE = {"preparation done" , "exception " })
253+ @ HtmlUnitNYI (CHROME = {"preparation done" , "exception InternalError" },
254+ EDGE = {"preparation done" , "exception InternalError" },
255+ FF = {"preparation done" , "exception InternalError" },
256+ FF_ESR = {"preparation done" , "exception InternalError" })
255257 public void testSecurity () throws Exception {
256258 final String html = "<html><head>\n "
257259 + "<script>\n "
You can’t perform that action at this time.
0 commit comments