Index: LayoutTests/fast/forms/state-restore-hidden.html |
diff --git a/LayoutTests/fast/forms/state-restore-hidden.html b/LayoutTests/fast/forms/state-restore-hidden.html |
index c9ba7f9c72c1ae348b0dd436cce037b9ce94d63f..2e67527b1b35851287dbc7fd3f348cf084df09c0 100644 |
--- a/LayoutTests/fast/forms/state-restore-hidden.html |
+++ b/LayoutTests/fast/forms/state-restore-hidden.html |
@@ -15,6 +15,8 @@ |
<script> |
description("Bug 77391 - Hidden form elements do not save their state prior to form submission"); |
+window.jsTestIsAsync = true; |
+ |
function runTest() { |
var state = document.getElementById("emptyOnFirstVisit"); |
if (!state.value) { |
@@ -30,15 +32,8 @@ function runTest() { |
// Second visit. |
shouldBeEqualToString("document.f.hidden.value", "after"); |
successfullyParsed = true; |
- |
- var script = document.createElement('script'); |
- script.src = "../js/resources/js-test-post.js"; |
- script.type = "text/javascript"; |
- script.onload = function() { |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- }; |
- document.body.appendChild(script); |
+ |
+ finishJSTest(); |
} |
} |
</script> |