OLD | NEW |
1 <?php | 1 <?php |
2 // TODO(iclelland): Generate this sample token during the build. The token | 2 // TODO(iclelland): Generate this sample token during the build. The token |
3 // below will expire in 2033, but it would be better to always have a token whic
h | 3 // below will expire in 2033, but it would be better to always have a token whic
h |
4 // is guaranteed to be valid when the tests are run. | 4 // is guaranteed to be valid when the tests are run. |
5 // Generate this token with the command: | 5 // Generate this token with the command: |
6 // generate_token.py http://127.0.0.1:8000 Frobulate -expire-timestamp=200000000
0 | 6 // generate_token.py http://127.0.0.1:8000 Frobulate -expire-timestamp=200000000
0 |
7 header("Origin-Trial: AlCoOPbezqtrGMzSzbLQC4c+oPqO6yuioemcBPjgcXajF8jtmZr4B8tJRP
AARPbsX6hDeVyXCKHzEJfpBXvZgQEAAABReyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIi
wgImZlYXR1cmUiOiAiRnJvYnVsYXRlIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9"); | 7 header("Origin-Trial: AlCoOPbezqtrGMzSzbLQC4c+oPqO6yuioemcBPjgcXajF8jtmZr4B8tJRP
AARPbsX6hDeVyXCKHzEJfpBXvZgQEAAABReyJvcmlnaW4iOiAiaHR0cDovLzEyNy4wLjAuMTo4MDAwIi
wgImZlYXR1cmUiOiAiRnJvYnVsYXRlIiwgImV4cGlyeSI6IDIwMDAwMDAwMDB9"); |
8 ?> | 8 ?> |
9 <!DOCTYPE html> | 9 <!DOCTYPE html> |
10 <meta charset="utf-8"> | 10 <meta charset="utf-8"> |
11 <title>Test Sample API when trial is enabled</title> | 11 <title>Test Sample API when trial is enabled</title> |
12 <script src="../resources/testharness.js"></script> | 12 <script src="../resources/testharness.js"></script> |
13 <script src="../resources/testharnessreport.js"></script> | 13 <script src="../resources/testharnessreport.js"></script> |
14 <script src="resources/origin_trials.js"></script> | 14 <script src="resources/origintrials.js"></script> |
15 <script> | 15 <script> |
16 | 16 |
17 // The trial is enabled by the token above in header. | 17 // The trial is enabled by the token above in header. |
18 expect_success(); | 18 expect_success(); |
19 | 19 |
20 </script> | 20 </script> |
OLD | NEW |