Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/origin_trials/sample-api-disabled-insecure-context.html

Issue 2861673007: Add Origin Trial layout tests for IDL bindings (Closed)
Patch Set: Fix compile errors Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698