Annotate some test failures in FileAPI tests.

This commit is contained in:
Ms2ger 2016-06-16 20:13:35 +01:00
parent d620ab71c4
commit bac22f1b57
6 changed files with 45 additions and 66 deletions

View file

@ -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) {
@ -342,16 +352,6 @@ t_ports.step(function() {
channel.port1.postMessage('', [channel2.port1]);
});
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]);