| Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-multiple-tokens-header.php
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-multiple-tokens-header.php b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-multiple-tokens-header.php
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4368544efd19c7ceef9c4f0ad9f032f599f5a68b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-multiple-tokens-header.php
|
| @@ -0,0 +1,20 @@
|
| +<?php
|
| +// 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.
|
| +header("Origin-Trial: 1|umr41cAPVTw49gYvZb5zQc+lIy6ixCQkC/QyuDBkDNnAbZQjXe7YM/Pb8d0nHCY7xhRq37ZGP7DhLSCp0aOeDA==|http://127.0.0.1:8000|Grokalyze|2000000000");
|
| +header("Origin-Trial: \"1|tZPW/JJ2Sxm4z7k/Eb1/upMsppozWpTwEuGwhgQko0zWS6ebvjQ+EXPP/ftoMX8/PCoDgOS3xlrXElMgDDvbCg==|http://127.0.0.1:8000|Frobulate|2000000000\", 1|Z+D6g2JZrstb1O6ztVoTi6bWXYGFCdd9v2lu23Doj2RP+q9gHZqhs7RUp1vfUQ0IVt0p5jzVX/OOrwenvktyBA==|http://127.0.0.1:8000|EnableMarqueeTag|2000000000", false);
|
| +?>
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<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>
|
| +<script>
|
| +
|
| +// The trial is enabled by the token above in header.
|
| +expect_success();
|
| +
|
| +</script>
|
|
|