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

Side by Side 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 unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698