add .skip.html to skip files in legacy tests

This commit is contained in:
Muki Kiboigo
2025-12-24 09:03:22 -08:00
parent 872ec33662
commit 248ce4f1a8
7 changed files with 14 additions and 19 deletions

View File

@@ -11,7 +11,7 @@
testing.expectEqual('auto', history.scrollRestoration);
testing.expectEqual(null, history.state)
history.pushState({ testInProgress: true }, null, 'http://127.0.0.1:9589/html/history/history_after_nav.html');
history.pushState({ testInProgress: true }, null, 'http://127.0.0.1:9589/html/history/history_after_nav.skip.html');
testing.expectEqual({ testInProgress: true }, history.state);
history.pushState({ testInProgress: false }, null, 'http://127.0.0.1:9589/xhr/json');

View File

@@ -4,12 +4,7 @@
<script id=history2>
let state = { "new": "field", testComplete: true, testInProgress: true };
history.replaceState(state, "");
history.pushState(
null,
null,
'http://127.0.0.1:9589/html/history/history_after_nav.html'
);
history.pushState(null, null, 'http://127.0.0.1:9589/html/history/history_after_nav.skip.html');
let popstateEventFired = false;
let popstateEventState = null;

View File

@@ -1,10 +0,0 @@
<!DOCTYPE html>
<script src="../../testing.js"></script>
<script id=history-after-nav>
if (history.state) {
testing.expectEqual(true, history.state.testInProgress);
} else {
testing.expectEqual(true, true);
}
</script>

View File

@@ -0,0 +1,6 @@
<!DOCTYPE html>
<script src="../../testing.js"></script>
<script id=history-after-nav>
testing.expectEqual(true, history.state && history.state.testInProgress);
</script>

View File

@@ -12,7 +12,7 @@
const currentIndex = navigation.currentEntry.index;
navigation.navigate(
'http://localhost:9589/html/navigation/navigation2.html',
'http://localhost:9589/html/navigation/navigation_after_nav.skip.html',
{ state: { currentIndex: currentIndex, navTestInProgress: true } }
);
</script>

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<script src="../../testing.js"></script>
<script id=navigation2>
<script id=navigation-after-nav>
const state = navigation.currentEntry.getState();
testing.expectEqual(true, state.navTestInProgress);
testing.expectEqual(state.currentIndex + 1, navigation.currentEntry.index);

View File

@@ -62,6 +62,10 @@ pub fn main() !void {
continue;
}
if (std.mem.endsWith(u8, entry.basename, ".skip.html")) {
continue;
}
// These are crashing, comment this out to skip them.
// if (std.mem.indexOf(u8, entry.basename, "navigation") != null) {