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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js

Issue 1622553004: PartitionAlloc: Increase the number of pages per bucket (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js b/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js
index 16fa54b771c909e7486a68d1267b9552749db560..df0ba48f41ba24b73280d6f652c7dea2f4b78887 100644
--- a/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js
+++ b/third_party/WebKit/LayoutTests/http/tests/push_messaging/resources/pushmessagedata-worker.js
@@ -27,32 +27,9 @@ test(function() {
}, 'PushEvent can be initialized from ArrayBuffer, ArrayBufferView and USVStrings.');
test(function() {
- var pushMessageData = createPushMessageData();
-
- assert_equals(pushMessageData.arrayBuffer().byteLength, 0);
-
- assert_equals(pushMessageData.blob().size, 0);
- assert_equals(pushMessageData.blob().type, '');
-
- // PushMessageData.json() is specified to be identical to JSON.parse() with
- // the message's data as the argument. JSON.parse('') throws an exception,
- // so verify that calling json() without a body throws the same exception.
- try {
- pushMessageData.json();
- assert_unreached('Expected an exception to be thrown.');
- } catch (eventDataException) {
- try {
- JSON.parse('');
- assert_unreached('Expected an exception to be thrown.');
- } catch (jsonParseException) {
- assert_equals(eventDataException.name, jsonParseException.name);
- assert_equals(eventDataException.message, jsonParseException.message);
- }
- }
-
- assert_equals(pushMessageData.text().length, 0);
-
-}, 'PushMessageData is empty by default.');
+ assert_equals(createPushMessageData(undefined), null);
+
+}, 'PushMessageData is null by default.');
test(function() {
const binaryContents = [1, 2, 3];
« no previous file with comments | « chrome/test/data/push_messaging/service_worker.js ('k') | third_party/WebKit/Source/modules/push_messaging/PushEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698