| Index: LayoutTests/http/tests/eventsource/eventsource-bad-mime-type.html
|
| diff --git a/LayoutTests/http/tests/eventsource/eventsource-bad-mime-type.html b/LayoutTests/http/tests/eventsource/eventsource-bad-mime-type.html
|
| index 74b767bd78ce6304512fe687e62ceeb63553b7e1..8258b0b177ebf5246fe6cc04e92a395a919278e3 100644
|
| --- a/LayoutTests/http/tests/eventsource/eventsource-bad-mime-type.html
|
| +++ b/LayoutTests/http/tests/eventsource/eventsource-bad-mime-type.html
|
| @@ -1,43 +1,3 @@
|
| -<html>
|
| -<body>
|
| -<p>Test EventSource with an event-stream with incorrect mime-type.</p>
|
| -<div id="result"></div>
|
| -<script>
|
| -function log(msg) {
|
| - document.getElementById("result").innerHTML += msg + "<br>";
|
| -}
|
| -
|
| -if (window.testRunner) {
|
| - testRunner.dumpAsText();
|
| - testRunner.waitUntilDone();
|
| -}
|
| -
|
| -var es = new EventSource("resources/bad-mime-type.asis");
|
| -
|
| -es.onopen = function (evt) {
|
| - log("FAIL: got unexpected open event");
|
| - end();
|
| -};
|
| -
|
| -es.onmessage = function (evt) {
|
| - log("FAIL: got unexpected message event");
|
| - end();
|
| -};
|
| -
|
| -es.onerror = function () {
|
| - if (es.readyState == es.CLOSED)
|
| - log("PASS");
|
| - else
|
| - log("FAIL: invalid state");
|
| - end();
|
| -};
|
| -
|
| -function end() {
|
| - es.close();
|
| - if (window.testRunner)
|
| - testRunner.notifyDone();
|
| -}
|
| -
|
| -</script>
|
| -</body>
|
| -</html>
|
| +<!DOCTYPE HTML>
|
| +<script src="/js-test-resources/js-test.js"></script>
|
| +<script src="script-tests/eventsource-bad-mime-type.js"></script>
|
|
|