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

Unified Diff: LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js

Issue 1311853002: Update PushEvent and PushMessageData to match the spec. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/push_messaging/resources/interfaces-worker.js
diff --git a/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js b/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
index 05d153ba5041458b7b51e7caa5dd2c0dd6cc6a1f..66bfa59f4402c50e2c43f177893ee43b724405b3 100644
--- a/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
+++ b/LayoutTests/http/tests/push_messaging/resources/interfaces-worker.js
@@ -26,7 +26,7 @@ test(function() {
test(function() {
assert_own_property(self, 'PushMessageData', 'PushMessageData needs to be exposed as a global.');
- var pushMessageData = new PushMessageData('SomeData');
+ var pushMessageData = new PushEvent('PushEvent', { data: 'SomeData' }).data;
assert_inherits(pushMessageData, 'arrayBuffer');
assert_inherits(pushMessageData, 'blob');
assert_inherits(pushMessageData, 'json');

Powered by Google App Engine
This is Rietveld 408576698