Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / state-restore-broken-state.html
blob27224db628ead69e81af1fb220765b0db6bee3f0
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <iframe name="subframe" src="resources/state-restore-broken-state-1.html">
8 </iframe>
10 <script>
11 var jsTestIsAsync = true;
12 var isGoingBack = false;
13 var hasReloaded = false;
15 function didLoadAnotherDocument() {
16 isGoingBack = true;
17 history.back();
20 function didSecondLoad() {
21 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.');
22 shouldBe('document.getElementsByTagName("iframe")[0].contentDocument.f.name1.value', '"unmodified"');
23 finishJSTest();
26 </script>
27 </body>