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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/fetch-mixed-content-iframe-inscope-to-inscope.html

Issue 2859653002: Remove duplicate service worker tests (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 <script src="../../resources/get-host-info.js?pipe=sub"></script>
2 <script src="test-helpers.js"></script>
3 <script>
4 var image_path = base_path() + 'fetch-access-control.php?PNGIMAGE';
5 var host_info = get_host_info();
6 var results = '';
7
8 function test1() {
9 var img = document.createElement('img');
10 document.body.appendChild(img);
11 img.onload = function() {
12 test2();
13 };
14 img.onerror = function() {
15 results += 'FAIL(1)';
16 test2();
17 };
18 img.src = './dummy?url=' +
19 encodeURIComponent(host_info['HTTPS_ORIGIN'] + image_path);
20 }
21
22 function test2() {
23 var img = document.createElement('img');
24 document.body.appendChild(img);
25 img.onload = function() {
26 test3();
27 };
28 img.onerror = function() {
29 results += 'FAIL(2)';
30 test3();
31 };
32 img.src = './dummy?mode=no-cors&url=' +
33 encodeURIComponent(host_info['HTTPS_REMOTE_ORIGIN'] + image_path);
34 }
35
36 function test3() {
37 var img = document.createElement('img');
38 document.body.appendChild(img);
39 img.onload = function() {
40 results += 'FAIL(3)';
41 finish();
42 };
43 img.onerror = function() {
44 finish();
45 };
46 img.src = './dummy?mode=no-cors&url=' +
47 encodeURIComponent(host_info['UNAUTHENTICATED_ORIGIN'] + image_path) ;
48 }
49
50 function finish() {
51 results += 'finish';
52 window.parent.postMessage({results: results}, host_info['HTTPS_ORIGIN']);
53 }
54 </script>
55
56 <body onload='test1();'>
57 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698