| Index: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-disabled-insecure-context.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-disabled-insecure-context.html b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-disabled-insecure-context.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b98b2148c6238b80ab31cc57343b4c28cf61eb76
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-disabled-insecure-context.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<title>Test Sample API when trial is disabled (no token), in insecure context</title>
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script src="../resources/get-host-info.js"></script>
|
| +<script src="resources/origintrials.js"></script>
|
| +<script>
|
| +
|
| +if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) {
|
| + window.location = get_host_info().UNAUTHENTICATED_ORIGIN +
|
| + window.location.pathname;
|
| +} else {
|
| + // The trial is not enabled, as no token is provided.
|
| + expect_failure_bindings_insecure_context();
|
| +}
|
| +</script>
|
|
|