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

Unified Diff: LayoutTests/fast/notifications/resources/notification-replace.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-replace.js
diff --git a/LayoutTests/fast/notifications/resources/notification-replace.js b/LayoutTests/fast/notifications/resources/notification-replace.js
index c90aa9ed917d1a290ab10f5b5cddd04660888d71..a5806d71d0ab1681a1795facf6cd4cdf0c5b50da 100644
--- a/LayoutTests/fast/notifications/resources/notification-replace.js
+++ b/LayoutTests/fast/notifications/resources/notification-replace.js
@@ -1,3 +1,8 @@
+if (self.importScripts) {
+ importScripts('../../../resources/js-test.js');
+ importScripts('notification-worker.js');
+}
+
function runTest()
{
var notification = new Notification("Notification", {
@@ -12,8 +17,7 @@ function runTest()
updatedNotification.addEventListener("show", function() {
testPassed("updatedNotification.onshow() has been called.");
- if (window.testRunner)
- testRunner.notifyDone();
+ finishJSTest();
});
});
}

Powered by Google App Engine
This is Rietveld 408576698