 Chromium Code Reviews
 Chromium Code Reviews| Index: LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt | 
| diff --git a/LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt b/LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..3b7f997981325ca91d6985377d4f151e5e5337a6 | 
| --- /dev/null | 
| +++ b/LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt | 
| @@ -0,0 +1,69 @@ | 
| +Confirm basic Blob/File/FileList functionality. | 
| + | 
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". | 
| + | 
| + | 
| +indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB; | 
| + | 
| +dbname = "blob-basics-metadata.html" | 
| +indexedDB.deleteDatabase(dbname) | 
| +indexedDB.open(dbname) | 
| +store = db.createObjectStore('storeName') | 
| +store.put('value', 'key') | 
| + | 
| +testBlob(): | 
| +PASS FileReader != null is true | 
| +test_content = 'This is a test. This is only a test.' | 
| +blob = new Blob([test_content]) | 
| + | 
| +validateResult(blob): | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +store.put(blob, 'blobkey') | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +request = store.get('blobkey') | 
| +PASS event.target.result.size == test_content.length is true | 
| + | 
| +testFile(): | 
| +file = fileInput.files[0] | 
| + | 
| +validateResult(file): | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +store.put(file, 'filekey') | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +request = store.get('filekey') | 
| +PASS event.target.result.name == fileInput.files[0].name is true | 
| + | 
| +testFileList(): | 
| +filelist = fileInput.files | 
| + | 
| +validateResult(filelist): | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +store.put(filelist, 'filelistkey') | 
| +transaction = db.transaction('storeName', 'readwrite') | 
| +store = transaction.objectStore('storeName') | 
| +request = store.get('filelistkey') | 
| +PASS event.target.result[1].name == fileInput.files[1].name is true | 
| + | 
| +testCursor(): | 
| +transaction = db.transaction('storeName', 'readonly') | 
| +store = transaction.objectStore('storeName') | 
| +request = store.openCursor() | 
| +PASS cursor.value.size == test_content.length is true | 
| +cursor.continue(); | 
| +PASS cursor.value.name == fileInput.files[0].name is true | 
| +cursor.continue(); | 
| +PASS cursor.value[1].name == fileInput.files[1].name is true | 
| +cursor.continue(); | 
| +PASS cursor.value == 'value' is true | 
| +cursor.continue(); | 
| +WARN: shouldBe() expects string arguments | 
| 
jsbell
2014/05/29 00:40:06
this is due to shouldBeNull(cursor) w/o quotes
 
ericu
2014/06/02 22:18:47
Done.
 | 
| +PASS null is null | 
| +PASS successfullyParsed is true | 
| + | 
| +TEST COMPLETE | 
| + |