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

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

Issue 2891953002: Ship and experiment with the Budget API (Closed)
Patch Set: one more result file Created 3 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/webexposed/resources/budget-api-origin-trial-interfaces-worker-enabled.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/budget-api-origin-trial-interfaces-worker-enabled.php b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/budget-api-origin-trial-interfaces-worker-enabled.php
new file mode 100644
index 0000000000000000000000000000000000000000..5dbc5611241eb29aecf49e9977637a30edf1cc43
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/resources/budget-api-origin-trial-interfaces-worker-enabled.php
@@ -0,0 +1,12 @@
+<?php
+// Generate token with the command:
+// generate_token.py http://127.0.0.1:8000 BudgetQuery --expire-timestamp=2000000000
+header("Origin-Trial: AgFtR2Ps1Z9M/FW14Tgcwbajvq7kvzc/b1SPPSaaucG/P4ba6xC/69I9v8Pqx4wbsJINoqMabs9GE/LxOnPRfQIAAABTeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQnVkZ2V0UXVlcnkiLCAiZXhwaXJ5IjogMjAwMDAwMDAwMH0");
+header('Content-Type: application/javascript');
+?>
+importScripts('../../../resources/testharness.js');
+importScripts('../../../resources/origin-trials-helper.js');
+
+test(t => {
+ OriginTrialsHelper.check_properties(this, {'BudgetService': ['getBudget', 'getCost']});
+}, 'Budget API related properties on interfaces in Origin-Trial enabled Service Worker.');

Powered by Google App Engine
This is Rietveld 408576698