| Index: LayoutTests/fast/files/blob-constructor.html
|
| diff --git a/LayoutTests/fast/files/blob-constructor.html b/LayoutTests/fast/files/blob-constructor.html
|
| index 8d6023d91337be2de29dc2022865622328046922..baf361ef3af231b542d53fbd8bd1e2b84fb32049 100644
|
| --- a/LayoutTests/fast/files/blob-constructor.html
|
| +++ b/LayoutTests/fast/files/blob-constructor.html
|
| @@ -38,17 +38,17 @@ shouldThrow("new Blob([throwingObj])", "'Error'");
|
|
|
| // Test some invalid property bags.
|
| shouldBeTrue("(new Blob([], {unknownKey:'value'})) instanceof window.Blob"); // Ignore invalid keys
|
| -shouldThrow("new Blob([], {endings:'illegalValue'})", "'TypeError: Failed to construct \\'Blob\\': The \"endings\" property must be either \"transparent\" or \"native\".'");
|
| +shouldThrow("new Blob([], {endings:'illegalValue'})", "'TypeError: Failed to construct \\'Blob\\': The \\'endings\\' property must be either \\'transparent\\' or \\'native\\'.'");
|
| shouldThrow("new Blob([], {endings:throwingObj})", "'Error'");
|
| shouldThrow("new Blob([], {type:throwingObj})", "'Error'");
|
| -shouldThrow("new Blob([], {type:'hello\u00EE'})", "'SyntaxError: Failed to construct \\'Blob\\': The \"type\" property must consist of ASCII characters.'");
|
| +shouldThrow("new Blob([], {type:'hello\u00EE'})", "'SyntaxError: Failed to construct \\'Blob\\': The \\'type\\' property must consist of ASCII characters.'");
|
|
|
| // Test that order of property bag evaluation is lexigraphical
|
| var throwingObj1 = { toString: function() { throw "Error 1"; } };
|
| var throwingObj2 = { toString: function() { throw "Error 2"; } };
|
| shouldThrow("new Blob([], {endings:throwingObj1, type:throwingObj2})", "'Error 1'");
|
| shouldThrow("new Blob([], {type:throwingObj2, endings:throwingObj1})", "'Error 1'");
|
| -shouldThrow("new Blob([], {type:throwingObj2, endings:'illegal'})", "'TypeError: Failed to construct \\'Blob\\': The \"endings\" property must be either \"transparent\" or \"native\".'");
|
| +shouldThrow("new Blob([], {type:throwingObj2, endings:'illegal'})", "'TypeError: Failed to construct \\'Blob\\': The \\'endings\\' property must be either \\'transparent\\' or \\'native\\'.'");
|
|
|
| // Test various non-object literals being used as property bags.
|
| shouldThrow("(new Blob([], null)) instanceof window.Blob", "'TypeError: Failed to construct \\'Blob\\': The 2nd argument is not of type Object.'");
|
| @@ -108,7 +108,7 @@ shouldBe("new Blob({length: 0}).size", "0");
|
| shouldBe("new Blob({length: 1, 0: 'string'}).size", "6");
|
| shouldBe("new Blob({length: 2, 0: new Uint8Array(100), 1: new Int16Array(100)}).size", "300");
|
| shouldBe("new Blob({length: 1, 0: 'string'}, {type: 'text/html'}).type", "'text/html'");
|
| -shouldThrow("new Blob({length: 0}, {endings:'illegal'})", "'TypeError: Failed to construct \\'Blob\\': The \"endings\" property must be either \"transparent\" or \"native\".'");
|
| +shouldThrow("new Blob({length: 0}, {endings:'illegal'})", "'TypeError: Failed to construct \\'Blob\\': The \\'endings\\' property must be either \\'transparent\\' or \\'native\\'.'");
|
|
|
| // Test passing blog parts in a sequence-like object that throws on property access.
|
| var throwingSequence = {length: 4, 0: 'hello', 3: 'world'};
|
|
|