Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: LayoutTests/http/tests/eventsource/script-tests/eventsource-url-attribute.js

Issue 347043002: Rework EventSource tests for better Worker test coverage. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move out CORS tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/eventsource/script-tests/eventsource-url-attribute.js
diff --git a/LayoutTests/http/tests/eventsource/eventsource-url-attribute.html b/LayoutTests/http/tests/eventsource/script-tests/eventsource-url-attribute.js
similarity index 65%
copy from LayoutTests/http/tests/eventsource/eventsource-url-attribute.html
copy to LayoutTests/http/tests/eventsource/script-tests/eventsource-url-attribute.js
index 231f86b307581b4fdc99fd0597867d17bfd37281..3df7cbf0f91b2d11ed04395309197d825d412562 100644
--- a/LayoutTests/http/tests/eventsource/eventsource-url-attribute.html
+++ b/LayoutTests/http/tests/eventsource/script-tests/eventsource-url-attribute.js
@@ -1,11 +1,5 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="utf-8">
-<script src="../../js-test-resources/js-test.js"></script>
-</head>
-<body>
-<script>
+if (self.importScripts)
+ importScripts("/js-test-resources/js-test.js");
description("Both .URL and .url should work (for compatibility reasons).");
@@ -15,7 +9,4 @@ var source = new EventSource(url);
shouldBeEqualToString("source.URL", url);
shouldBeEqualToString("source.url", url);
shouldBeTrue("source.URL === source.url");
-
-</script>
-</body>
-</html>
+finishJSTest();

Powered by Google App Engine
This is Rietveld 408576698