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

Unified Diff: third_party/WebKit/LayoutTests/fast/files/file-constructor.html

Issue 2147633002: Remove nonstandard 'endings' option for Blob/File constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 3 years, 12 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/fast/files/file-constructor.html
diff --git a/third_party/WebKit/LayoutTests/fast/files/file-constructor.html b/third_party/WebKit/LayoutTests/fast/files/file-constructor.html
index f634db7d7750c47089f34b20d8028339ac706848..8a7e5b2e9d1ba5d5ecd92da4e5f7890c80ccb03b 100644
--- a/third_party/WebKit/LayoutTests/fast/files/file-constructor.html
+++ b/third_party/WebKit/LayoutTests/fast/files/file-constructor.html
@@ -9,8 +9,6 @@ shouldBeTrue("(new File([], 'world.html')) instanceof window.File");
shouldBeTrue("(new File(['hello'], 'world.html')) instanceof window.File");
shouldBeTrue("(new File(['hello'], 'world.html', {})) instanceof window.File");
shouldBeTrue("(new File(['hello'], 'world.html', {type:'text/html'})) instanceof window.File");
-shouldBeTrue("(new File(['hello'], 'world.html', {type:'text/html', endings:'native'})) instanceof window.File");
-shouldBeTrue("(new File(['hello'], 'world.html', {type:'text/html', endings:'transparent'})) instanceof window.File");
// Test that File inherits from File.
shouldBeTrue("(new File([], 'world.html')) instanceof window.File")
@@ -66,8 +64,6 @@ shouldThrow("(new File([], throwingObj)).name", "'Error'");
// Test some invalid property bags.
shouldBeTrue("(new File([], 'world.html', {unknownKey:'value'})) instanceof window.File"); // Ignore invalid keys
-shouldThrow("new File([], 'world.html', {endings:'illegalValue'})", "'TypeError: Failed to construct \\'File\\': The provided value \\'illegalValue\\' is not a valid enum value of type NormalizeLineEndings.'");
-shouldThrow("new File([], 'world.html', {endings:throwingObj})", "'Error'");
shouldThrow("new File([], 'world.html', {type:throwingObj})", "'Error'");
shouldThrow("new File([], 'world.html', {type:'hello\u00EE'})", "'SyntaxError: Failed to construct \\'File\\': The \\'type\\' property must consist of ASCII characters.'");

Powered by Google App Engine
This is Rietveld 408576698