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

Unified Diff: LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js

Issue 984523003: bindings: Moves most of DOM attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test results. Created 5 years, 9 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/instrumentation-service-worker.js
diff --git a/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js b/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
index 3973461c4147556f10ca6bbfb3d86c2b92986ff9..d77c1408235f5b5e45bd96b2d87510e98ea2fdff 100644
--- a/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
+++ b/LayoutTests/http/tests/notifications/resources/instrumentation-service-worker.js
@@ -1,3 +1,5 @@
+importScripts('/resources/testharness-helpers.js');
+
// Allows a document to exercise the Notifications API within a service worker by sending commands.
var messagePort = null;
@@ -38,7 +40,7 @@ addEventListener('message', function(workerEvent) {
addEventListener('notificationclick', function(event) {
// Copies the serializable attributes of the Notification instance on |event|.
- var notificationCopy = JSON.parse(JSON.stringify(event.notification));
+ var notificationCopy = JSON.parse(stringifyDOMObject(event.notification));
// Notifications containing "ACTION:CLOSE" in their message will be closed
// immediately by the Service Worker.

Powered by Google App Engine
This is Rietveld 408576698