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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/fetch-request-css-base-url.html

Issue 2349283002: Remove explict frame removal from fetch-request-css-base-url.html test (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Service Worker: CSS's base URL must be the request URL even when fetched from other URL</title> 2 <title>Service Worker: CSS's base URL must be the request URL even when fetched from other URL</title>
3 <script src="../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <script src="../resources/get-host-info.js?pipe=sub"></script> 5 <script src="../resources/get-host-info.js?pipe=sub"></script>
6 <script src="resources/test-helpers.js"></script> 6 <script src="resources/test-helpers.js"></script>
7 <script> 7 <script>
8 async_test(function(t) { 8 async_test(function(t) {
9 var SCOPE = 'resources/fetch-request-css-base-url-iframe.html'; 9 var SCOPE = 'resources/fetch-request-css-base-url-iframe.html';
10 var SCRIPT = 'resources/fetch-request-css-base-url-worker.js'; 10 var SCRIPT = 'resources/fetch-request-css-base-url-worker.js';
(...skipping 18 matching lines...) Expand all
29 assert_equals( 29 assert_equals(
30 result.url, 30 result.url,
31 base + 'resources/dummy.png', 31 base + 'resources/dummy.png',
32 'The base URL while loading the images referred from CSS ' + 32 'The base URL while loading the images referred from CSS ' +
33 'must be the request URL of CSS.'); 33 'must be the request URL of CSS.');
34 assert_equals( 34 assert_equals(
35 result.referrer, 35 result.referrer,
36 base + 'resources/fetch-request-css-base-url-style.css', 36 base + 'resources/fetch-request-css-base-url-style.css',
37 'While loading the image defined in CSS the referrer must ' + 37 'While loading the image defined in CSS the referrer must ' +
38 'be the request URL of CSS.'); 38 'be the request URL of CSS.');
39 frame.remove();
40 service_worker_unregister_and_done(t, SCOPE); 39 service_worker_unregister_and_done(t, SCOPE);
41 }); 40 });
42 worker.postMessage( 41 worker.postMessage(
43 {port: channel.port2}, [channel.port2]); 42 {port: channel.port2}, [channel.port2]);
44 }); 43 });
45 }) 44 })
46 .then(function() { return with_iframe(SCOPE); }) 45 .then(function() { return with_iframe(SCOPE); })
47 .then(function(f) { 46 .then(function(f) {
48 frame = f; 47 frame = f;
49 }) 48 })
50 .catch(unreached_rejection(t)); 49 .catch(unreached_rejection(t));
51 }, 'CSS\'s base URL must be the request URL even when fetched from other URL.' ); 50 }, 'CSS\'s base URL must be the request URL even when fetched from other URL.' );
52 </script> 51 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698