| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 | |
| 3 if (window.testRunner) { | |
| 4 testRunner.overridePreference("WebKitUsesPageCachePreferenceKey", 1); | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 | |
| 9 function loaded() | |
| 10 { | |
| 11 document.getElementById("testInput").value = "SomeNonDefaultValue"; | |
| 12 setTimeout("location.href = 'resources/go-back.html'", 0); | |
| 13 } | |
| 14 | |
| 15 function pageShown(evt) | |
| 16 { | |
| 17 if (evt.persisted) | |
| 18 setTimeout("finishUp()", 0); | |
| 19 } | |
| 20 | |
| 21 function finishUp() | |
| 22 { | |
| 23 document.getElementById("logger").innerText = document.getElementById("t
estInput").value; | |
| 24 if (window.testRunner) | |
| 25 testRunner.notifyDone(); | |
| 26 } | |
| 27 | |
| 28 </script> | |
| 29 <body onload="loaded()" onpageshow="pageShown(event)"> | |
| 30 This page has a text input element with a default value and autocomplete set to
off. When restored from the page cache its value should *not* be cleared.<br> | |
| 31 <input id="testInput" type="test" autocomplete="off" value="DefaultValue"> | |
| 32 <div id="logger"></div> | |
| 33 </body> | |
| OLD | NEW |