Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / serviceworker / fetch-mixed-content.html
1 <!DOCTYPE html>
2 <title>Service Worker: Mixed content of fetch()</title>
3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script>
5 <script src="resources/test-helpers.js?pipe=sub"></script>
6 <body></body>
7 <script>
8 if (window.testRunner) {
9   // In Chromium we need to change the setting to disallow displaying insecure
10   // contents.
11   testRunner.overridePreference('WebKitAllowDisplayingInsecureContent', false);
12 }
13
14 async_test(function(t) {
15     var host_info = get_host_info();
16     window.addEventListener('message', t.step_func(on_message), false);
17     with_iframe(
18       host_info['HTTPS_ORIGIN'] + base_path() +
19       'resources/fetch-mixed-content-iframe.html');
20     function on_message(e) {
21       assert_equals(e.data.results, 'finish');
22       t.done();
23     }
24   }, 'Verify Mixed content of fetch() in a Service Worker');
25 </script>