mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
e030193e5f
We currently have a handful of iframe tests whose sources are in the "input" directory. This means they get run as their own tests, when they are really just helper files. We've had to add empty test expectation files for these "tests", and invoke a dummy test() method just to keep the test runner happy. Instead, move them to their own directory so the test runner does not see them at all.
15 lines
414 B
HTML
15 lines
414 B
HTML
<script>
|
|
try {
|
|
const initialHistoryLength = window.history.length;
|
|
|
|
history.pushState({}, "hello", "history-pushstate-iframe.html#hello");
|
|
|
|
parent.postMessage(
|
|
"history object length has changed by " +
|
|
(window.history.length - initialHistoryLength),
|
|
"*"
|
|
);
|
|
} catch (e) {
|
|
parent.postMessage("ERROR:" + e, "*");
|
|
}
|
|
</script>
|