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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php

Issue 2712843005: Use asserts in origin trials layout tests (Closed)
Patch Set: Address more comments Created 3 years, 10 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/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php
new file mode 100644
index 0000000000000000000000000000000000000000..8b1a3fedd0919997048122f15efb3a3b4725a607
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/foreignfetch-origin-trial-interfaces-worker-enabled.php
@@ -0,0 +1,19 @@
+<?php
+// Generate token with the command:
+// generate_token.py http://127.0.0.1:8000 ForeignFetch -expire-timestamp=2000000000
+header("Origin-Trial: AinuK1QNcHGJANXfN0Pzkvpxm8rocd4kcqQqhp7rBN8PEX/1JicCoDXX3fIhk7iwBOCCOQYR0cvZ8XHTLJJfVw0AAABUeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiRm9yZWlnbkZldGNoIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9");
+header('Content-Type: application/javascript');
+?>
+importScripts('../../../resources/testharness.js');
+importScripts('../../../resources/origin-trials-helper.js');
+
+test(t => {
+ OriginTrialsHelper.check_properties(this,
+ {'InstallEvent':['registerForeignFetch'],
+ 'global':['onforeignfetch']});
+}, 'ForeignFetch related properties on interfaces in service worker, with trial enabled.');
+
+test(t => {
+ OriginTrialsHelper.check_interfaces(this,
+ ['ForeignFetchEvent']);
+}, 'ForeignFetch related interfaces in service worker, with trial enabled.');

Powered by Google App Engine
This is Rietveld 408576698