diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-21 16:53:18 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-21 16:53:18 +0530 |
commit | 1eec5d9f7222dd3f7020b51e18ed6df3386b18f9 (patch) | |
tree | fc7ece0869b272c92aa036a9852eedc41bdd56cf /tests/wpt/web-platform-tests/FileAPI | |
parent | 7e370c4df4ee0c564322a0bebd34b31359e88d85 (diff) | |
parent | abcd4b654fd7a7adf493617bf6fe3b9ace15f6bb (diff) | |
download | servo-1eec5d9f7222dd3f7020b51e18ed6df3386b18f9.tar.gz servo-1eec5d9f7222dd3f7020b51e18ed6df3386b18f9.zip |
Auto merge of #10777 - servo:wpt-20160421, r=Ms2ger
Update web-platform-tests to revision 0a518aaff73532a26e175789f7e75fa99593ac64
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10777)
<!-- Reviewable:end -->
Diffstat (limited to 'tests/wpt/web-platform-tests/FileAPI')
-rw-r--r-- | tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html index 799091d55ac..9c2b0a138c9 100644 --- a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html +++ b/tests/wpt/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, |