Index: LayoutTests/fast/files/blob-constructor.html |
diff --git a/LayoutTests/fast/files/blob-constructor.html b/LayoutTests/fast/files/blob-constructor.html |
index a85627d6ffc8f2cd26a56fc9b78ccc70c1f3abc8..16b012afa61a5a8cf43e6d9863c2cd266846d701 100644 |
--- a/LayoutTests/fast/files/blob-constructor.html |
+++ b/LayoutTests/fast/files/blob-constructor.html |
@@ -42,7 +42,6 @@ shouldBeTrue("(new Blob([], {unknownKey:'value'})) instanceof window.Blob"); |
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'"); |
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"; } }; |
@@ -51,6 +50,12 @@ 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 non-ASCII type handling |
+shouldBeEqualToString("new Blob([], {type:'hello\u00EE'}).type", ""); |
+ |
+// Test lowercasing of type |
+shouldBeEqualToString("new Blob([], {type:'123ABCabc'}).type", "123abcabc"); |
+ |
// Test various non-object literals being used as property bags. |
shouldBeTrue("(new Blob([], null)) instanceof window.Blob"); |
shouldBeTrue("(new Blob([], undefined)) instanceof window.Blob"); |