| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>Test Sample API when trial is disabled (no token), in insecure context</t
itle> |
| 4 <script src="../resources/testharness.js"></script> |
| 5 <script src="../resources/testharnessreport.js"></script> |
| 6 <script src="../resources/get-host-info.js"></script> |
| 7 <script src="resources/origintrials.js"></script> |
| 8 <script> |
| 9 |
| 10 if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { |
| 11 window.location = get_host_info().UNAUTHENTICATED_ORIGIN + |
| 12 window.location.pathname; |
| 13 } else { |
| 14 // The trial is not enabled, as no token is provided. |
| 15 expect_failure_bindings_insecure_context(); |
| 16 } |
| 17 </script> |
| OLD | NEW |