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

Unified Diff: LayoutTests/fast/notifications/resources/notification-click.js

Issue 624033003: [WIP] Move Web Notifications to a WebFrame-less code path (Blink). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: current state Created 6 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: LayoutTests/fast/notifications/resources/notification-click.js
diff --git a/LayoutTests/fast/notifications/resources/notification-click.js b/LayoutTests/fast/notifications/resources/notification-click.js
index f52f0a6f2f9445e7a8fd0c26ef25d805e285a738..0133b2cff98646925c223eb892f39ee4c9375c24 100644
--- a/LayoutTests/fast/notifications/resources/notification-click.js
+++ b/LayoutTests/fast/notifications/resources/notification-click.js
@@ -1,17 +1,19 @@
+if (self.importScripts) {
+ importScripts('../../../resources/js-test.js');
+ importScripts('notification-worker.js');
+}
+
function runTest()
{
var notification = new Notification("Notification");
notification.addEventListener("show", function() {
testPassed("notification.onshow() has been called.");
- if (window.testRunner)
+ if (testRunner)
testRunner.simulateWebNotificationClick("Notification");
});
notification.addEventListener("click", function() {
testPassed("notification.onclick() has been called.");
- notification.close();
-
- if (window.testRunner)
- testRunner.notifyDone();
+ finishJSTest();
});
}

Powered by Google App Engine
This is Rietveld 408576698