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, |