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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html

Issue 1923043002: Import web-platform-tests@028d354aba4c8ee6700def957a45f3927241d8b0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix expectations after the test harness was updated Created 4 years, 8 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/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html
index 01207f2e096f25a5d9575348885efd9b246e620e..9215356055180e9c6bdb2c43c4e8ac4b59a29254 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/FileAPI/blob/Blob-constructor.html
@@ -23,22 +23,28 @@ test(function() {
assert_equals(String(blob), '[object Blob]');
assert_equals(blob.size, 0);
assert_equals(blob.type, "");
-}, "no-argument Blob constructor");
+}, "Blob constructor with no arguments");
test(function() {
assert_throws(new TypeError(), function() { var blob = Blob(); });
-}, "no-argument Blob constructor without 'new'");
+}, "Blob constructor with no arguments, without 'new'");
test(function() {
var blob = new Blob;
assert_true(blob instanceof Blob);
assert_equals(blob.size, 0);
assert_equals(blob.type, "");
-}, "no-argument Blob constructor without brackets");
+}, "Blob constructor without brackets");
+test(function() {
+ var blob = new Blob(undefined);
+ assert_true(blob instanceof Blob);
+ assert_equals(String(blob), '[object Blob]');
+ assert_equals(blob.size, 0);
+ assert_equals(blob.type, "");
+}, "Blob constructor with undefined as first argument");
// blobParts argument (WebIDL).
test(function() {
var args = [
null,
- undefined,
true,
false,
0,

Powered by Google App Engine
This is Rietveld 408576698