@@ -259,11 +259,12 @@ public void application_javascript_type() throws Exception {
259
259
final String html = "<html>\n "
260
260
+ "<body>\n "
261
261
+ " <script type='application/javascript'>\n "
262
- + " alert('Hello');\n "
262
+ + LOG_TITLE_FUNCTION
263
+ + " log('Hello');\n "
263
264
+ " </script>\n "
264
265
+ "</body></html>" ;
265
266
266
- loadPageWithAlerts2 (html );
267
+ loadPageVerifyTitle2 (html );
267
268
}
268
269
269
270
/**
@@ -275,11 +276,12 @@ public void application_x_javascript_type() throws Exception {
275
276
final String html = "<html>\n "
276
277
+ "<body>\n "
277
278
+ " <script type='application/x-javascript'>\n "
278
- + " alert('Hello');\n "
279
+ + LOG_TITLE_FUNCTION
280
+ + " log('Hello');\n "
279
281
+ " </script>\n "
280
282
+ "</body></html>" ;
281
283
282
- loadPageWithAlerts2 (html );
284
+ loadPageVerifyTitle2 (html );
283
285
}
284
286
285
287
/**
@@ -511,15 +513,16 @@ public void readyStateInDOMContentLoaded() throws Exception {
511
513
"<html>\n "
512
514
+ " <head>\n "
513
515
+ " <script>\n "
516
+ + LOG_TITLE_FUNCTION
514
517
+ " document.addEventListener('DOMContentLoaded', function () {\n "
515
- + " alert (document.readyState);\n "
518
+ + " log (document.readyState);\n "
516
519
+ " });\n "
517
520
+ " </script>\n "
518
521
+ " </head>\n "
519
522
+ " <body>test</body>\n "
520
523
+ "</html>" ;
521
524
522
- loadPageWithAlerts2 (html );
525
+ loadPageVerifyTitle2 (html );
523
526
}
524
527
525
528
/**
@@ -590,7 +593,7 @@ public void loadExternalJavaScript_absolute() throws Exception {
590
593
+ " iframesrc += ' var y = squared(5);';\n "
591
594
+ " iframesrc += ' alert(y);';\n "
592
595
+ " iframesrc += ' } catch (e) {';\n "
593
- + " iframesrc += ' alert (\" error\" );';\n "
596
+ + " iframesrc += ' log (\" error\" );';\n "
594
597
+ " iframesrc += ' }';\n "
595
598
+ " iframesrc += '}';\n "
596
599
+ " iframesrc += '</' + 'script>';\n "
0 commit comments