4 <script src=
"../../../resources/js-test.js"></script>
7 <iframe id=
"iframe"></iframe>
9 description('Checks input value is preserved after backward and forward');
10 if (!window
.eventSender
|| !window
.internals
)
11 debug('Please run within DRT/WTR');
12 window
.jsTestIsAsync
= true;
17 function failed(message
) {
18 testFailed(message
+ ' in ' + state
);
22 function finishTest() {
27 function runTestCases() {
28 for (var index
= 0; index
< testCases
.length
; ++index
) {
29 var testCase
= testCases
[index
];
30 debug(testCase
['description'] + ':');
31 shouldBeEqualToString('"' + testCase
['actual'] + '"', testCase
['expected']);
36 window
.onload = function() {
37 document
.getElementById('iframe').src
= 'resources/preserve-value-after-history-back-frame.html?page1';