Skip to content

Commit 3dbeab4

Browse files
committed
Fix setTextContainingScript Test #1466
This commit fixes the test org.eclipse.swt.tests.junit.Test_org_eclipse_swt_browser_Browser.test_setTextContainingScript_applicationLayerProgressListenerMustSeeUpToDateDom() as Edge seems to misbehave sporadically when an invalid script source is added using Edge:setText. Hence, with this commit we replace the script tag with a valid statement in the test and enable it. Contributes to #1466
1 parent 84f02de commit 3dbeab4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,6 @@ public void test_setText() {
11411141
*/
11421142
@Test
11431143
public void test_setTextContainingScript_applicationLayerProgressListenerMustSeeUpToDateDom() {
1144-
assumeFalse("Toggling on Edge since I20250216-1800, see https://github.com/eclipse-platform/eclipse.platform.swt/issues/1843", isEdge);
11451144
AtomicBoolean completed = new AtomicBoolean();
11461145
browser.addProgressListener(ProgressListener.completedAdapter(event -> {
11471146
String script = """
@@ -1162,7 +1161,7 @@ public void test_setTextContainingScript_applicationLayerProgressListenerMustSee
11621161
browser.setText("""
11631162
<html>
11641163
<head>
1165-
<script src=\"file:///does/not/really/needs/to/exist.js\"></script>
1164+
<script>console.log("test");</script>
11661165
</head>
11671166
<body>
11681167
<h1>Hello, World!</h1>

0 commit comments

Comments
 (0)