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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/resource-timing.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 <script src="/resources/testharness.js"></script> 2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script> 3 <script src="/resources/testharnessreport.js"></script>
4 <script src="resources/get-host-info.sub.js"></script> 4 <script src="/common/get-host-info.sub.js"></script>
5 <script src="resources/test-helpers.sub.js"></script> 5 <script src="resources/test-helpers.sub.js"></script>
6 <script> 6 <script>
7 function resourceUrl(path) { 7 function resourceUrl(path) {
8 return get_host_info()['HTTP_ORIGIN'] + base_path() + path; 8 return get_host_info()['HTTP_ORIGIN'] + base_path() + path;
9 } 9 }
10 10
11 function verify(performance, resource, description) { 11 function verify(performance, resource, description) {
12 var entry = performance.getEntriesByName(resourceUrl(resource))[0]; 12 var entry = performance.getEntriesByName(resourceUrl(resource))[0];
13 assert_greater_than(entry.workerStart, 0, description); 13 assert_greater_than(entry.workerStart, 0, description);
14 assert_greater_than_equal(entry.workerStart, entry.startTime, description); 14 assert_greater_than_equal(entry.workerStart, entry.startTime, description);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 .catch(unreached_rejection(t)); 49 .catch(unreached_rejection(t));
50 }, 'Controlled resource loads'); 50 }, 'Controlled resource loads');
51 51
52 test(function() { 52 test(function() {
53 var url = resourceUrl('resources/test-helpers.sub.js'); 53 var url = resourceUrl('resources/test-helpers.sub.js');
54 var entry = window.performance.getEntriesByName(url)[0]; 54 var entry = window.performance.getEntriesByName(url)[0];
55 assert_equals(entry.workerStart, 0, 'Non-controlled'); 55 assert_equals(entry.workerStart, 0, 'Non-controlled');
56 }, 'Non-controlled resource loads'); 56 }, 'Non-controlled resource loads');
57 57
58 </script> 58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698