Commit 5672e0f2 authored by Scott Haseley's avatar Scott Haseley Committed by Commit Bot

[Scheduling APIs] Integrate postTask with OT framework

This change adds the origin_trial_feature_name entry and adds a test
for the expected interfaces.

Change-Id: Idd79b99fc61e9eee925732745be2bcd8c35afe92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2019330Reviewed-by: default avatarNate Chapin <japhet@chromium.org>
Commit-Queue: Scott Haseley <shaseley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735631}
parent 5d91970c
...@@ -1832,6 +1832,7 @@ ...@@ -1832,6 +1832,7 @@
}, },
{ {
name: "WebScheduler", name: "WebScheduler",
origin_trial_feature_name: "WebScheduler",
status: "experimental", status: "experimental",
}, },
// WebShare is enabled by default on Android. // WebShare is enabled by default on Android.
......
<!DOCTYPE html>
<meta charset="utf-8">
<!-- Generate token with the command:
generate_token.py http://127.0.0.1:8000 WebScheduler --expire-timestamp=2000000000
-- -->
<meta http-equiv="origin-trial" content="AgI/hQqppiQTeU0i+L9ErL3h/z99WZG86H+iZxKVwKx9W1nIt4SCPJU3mDTajezisQWHRaDMR2OgV4FvBFwx4AwAAABUeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR1cmUiOiAiV2ViU2NoZWR1bGVyIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9" />
<title>WebScheduler API - interfaces and properties 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>
test(t => {
OriginTrialsHelper.check_properties_exist(this,
{'Scheduler': ['postTask'],
'TaskController': ['setPriority'],
'TaskSignal': ['priority']
});
}, 'WebScheduler API interfaces and properties in Origin-Trial enabled document.');
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment