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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/FileAPI/blob/Blob-constructor.html

Issue 2104293002: Import wpt@3a8b4eba63e0e226cb9dc3648084753f920ffeb8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix platform expectations Created 4 years, 6 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/wpt/FileAPI/blob/Blob-constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/blob/Blob-constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/blob/Blob-constructor.html
index 9c2b0a138c9f5ca9714513d62afc6d044530bcc9..d8375c2a6e803e1660bf0808f9351c3cb228bfd1 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/blob/Blob-constructor.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/blob/Blob-constructor.html
@@ -330,7 +330,17 @@ test_blob(function() {
desc: "Passing an platform object that supports indexed properties as the blobParts array should work (select)."
});
-var t_ports = async_test("Passing a platform array object as the blobParts array should work (MessagePort[]).");
+test_blob(function() {
+ var elm = document.createElement("div");
+ elm.setAttribute("foo", "bar");
+ return new Blob(elm.attributes);
+}, {
+ expected: "[object Attr]",
+ type: "",
+ desc: "Passing an platform object that supports indexed properties as the blobParts array should work (attributes)."
+});
+
+var t_ports = async_test("Passing a FrozenArray as the blobParts array should work (FrozenArray<MessagePort>).");
t_ports.step(function() {
var channel = new MessageChannel();
channel.port2.onmessage = this.step_func(function(e) {
@@ -343,16 +353,6 @@ t_ports.step(function() {
});
test_blob(function() {
- var elm = document.createElement("div");
- elm.setAttribute("foo", "bar");
- return new Blob(elm.attributes);
-}, {
- expected: "[object Attr]",
- type: "",
- desc: "Passing a platform array object as the blobParts array should work (Attr[])."
-});
-
-test_blob(function() {
var blob = new Blob(['foo']);
return new Blob([blob, blob]);
}, {

Powered by Google App Engine
This is Rietveld 408576698