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(); |
}); |
}); |
} |