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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/budget-api-origin-trial-interfaces.html

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/budget-api-origin-trial-interfaces.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/budget-api-origin-trial-interfaces.html b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/budget-api-origin-trial-interfaces.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa57336d1bdd9188c9bc026c6050afb28cdc9a67
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/budget-api-origin-trial-interfaces.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<!-- Generate token with the command:
+generate_token.py http://127.0.0.1:8000 BudgetQuery --expire-timestamp=2000000000
+-->
+<meta http-equiv="origin-trial" content="AgFtR2Ps1Z9M/FW14Tgcwbajvq7kvzc/b1SPPSaaucG/P4ba6xC/69I9v8Pqx4wbsJINoqMabs9GE/LxOnPRfQIAAABTeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiQnVkZ2V0UXVlcnkiLCAiZXhwaXJ5IjogMjAwMDAwMDAwMH0" />
+<title>Budget API - interfaces exposed by origin trial</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../../resources/origin-trials-helper.js"></script>
+<script src="../../serviceworker/resources/test-helpers.js"></script>
+<script>
+test(t => {
+ OriginTrialsHelper.check_properties(this, {'BudgetService': ['getBudget', 'getCost']});
+}, 'Budget API related properties on interfaces in Origin-Trial enabled document.');
+
+service_worker_test(
+ 'resources/budget-api-origin-trial-interfaces-worker-disabled.js',
+ 'Budget API related interfaces in SW - no origin trial.');
+
+service_worker_test(
+ 'resources/budget-api-origin-trial-interfaces-worker-enabled.php',
+ 'Budget API related interfaces in SW - origin trial enabled.');
+</script>

Powered by Google App Engine
This is Rietveld 408576698