Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resource-timing.https.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resource-timing.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resource-timing.https.html |
similarity index 81% |
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/resource-timing.html |
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resource-timing.https.html |
index 29600aa1b1732a0a7af1c74f978b6d73c9534173..f33c41d715ecaf2dfad8f76bf750efcfca06ebb9 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/resource-timing.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/resource-timing.https.html |
@@ -1,8 +1,8 @@ |
<!DOCTYPE html> |
-<script src="../resources/testharness.js"></script> |
-<script src="../resources/testharnessreport.js"></script> |
-<script src="../resources/get-host-info.js"></script> |
-<script src="resources/test-helpers.js"></script> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="resources/get-host-info.sub.js"></script> |
+<script src="resources/test-helpers.sub.js"></script> |
<script> |
function resourceUrl(path) { |
return get_host_info()['HTTP_ORIGIN'] + base_path() + path; |
@@ -13,7 +13,7 @@ function verify(performance, resource, description) { |
assert_greater_than(entry.workerStart, 0, description); |
assert_greater_than_equal(entry.workerStart, entry.startTime, description); |
assert_less_than_equal(entry.workerStart, entry.fetchStart, description); |
- if (resource.indexOf('redirect.php') != -1) { |
+ if (resource.indexOf('redirect.py') != -1) { |
assert_less_than_equal(entry.workerStart, entry.redirectStart, |
description); |
} else { |
@@ -38,7 +38,7 @@ async_test(function(t) { |
var performance = frame.contentWindow.performance; |
verify(performance, 'resources/dummy.js', 'Generated response'); |
verify(performance, 'resources/empty.js', 'Network fallback'); |
- verify(performance, 'resources/redirect.php?Redirect=empty.js', |
+ verify(performance, 'resources/redirect.py?Redirect=empty.js', |
'Redirect'); |
frame.remove(); |
return registration.unregister(); |
@@ -50,7 +50,7 @@ async_test(function(t) { |
}, 'Controlled resource loads'); |
test(function() { |
- var url = resourceUrl('resources/test-helpers.js'); |
+ var url = resourceUrl('resources/test-helpers.sub.js'); |
var entry = window.performance.getEntriesByName(url)[0]; |
assert_equals(entry.workerStart, 0, 'Non-controlled'); |
}, 'Non-controlled resource loads'); |