Skip to content

Commit 8c352e4

Browse files
committed
Allow "about:blank" in test eclipse-platform#1991
Fixes eclipse-platform#1991
1 parent 0f21a6e commit 8c352e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/org.eclipse.swt.tests/JUnit Tests/org/eclipse/swt/tests/junit/Test_org_eclipse_swt_browser_Browser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ public void changing(LocationEvent event) {
694694
}
695695
@Override
696696
public void changed(LocationEvent event) {
697-
if (!event.location.isEmpty()) { // See footnote 1
697+
if (!event.location.isEmpty() && !event.location.equals("about:blank")) { // See footnote 1
698698
unexpectedLocationChanged.set(true);
699699
unexpectedLocationChangedDetails.set(event.location);
700700
}
@@ -703,7 +703,7 @@ public void changed(LocationEvent event) {
703703

704704
browser.addProgressListener(completedAdapter(event -> {
705705
String location = browser.getUrl();
706-
if (!location.isEmpty()) { // See footnote 1
706+
if (!location.isEmpty() && !location.equals("about:blank")) { // See footnote 1
707707
unexpectedProgressCompleted.set(true);
708708
unexpectedProgressCompletedDetails.set(location);
709709

0 commit comments

Comments
 (0)