Index: LayoutTests/http/tests/eventsource/eventsource-retry-precision.html |
diff --git a/LayoutTests/http/tests/eventsource/eventsource-retry-precision.html b/LayoutTests/http/tests/eventsource/eventsource-retry-precision.html |
index 5872cc473ae9f95afd59c0e531aba988391e2df7..6867c405055b7eb1a63405394ddc256b2c9d2689 100644 |
--- a/LayoutTests/http/tests/eventsource/eventsource-retry-precision.html |
+++ b/LayoutTests/http/tests/eventsource/eventsource-retry-precision.html |
@@ -1,37 +1,3 @@ |
-<html> |
-<body> |
-<p>Test EventSource retry time precision. Should print PASS followed by DONE.</p> |
-<script> |
-function log(msg) { |
- document.body.innerHTML += msg + "<br>"; |
-} |
- |
-if (window.testRunner) { |
- testRunner.dumpAsText(); |
- testRunner.waitUntilDone(); |
-} |
- |
-var timeoutId = setTimeout(function () { |
- log("PASS: did not immediately reconnect"); |
- end(); |
-}, 500); |
- |
-var count = 0; |
-var es = new EventSource("resources/precise-retry.asis"); |
-es.onopen = function () { |
- if (count++ != 2) |
- return; |
- clearTimeout(timeoutId); |
- log("FAIL: reconnected too soon"); |
- end(); |
-}; |
- |
-function end() { |
- es.close(); |
- log("DONE"); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
-} |
-</script> |
-</body> |
-</html> |
+<!DOCTYPE HTML> |
+<script src="/js-test-resources/js-test.js"></script> |
+<script src="script-tests/eventsource-retry-precision.js"></script> |