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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/streams/resources/test-initializer.js

Issue 2502433002: Import wpt@8dc7bfef80f5df47e14509d1496bdbc5ec24c91c (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years, 1 month 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: third_party/WebKit/LayoutTests/imported/wpt/streams/resources/test-initializer.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/streams/resources/test-initializer.js b/third_party/WebKit/LayoutTests/imported/wpt/streams/resources/test-initializer.js
new file mode 100644
index 0000000000000000000000000000000000000000..d6ed4a7aab541e8e5cfeec4042032892430147b1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/streams/resources/test-initializer.js
@@ -0,0 +1,14 @@
+'use strict';
+
+function worker_test(file) {
+ fetch_tests_from_worker(new Worker(file));
+ if (typeof SharedWorker === 'function') {
+ fetch_tests_from_worker(new SharedWorker(file));
+ } else {
+ test(() => {
+ assert_unreached('SharedWorker is unavailable');
+ }, 'Load ' + file + ' with SharedWorker');
+ }
+ service_worker_test(file);
+}
+

Powered by Google App Engine
This is Rietveld 408576698