| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>Test that trial is enabled by third-party token, injected by module script</title> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| <script src="resources/origintrials.js"></script> |
| <script src="http://localhost:8000/origin_trials/resources/inject-third-party-token-module.php" type="module"></script> |
| <script> |
| // Run tests on load, to allow for module script to be processed. |
| window.onload = function () { |
| // The trial is enabled, by the third party token added in |
| // inject-third-party-token-module.php, which is an external module script, |
| // served from a different origin. |
| expect_success_third_party(); |
| } |
| </script> |