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

Unified Diff: LayoutTests/fast/files/blob-constructor.html

Issue 74213009: File constructor understands lastModified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed loop from layout test. Created 7 years, 1 month 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: LayoutTests/fast/files/blob-constructor.html
diff --git a/LayoutTests/fast/files/blob-constructor.html b/LayoutTests/fast/files/blob-constructor.html
index f5c125f3b00fe0ed983f02a9416315b05d7e0453..37db35e304ed1ed6f6189117b6300d49f9e03ade 100644
--- a/LayoutTests/fast/files/blob-constructor.html
+++ b/LayoutTests/fast/files/blob-constructor.html
@@ -61,11 +61,17 @@ shouldBeTrue("(new Blob([], [])) instanceof window.Blob");
shouldBeTrue("(new Blob([], /abc/)) instanceof window.Blob");
shouldBeTrue("(new Blob([], function () {})) instanceof window.Blob");
-// Test that the type/size is correctly added to the Blob
+// Test that the type/size is correctly added to the Blob.
shouldBe("(new Blob([], {type:'text/html'})).type", "'text/html'");
shouldBe("(new Blob([], {type:'text/html'})).size", "0");
shouldBe("(new Blob([], {type:'text/plain;charset=UTF-8'})).type", "'text/plain;charset=utf-8'");
+// Test that the File-specific lastModificationDate is not set by the Blob constructor.
+shouldBe("(new Blob([])).lastModifiedDate", "undefined");
+shouldBe("(new Blob([], {})).lastModifiedDate", "undefined");
+shouldBe("(new Blob([], {lastModifiedDate: new Date()})).lastModifiedDate", "undefined");
+shouldBe("(new Blob([], {lastModifiedDate: 'not a valid date'})).lastModifiedDate", "undefined");
+
// Test the number of expected arguments in the Blob constructor.
shouldBe("window.Blob.length", "0");
« no previous file with comments | « no previous file | LayoutTests/fast/files/blob-constructor-expected.txt » ('j') | LayoutTests/fast/files/file-constructor.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698