Skip to content

Commit

Permalink
more detailed test
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Feb 18, 2025
1 parent e79ef32 commit 7736a94
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,14 @@ public void open_FF() throws Exception {
* @throws Exception if the test fails
*/
@Test
@Alerts({"Hello", "HelloHello"})
@Alerts({" after-write Hello", " after-write Hello after-write Hello"})
public void writeExternalScriptAfterClick() throws Exception {
shutDownAll();

final String html = "<html><head>\n"
+ "<script>\n"
+ "document.write('<scr'+'ipt src=\"script.js\"></scr'+'ipt>');\n"
+ "window.name += ' after-write ';\n"
+ "</script>\n"
+ "<script>\n"
+ "window.name += window.foo;\n"
Expand Down

0 comments on commit 7736a94

Please sign in to comment.