Skip to content

Commit 180b97d

Browse files
committed
FF 144
1 parent 7b780c5 commit 180b97d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/test/java/org/htmlunit/javascript/host/WindowPostMessageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public void postMessageFromIframe() throws Exception {
112112
final String iframe = DOCTYPE_HTML
113113
+ "<html><body><p>inside frame</p></body></html>";
114114

115-
getMockWebConnection().setResponse(URL_SECOND, iframe);
115+
getMockWebConnection().setResponse(URL_THIRD, iframe);
116116
loadPageVerifyTitle2(html);
117117
}
118118

src/test/java/org/htmlunit/javascript/host/dom/DocumentTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2927,21 +2927,23 @@ public void designMode_createsSelectionRange() throws Exception {
29272927
final String html2 = DOCTYPE_HTML
29282928
+ "<html><body onload='test()'>\n"
29292929
+ "<script>\n"
2930+
+ LOG_WINDOW_NAME_FUNCTION
29302931
+ " var selection = document.selection;\n"
29312932
+ " if(!selection) selection = window.getSelection();\n"
29322933
+ " function test() {\n"
2933-
+ " alert(selection.rangeCount);\n"
2934+
+ " log(selection.rangeCount);\n"
29342935
+ " document.designMode = 'on';\n"
2935-
+ " alert(selection.rangeCount);\n"
2936+
+ " log(selection.rangeCount);\n"
29362937
+ " document.designMode = 'off';\n"
2937-
+ " alert(selection.rangeCount);\n"
2938+
+ " log(selection.rangeCount);\n"
29382939
+ " }\n"
29392940
+ "</script>\n"
29402941
+ "</body></html>";
29412942

29422943
getMockWebConnection().setResponse(URL_SECOND, html2);
29432944

2944-
loadPageWithAlerts2(html1);
2945+
loadPage2(html1);
2946+
verifyWindowName2(getWebDriver(), getExpectedAlerts());
29452947
}
29462948

29472949
/**

0 commit comments

Comments
 (0)