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

Unified Diff: LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js

Issue 896043004: Tests for WaitUntilObserver and focus/openining windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus_cleanup
Patch Set: Created 5 years, 10 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/notifications/resources/serviceworker-notification-event.js
diff --git a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js b/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
deleted file mode 100644
index 94ffdf36c06017e7653560149d9fc9a32b338d3b..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js
+++ /dev/null
@@ -1,33 +0,0 @@
-importScripts('../../serviceworker/resources/worker-testharness.js');
-importScripts('/resources/testharness-helpers.js');
-
-test(function() {
- assert_true('NotificationEvent' in self);
-
- var event = new NotificationEvent('NotificationEvent');
- assert_equals(event.type, 'NotificationEvent');
- assert_will_be_idl_attribute(event, 'notification');
- assert_equals(event.cancelable, false);
- assert_equals(event.bubbles, false);
- assert_equals(event.notification, null);
- assert_inherits(event, 'waitUntil');
-
- var notification = new Notification('foo');
- var eventWithInit = new NotificationEvent('NotificationEvent',
- { cancelable: true,
- bubbles: true,
- notification: notification,
- });
- assert_equals(eventWithInit.cancelable, true);
- assert_equals(eventWithInit.bubbles, true);
- assert_equals(eventWithInit.notification, notification);
-
-}, 'NotificationEvent is exposed, and has the expected interface.');
-
-test(function() {
- assert_will_be_idl_attribute(self, 'onnotificationclick',
- 'The notificationclick event exists.');
- assert_will_be_idl_attribute(self, 'onnotificationerror',
- 'The notificationerror event exists.');
-
-}, 'The notificationclick and notificationerror events exist on the global scope.');

Powered by Google App Engine
This is Rietveld 408576698