mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 14:33:47 +00:00
add .skip.html to skip files in legacy tests
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user