blob: f0d49f5ae22ae256064509a8e8789ddf7a82f758 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<iframe name="subframe" src="resources/state-restore-broken-state-1.html">
</iframe>
<script>
var jsTestIsAsync = true;
var isGoingBack = false;
function didLoadAnotherDocument() {
isGoingBack = true;
history.back();
}
function didSecondLoad() {
description('The value was modified in the first load of state-restore-broken-state-1.html, but it should not be restored because the state-restore-broken-state-2.html breaks the state.');
shouldBe('document.getElementsByTagName("iframe")[0].contentDocument.f.name1.value', '"unmodified"');
finishJSTest();
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>