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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/webexposed/rootscroller-origin-trial-interfaces-script-added.html

Issue 2707133008: Revert of Make document.rootScroller into an origin trial (Closed)
Patch Set: Removed webexposed tests Created 3 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>RootScroller - origin trial is enabled by script-added meta tag</title>
4 <script src="../../resources/testharness.js"></script>
5 <script src="../../resources/testharnessreport.js"></script>
6 <script src="../../resources/origin-trials-helper.js"></script>
7 <script>
8 // Generate token with the command:
9 // generate_token.py http://127.0.0.1:8000 RootScroller --expire-timestamp=2000 000000
10 var token = "AuKypT9HyT7fv0cU54WMd1bUmdBYTFED3hKRFWfvxauV8saEM1CoOFLXDd3ApWwJCvi mlrGVcqj+0Z9rJL8uFgIAAABUeyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIiwgImZlYXR 1cmUiOiAiUm9vdFNjcm9sbGVyIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9";
11
12 let properties_to_check = {'Document': ['rootScroller']};
13
14 test(t => {
15 OriginTrialsHelper.check_properties_missing(this, properties_to_check);
16 }, "RootScroller related properties on interfaces before adding trial token via script.");
17
18 OriginTrialsHelper.add_token(token);
19
20 test(t => {
21 OriginTrialsHelper.check_properties(this, properties_to_check);
22 }, "RootScroller related properties on interfaces after adding trial token via s cript.");
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698