OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
3 <!-- TODO(iclelland): Generate this sample token during the build. The token | 3 <!-- TODO(iclelland): Generate this sample token during the build. The token |
4 below will expire in 2033, but it would be better to always have a token which | 4 below will expire in 2033, but it would be better to always have a token which |
5 is guaranteed to be valid when the tests are run. --> | 5 is guaranteed to be valid when the tests are run. --> |
6 <meta http-equiv="origin-trial" content="1|ak4CUgJ69tforMyzN7lgxhWaaIny/lGqtLjIq
JjMXBA2b8lqul1KhyyLmKZ38+tJnZDLXZmQUn5ZjMFE/SmNDw==|https://invalid.example.com|
Frobulate|2000000000" /> | 6 <!-- Generate this token with the command: |
| 7 generate_token.py invalid.example.com Frobulate -expire-timestamp=2000000000 |
| 8 --> |
| 9 <meta http-equiv="origin-trial" content="AX95E3M+FJmuQIXmsnZXl0iGD04qLDPi+Ck0jpG
7DQN9fRXergbCp6IggYk0n8cGjOWnPhg7mhMdT8hQmolnewEAAABbeyJvcmlnaW4iOiAiaHR0cHM6Ly9
pbnZhbGlkLmV4YW1wbGUuY29tOjQ0MyIsICJmZWF0dXJlIjogIkZyb2J1bGF0ZSIsICJleHBpcnkiOiA
yMDAwMDAwMDAwfQ==" /> |
7 <title>Test Sample API when token is present for a different origin</title> | 10 <title>Test Sample API when token is present for a different origin</title> |
8 <script src="../resources/testharness.js"></script> | 11 <script src="../resources/testharness.js"></script> |
9 <script src="../resources/testharness-helpers.js"></script> | 12 <script src="../resources/testharness-helpers.js"></script> |
10 <script src="../resources/testharnessreport.js"></script> | 13 <script src="../resources/testharnessreport.js"></script> |
11 <script src="resources/origin_trials.js"></script> | 14 <script src="resources/origin_trials.js"></script> |
12 <script> | 15 <script> |
13 | 16 |
14 // The trial is not enabled, as the provided token is signed for another origin, | 17 // The trial is not enabled, as the provided token is signed for another origin, |
15 // although it is otherwise valid. | 18 // although it is otherwise valid. |
16 expect_failure(); | 19 expect_failure(); |
17 | 20 |
18 </script> | 21 </script> |
OLD | NEW |