Index: LayoutTests/http/tests/serviceworker/getregistration.html |
diff --git a/LayoutTests/http/tests/serviceworker/getregistration.html b/LayoutTests/http/tests/serviceworker/getregistration.html |
index da50bb3ff5cf708e2016f57e8ae8974542e41dad..7dfc5c026c07289da4694fa4d8e83359af865482 100644 |
--- a/LayoutTests/http/tests/serviceworker/getregistration.html |
+++ b/LayoutTests/http/tests/serviceworker/getregistration.html |
@@ -24,8 +24,10 @@ async_test(function(t) { |
return navigator.serviceWorker.getRegistration(scope); |
}) |
.then(function(value) { |
- assert_equals(value, registration, |
- 'getRegistration should resolve with registration'); |
+ assert_registration_equals(value, registration); |
+ assert_not_equals( |
+ value, registration, |
+ 'getRegistration should resolve to the new registration object'); |
falken
2015/08/25 03:28:28
the -> a
nhiroki
2015/08/25 06:28:07
Done.
|
service_worker_unregister_and_done(t, scope); |
}) |
.catch(unreached_rejection(t)); |
@@ -42,8 +44,7 @@ async_test(function(t) { |
return navigator.serviceWorker.getRegistration(documentURL); |
}) |
.then(function(value) { |
- assert_equals(value, registration, |
- 'getRegistration should resolve with registration'); |
+ assert_registration_equals(value, registration); |
service_worker_unregister_and_done(t, scope); |
}) |
.catch(unreached_rejection(t)); |