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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html

Issue 1828063002: Add support for origin trials in workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@trial-token-in-header-blink-document
Patch Set: fix test flakyness Created 4 years, 7 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: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html
new file mode 100644
index 0000000000000000000000000000000000000000..46a9e29c8043341f2f7e4028827f0be6a67bbaac
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-workers.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>Test Sample API when trial is enabled in shared and service workers</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../serviceworker/resources/test-helpers.js"></script>
+<script>
+fetch_tests_from_worker(new SharedWorker('resources/sample-api-enabled-worker.php'));
+fetch_tests_from_worker(new SharedWorker('resources/disabled-worker.js'));
+service_worker_test('resources/sample-api-enabled-worker.php');
+service_worker_test('resources/disabled-worker.js');
+</script>

Powered by Google App Engine
This is Rietveld 408576698