fix legacy test expected port

This commit is contained in:
Pierre Tachoire
2025-12-22 18:47:29 +01:00
parent a597d31505
commit 44ffcaeed8
5 changed files with 10 additions and 10 deletions

View File

@@ -218,7 +218,7 @@ let first_child = content.firstChild.nextSibling; // nextSibling because of line
</script>
<script id=baseURI>
testing.expectEqual('http://localhost:9582/src/tests/dom/node.html', link.baseURI);
testing.expectEqual('http://localhost:9589/dom/node.html', link.baseURI);
</script>
<script id=removeChild>

View File

@@ -11,10 +11,10 @@
testing.expectEqual('auto', history.scrollRestoration);
testing.expectEqual(null, history.state)
history.pushState({ testInProgress: true }, null, 'http://127.0.0.1:9582/src/tests/html/history/history_after_nav.html');
history.pushState({ testInProgress: true }, null, 'http://127.0.0.1:9589/html/history/history_after_nav.html');
testing.expectEqual({ testInProgress: true }, history.state);
history.pushState({ testInProgress: false }, null, 'http://127.0.0.1:9582/xhr/json');
history.pushState({ testInProgress: false }, null, 'http://127.0.0.1:9589/xhr/json');
history.replaceState({ "new": "field", testComplete: true }, null);
let state = { "new": "field", testComplete: true };

View File

@@ -5,7 +5,7 @@
history.pushState(
{"new": "field", testComplete: true },
null,
'http://127.0.0.1:9582/src/tests/html/history/history_after_nav.html'
'http://127.0.0.1:9589/html/history/history_after_nav.html'
);
let popstateEventFired = false;
@@ -16,7 +16,7 @@
popstateEventFired = true;
popstateEventState = event.state;
};
testing.eventually(() => {
testing.expectEqual(true, popstateEventFired);
testing.expectEqual(true, popstateEventState.testComplete);

View File

@@ -54,11 +54,11 @@
testing.expectEqual('', input.src);
input.src = 'foo'
testing.expectEqual('http://localhost:9582/src/tests/html/foo', input.src);
testing.expectEqual('http://localhost:9589/html/foo', input.src);
input.src = '-3'
testing.expectEqual('http://localhost:9582/src/tests/html/-3', input.src);
testing.expectEqual('http://localhost:9589/html/-3', input.src);
input.src = ''
testing.expectEqual('http://localhost:9582/src/tests/html/input.html', input.src);
testing.expectEqual('http://localhost:9589/html/input.html', input.src);
testing.expectEqual('text', input.type);
input.type = 'checkbox';

View File

@@ -4,7 +4,7 @@
<script id=navigation>
testing.expectEqual('object', typeof navigation);
testing.expectEqual('object', typeof navigation.currentEntry);
testing.expectEqual('string', typeof navigation.currentEntry.id);
testing.expectEqual('string', typeof navigation.currentEntry.key);
testing.expectEqual('string', typeof navigation.currentEntry.url);
@@ -12,7 +12,7 @@
const currentIndex = navigation.currentEntry.index;
navigation.navigate(
'http://localhost:9582/src/tests/html/navigation/navigation2.html',
'http://localhost:9589/html/navigation/navigation2.html',
{ state: { currentIndex: currentIndex, navTestInProgress: true } }
);
</script>