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

Unified Diff: LayoutTests/http/tests/push_messaging/subscribe_worker_not_activated.html

Issue 841333002: Push API: rename registration to subscription. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use https in the spec link. Created 5 years, 11 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: LayoutTests/http/tests/push_messaging/subscribe_worker_not_activated.html
diff --git a/LayoutTests/http/tests/push_messaging/register_worker_not_activated.html b/LayoutTests/http/tests/push_messaging/subscribe_worker_not_activated.html
similarity index 77%
rename from LayoutTests/http/tests/push_messaging/register_worker_not_activated.html
rename to LayoutTests/http/tests/push_messaging/subscribe_worker_not_activated.html
index 5be317d42539216e26a27f532f58a86c238e340d..45f1390c5296eff94e4c9680f651bf98a10feca0 100644
--- a/LayoutTests/http/tests/push_messaging/register_worker_not_activated.html
+++ b/LayoutTests/http/tests/push_messaging/subscribe_worker_not_activated.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
-<title>register() is rejected when the service worker is not active yet</title>
+<title>subscribe() is rejected when the service worker is not active yet</title>
<link rel="manifest" href="resources/push_manifest.json">
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
@@ -21,17 +21,17 @@ async_test(function(test) {
// If running manually, grant permission when prompted.
if (self.testRunner)
testRunner.setPushMessagingPermission(location.origin, true);
- return swRegistration.pushManager.register();
+ return swRegistration.pushManager.subscribe();
})
.then(function(pushRegistration) {
- assert_unreached('register() must not succeed without an active service worker');
+ assert_unreached('subscribe() must not succeed without an active service worker');
}, function(e) {
assert_equals(e.name, 'AbortError');
- assert_equals(e.message, 'Registration failed - no active Service Worker');
+ assert_equals(e.message, 'Subscription failed - no active Service Worker');
return service_worker_unregister_and_done(test, workerScope);
})
.catch(unreached_rejection(test));
-}, 'register() is rejected when the service worker is not active yet');
+}, 'subscribe() is rejected when the service worker is not active yet');
</script>
</body>
</html>
« no previous file with comments | « LayoutTests/http/tests/push_messaging/subscribe_success.html ('k') | LayoutTests/http/tests/push_messaging/unregister.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698