Skip to content

Commit f59d629

Browse files
committed
build the correct error
1 parent 743a8e6 commit f59d629

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/test/java/org/htmlunit/javascript/host/css/CSSStyleSheetTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

src/test/java/org/htmlunit/javascript/host/xml/XSLTProcessorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)