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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-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-using-registration.https.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-using-registration.html b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-using-registration.https.html
similarity index 90%
copy from third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-using-registration.html
copy to third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-using-registration.https.html
index 5056ee7483f98a26475f414ec0349af9772d6da6..5f84f0b8eda21624c8493c6a65bea6af639d4153 100644
--- a/third_party/WebKit/LayoutTests/http/tests/serviceworker/skip-waiting-using-registration.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/service-workers/service-worker/skip-waiting-using-registration.https.html
@@ -1,8 +1,9 @@
<!DOCTYPE html>
<title>Service Worker: Skip waiting 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) {
@@ -44,12 +45,12 @@ promise_test(function(t) {
.then(function(registration) {
sw_registration = registration;
add_completion_callback(function() {
+ frame.remove();
registration.unregister();
});
return saw_controllerchanged;
})
.then(function() {
- frame.remove();
assert_not_equals(sw_registration.active, null,
'Registration active worker should not be null');
fetch_tests_from_worker(sw_registration.active);

Powered by Google App Engine
This is Rietveld 408576698