File tree Expand file tree Collapse file tree
src/test/java/org/htmlunit/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 */
1515package org .htmlunit .libraries ;
1616
17+ import org .htmlunit .WebClient ;
1718import org .htmlunit .junit .BrowserRunner ;
1819import org .htmlunit .junit .BrowserRunner .Alerts ;
1920import org .htmlunit .junit .BrowserRunner .HtmlUnitNYI ;
@@ -38,4 +39,13 @@ public class HtmxTest1x7x0 extends HtmxTest {
3839 public void htmx () throws Exception {
3940 htmx ("htmx-1.7.0" );
4041 }
42+
43+ @ Override
44+ protected void setupWebClient (final WebClient webClient ) {
45+ super .setupWebClient (webClient );
46+
47+ if (webClient .getBrowserVersion ().isIE ()) {
48+ webClient .getOptions ().setThrowExceptionOnScriptError (false );
49+ }
50+ }
4151}
Original file line number Diff line number Diff line change 1414 */
1515package org .htmlunit .libraries ;
1616
17+ import org .htmlunit .WebClient ;
1718import org .htmlunit .junit .BrowserRunner ;
1819import org .htmlunit .junit .BrowserRunner .Alerts ;
1920import org .htmlunit .junit .BrowserRunner .HtmlUnitNYI ;
@@ -38,4 +39,13 @@ public class HtmxTest1x8x4 extends HtmxTest {
3839 public void htmx () throws Exception {
3940 htmx ("htmx-1.8.4" );
4041 }
42+
43+ @ Override
44+ protected void setupWebClient (final WebClient webClient ) {
45+ super .setupWebClient (webClient );
46+
47+ if (webClient .getBrowserVersion ().isIE ()) {
48+ webClient .getOptions ().setThrowExceptionOnScriptError (false );
49+ }
50+ }
4151}
Original file line number Diff line number Diff line change 1414 */
1515package org .htmlunit .libraries ;
1616
17+ import org .htmlunit .WebClient ;
1718import org .htmlunit .junit .BrowserRunner ;
1819import org .htmlunit .junit .BrowserRunner .Alerts ;
1920import org .htmlunit .junit .BrowserRunner .HtmlUnitNYI ;
@@ -39,4 +40,13 @@ public class HtmxTest1x9x2 extends HtmxTest {
3940 public void htmx () throws Exception {
4041 htmx ("htmx-1.9.2" );
4142 }
43+
44+ @ Override
45+ protected void setupWebClient (final WebClient webClient ) {
46+ super .setupWebClient (webClient );
47+
48+ if (webClient .getBrowserVersion ().isIE ()) {
49+ webClient .getOptions ().setThrowExceptionOnScriptError (false );
50+ }
51+ }
4252}
You can’t perform that action at this time.
0 commit comments