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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/fetch-mixed-content-to-inscope.https.html

Issue 2695813009: Import wpt@503f5b5f78ec4e87d144f78609f363f0ed0ea8db (Closed)
Patch Set: Skip some tests Created 3 years, 10 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Service Worker: Mixed content of fetch()</title> 2 <title>Service Worker: Mixed content of fetch()</title>
3 <meta name=timeout content=long> 3 <meta name=timeout content=long>
4 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/get-host-info.sub.js"></script> 6 <script src="/common/get-host-info.sub.js"></script>
7 <script src="resources/test-helpers.sub.js?pipe=sub"></script> 7 <script src="resources/test-helpers.sub.js?pipe=sub"></script>
8 <body></body> 8 <body></body>
9 <script> 9 <script>
10 if (window.testRunner) { 10 if (window.testRunner) {
11 // In Chromium we need to change the setting to disallow displaying insecure 11 // In Chromium we need to change the setting to disallow displaying insecure
12 // contents. 12 // contents.
13 testRunner.overridePreference('WebKitAllowDisplayingInsecureContent', false); 13 testRunner.overridePreference('WebKitAllowDisplayingInsecureContent', false);
14 } 14 }
15 15
16 async_test(function(t) { 16 async_test(function(t) {
17 var host_info = get_host_info(); 17 var host_info = get_host_info();
18 window.addEventListener('message', t.step_func(on_message), false); 18 window.addEventListener('message', t.step_func(on_message), false);
19 with_iframe( 19 with_iframe(
20 host_info['HTTPS_ORIGIN'] + base_path() + 20 host_info['HTTPS_ORIGIN'] + base_path() +
21 'resources/fetch-mixed-content-iframe.html?target=inscope'); 21 'resources/fetch-mixed-content-iframe.html?target=inscope');
22 function on_message(e) { 22 function on_message(e) {
23 assert_equals(e.data.results, 'finish'); 23 assert_equals(e.data.results, 'finish');
24 t.done(); 24 t.done();
25 } 25 }
26 }, 'Verify Mixed content of fetch() in a Service Worker'); 26 }, 'Verify Mixed content of fetch() in a Service Worker');
27 </script> 27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698