Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html b/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
| index f8a266cb0756eee57e8732d3b80bbb5260b01495..bf1618bad8dc8bf740cfe14fc2e8fd97a69ae798 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
| +++ b/third_party/WebKit/LayoutTests/fast/files/blob-constructor.html |
| @@ -12,8 +12,6 @@ shouldBeTrue("(new Blob([])) instanceof window.Blob"); |
| shouldBeTrue("(new Blob(['hello'])) instanceof window.Blob"); |
| shouldBeTrue("(new Blob(['hello'], {})) instanceof window.Blob"); |
| shouldBeTrue("(new Blob(['hello'], {type:'text/html'})) instanceof window.Blob"); |
| -shouldBeTrue("(new Blob(['hello'], {type:'text/html', endings:'native'})) instanceof window.Blob"); |
| -shouldBeTrue("(new Blob(['hello'], {type:'text/html', endings:'transparent'})) instanceof window.Blob"); |
| // Test default sizes/types. |
| shouldBe("(new Blob()).size", "0"); |
| @@ -47,18 +45,11 @@ 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 provided value \\'illegalValue\\' is not a valid enum value of type NormalizeLineEndings.'"); |
| -shouldThrow("new Blob([], {endings:throwingObj})", "'Error'"); |
| +shouldNotThrow("new Blob([], {endings:'illegalValue'})"); // Non-standard 'endings' entry is no longer supported. |
|
foolip
2016/07/27 18:12:29
I think keeping wpt/FileAPI/blob/Blob-constructor.
|
| +shouldNotThrow("new Blob([], {endings:throwingObj})"); // Non-standard 'endings' entry is no longer supported. |
| 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.'"); |
| -// 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 provided value \\'illegal\\' is not a valid enum value of type NormalizeLineEndings.'"); |
| - |
| // Test various non-object literals being used as property bags. |
| shouldBeTrue("(new Blob([], null)) instanceof window.Blob"); |
| shouldBeTrue("(new Blob([], undefined)) instanceof window.Blob"); |