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

Unified Diff: LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt

Issue 433983002: LayoutTests for writing empty Blob/File/FileList to IndexedDB. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated test expectations to match ToT. Created 5 years, 9 months 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/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
index db88d8195b78cd951f103078179aaf68bebcacd9..e796fbcaa794b0e3ac9899a3acaa2f90c46787b2 100644
--- a/LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt
+++ b/LayoutTests/storage/indexeddb/blob-basics-metadata-expected.txt
@@ -17,6 +17,7 @@ test_content = 'This is a test. This is only a test.'
blob = new Blob([test_content])
validateResult(blob):
+PASS blob.size == test_content.length is true
transaction = db.transaction('storeName', 'readwrite')
store = transaction.objectStore('storeName')
store.put(blob, 'blobkey')
@@ -29,6 +30,7 @@ testFile():
file = fileInput.files[0]
validateResult(file):
+PASS file.name == fileInput.files[0].name is true
transaction = db.transaction('storeName', 'readwrite')
store = transaction.objectStore('storeName')
store.put(file, 'filekey')
@@ -41,6 +43,7 @@ testNewFile():
newFile = new File([test_content], 'filename', {type:'text/plain'})
validateResult(newFile):
+PASS newFile.name == newFile.name is true
transaction = db.transaction('storeName', 'readwrite')
store = transaction.objectStore('storeName')
store.put(newFile, 'newFilekey')
@@ -53,6 +56,7 @@ testFileList():
filelist = fileInput.files
validateResult(filelist):
+PASS filelist[1].name == fileInput.files[1].name is true
transaction = db.transaction('storeName', 'readwrite')
store = transaction.objectStore('storeName')
store.put(filelist, 'filelistkey')
« no previous file with comments | « LayoutTests/storage/indexeddb/blob-basics-metadata.html ('k') | LayoutTests/storage/indexeddb/empty-blob-file.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698