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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-after-script.html

Issue 1840193006: Move token gathering into parser Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add file lost with git reset Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-after-script.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-enabled.html b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-after-script.html
similarity index 88%
copy from third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-enabled.html
copy to third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-after-script.html
index bcad26b4aab93fea1e268fd573f4ff16620d88b0..52fc3305fe2e427595427411ab57515c567c3559 100644
--- a/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-enabled.html
+++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-after-script.html
@@ -1,17 +1,18 @@
<!DOCTYPE html>
<meta charset="utf-8">
-<!-- TODO(iclelland): Generate this sample token during the build. The token
- below will expire in 2033, but it would be better to always have a token which
- is guaranteed to be valid when the tests are run. -->
-<meta http-equiv="origin-trial" content="1|tZPW/JJ2Sxm4z7k/Eb1/upMsppozWpTwEuGwhgQko0zWS6ebvjQ+EXPP/ftoMX8/PCoDgOS3xlrXElMgDDvbCg==|http://127.0.0.1:8000|Frobulate|2000000000">
<title>Test Sample API when trial is enabled</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharness-helpers.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="resources/origin_trials.js"></script>
+<!-- TODO(iclelland): Generate this sample token during the build. The token
+ below will expire in 2033, but it would be better to always have a token which
+ is guaranteed to be valid when the tests are run. -->
+<meta http-equiv="origin-trial" content="1|tZPW/JJ2Sxm4z7k/Eb1/upMsppozWpTwEuGwhgQko0zWS6ebvjQ+EXPP/ftoMX8/PCoDgOS3xlrXElMgDDvbCg==|http://127.0.0.1:8000|Frobulate|2000000000">
<script>
-// The trial is enabled by the token above in the meta tag.
-expect_success();
+// The trial is disabled, as the token was added after a <script> tag.
+expect_failure();
</script>
+<body>

Powered by Google App Engine
This is Rietveld 408576698