OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <iframe name="subframe" src="resources/state-restore-broken-state-1.html"> | 7 <iframe name="subframe" src="resources/state-restore-broken-state-1.html"> |
8 </iframe> | 8 </iframe> |
9 | 9 |
10 <script> | 10 <script> |
11 var jsTestIsAsync = true; | 11 var jsTestIsAsync = true; |
12 var isGoingBack = false; | 12 var isGoingBack = false; |
13 | 13 |
14 function didLoadAnotherDocument() { | 14 function didLoadAnotherDocument() { |
15 isGoingBack = true; | 15 isGoingBack = true; |
16 history.back(); | 16 history.back(); |
17 } | 17 } |
18 | 18 |
19 function didSecondLoad() { | 19 function didSecondLoad() { |
20 description('The value was modified in the first load of state-restore-broke
n-state-1.html, but it should not be restored because the state-restore-broken-s
tate-2.html breaks the state.'); | 20 description('The value was modified in the first load of state-restore-broke
n-state-1.html, but it should not be restored because the state-restore-broken-s
tate-2.html breaks the state.'); |
21 shouldBe('document.getElementsByTagName("iframe")[0].contentDocument.f.name1
.value', '"unmodified"'); | 21 shouldBe('document.getElementsByTagName("iframe")[0].contentDocument.f.name1
.value', '"unmodified"'); |
22 finishJSTest(); | 22 finishJSTest(); |
23 } | 23 } |
24 | 24 |
25 </script> | 25 </script> |
26 <script src="../js/resources/js-test-post.js"></script> | |
27 </body> | 26 </body> |
OLD | NEW |