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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html

Issue 2415873002: Import w3c tests for the service workers (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-without-using-registration.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html
similarity index 84%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-without-using-registration.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html
index c3902aeada40cd3e302ace28792a879ada68e475..2535ffe09fc7cbda605af06aa1485a30aa41df11 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-without-using-registration.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-without-using-registration.https.html
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<title>Service Worker: Skip waiting without using registration</title>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/test-helpers.js"></script>
+<script src="/resources/testharness.js"></script>
+<script src="resources/testharness-helpers.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="resources/test-helpers.sub.js"></script>
<script>
promise_test(function(t) {
@@ -24,6 +25,7 @@ promise_test(function(t) {
.then(function(registration) {
sw_registration = registration;
add_completion_callback(function() {
+ frame.remove();
registration.unregister();
});
return wait_for_state(t, registration.installing, 'activated');
@@ -34,7 +36,6 @@ promise_test(function(t) {
assert_not_equals(sw_registration.active, null,
'Registration active worker should not be null');
fetch_tests_from_worker(sw_registration.active);
- frame.remove();
});
}, 'Test skipWaiting while a client is not being controlled');

Powered by Google App Engine
This is Rietveld 408576698