1 description("Test File.lastModifiedDate returns null if the information is not available.");
3 var tempFileContent = "1234567890";
4 var tempFileName = "file-last-modified-after-delete.tmp";
7 function onFileDrop(file)
9 // Remove the temp file.
10 removeTempFile(tempFileName);
12 // This synchronosly queries the file's lastModifiedDate (which should fail) until/unless we start capturing the file metadata at File construction time.
13 lastModifiedDate = file.lastModifiedDate;
14 shouldBe('lastModifiedDate', 'null');
19 var tempFilePath = createTempFile(tempFileName, tempFileContent);
20 if (tempFilePath.length == 0)
23 setFileInputDropCallback(onFileDrop);
24 eventSender.beginDragWithFiles([tempFilePath]);
25 moveMouseToCenterOfElement(fileInput);
26 eventSender.mouseUp();
29 if (window.eventSender) {
31 // Clean up after ourselves
32 removeFileInputElement();
34 testFailed("This test is not interactive, please run using DumpRenderTree");
37 var successfullyParsed = true;