blob: dcdbedb2e77600bf50975129985030f86fcd311f [file] [log] [blame]
Test readonly attributes of File.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCallback);
removeAllInDirectory(fileSystem.root, createTestFile, errorCallback);
fileSystem.root.getFile(testFileName, {create:true}, getFileFromEntry, errorCallback);
testFileEntry.file(fileCallback, errorCallback);
trying to set readonly property testFile.size
testFile.size = 1
PASS testFile.size is still 0
trying to set readonly property testFile.type
testFile.type = 'application/octet-stream'
PASS testFile.type is still text/plain
trying to set readonly property = 'bar'
PASS is still testFileEntry.txt
PASS successfullyParsed is true