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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigation-redirect-to-http.https.html

Issue 2872363002: Upstream service worker navigation tests to WPT (Closed)
Patch Set: 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 <title>Service Worker: Service Worker can receive HTTP opaqueredirect response.< /title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="/common/get-host-info.sub.js"></script>
6 <script src="resources/test-helpers.sub.js"></script>
7 <meta charset="utf-8">
8 <body></body>
9 <script>
10 async_test(function(t) {
11 var frame_src = get_host_info()['HTTPS_ORIGIN'] + base_path() +
12 'resources/navigation-redirect-to-http-iframe.html';
13 function on_message(e) {
14 assert_equals(e.data.results, 'OK');
15 t.done();
16 }
17
18 window.addEventListener('message', t.step_func(on_message), false);
19
20 with_iframe(frame_src)
21 .then(function(frame) {
22 t.add_cleanup(function() { frame.remove(); });
23 });
24 }, 'Verify Service Worker can receive HTTP opaqueredirect response.');
25 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698