File.lastModifiedDate must return null if the modified time info is not available
authorkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 May 2012 13:57:32 +0000 (13:57 +0000)
committerkinuko@chromium.org <kinuko@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 30 May 2012 13:57:32 +0000 (13:57 +0000)
commit0c6e5e5b3b9b3c531a1a26f4aed87015adf86b53
tree074d0a581689f1b06d813045fdf7d6a6cac17a3f
parenta57d7637901b0927b6af8f22e32f6839e8fd4ffd
File.lastModifiedDate must return null if the modified time info is not available
https://bugs.webkit.org/show_bug.cgi?id=87709

Reviewed by Kentaro Hara.

Source/WebCore:

Per File API spec, File.lastModifiedDate must return null if the
modified time info is not available.
http://dev.w3.org/2006/webapi/FileAPI/#dfn-lastModifiedDate

Test: http/tests/local/fileapi/file-last-modified-after-delete.html

* fileapi/File.cpp:
(WebCore::File::lastModifiedDateForBinding): Added.
(WebCore):
* fileapi/File.h:
(File):
* fileapi/File.idl: Added ImplementedAs=lastModifiedDateForBinding.

LayoutTests:

* http/tests/local/fileapi/file-last-modified-after-delete-expected.txt: Added.
* http/tests/local/fileapi/file-last-modified-after-delete.html: Added.
* http/tests/local/fileapi/resources/temp-file-utils.js: Added.
* http/tests/local/fileapi/script-tests/file-last-modified-after-delete.js: Added.
* http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js: Factored out common temp-file related functions into temp-file-utils.js.
* http/tests/local/fileapi/send-sliced-dragged-file.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/local/fileapi/file-last-modified-after-delete-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/local/fileapi/file-last-modified-after-delete.html [new file with mode: 0644]
LayoutTests/http/tests/local/fileapi/resources/temp-file-utils.js [new file with mode: 0644]
LayoutTests/http/tests/local/fileapi/script-tests/file-last-modified-after-delete.js [new file with mode: 0644]
LayoutTests/http/tests/local/fileapi/script-tests/send-sliced-dragged-file.js
LayoutTests/http/tests/local/fileapi/send-sliced-dragged-file.html
Source/WebCore/ChangeLog
Source/WebCore/fileapi/File.cpp
Source/WebCore/fileapi/File.h
Source/WebCore/fileapi/File.idl