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

Side by Side Diff: LayoutTests/storage/indexeddb/data-corruption-expected.txt

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test that data inserted into IndexedDB does not get corrupted on disk. 1 Test that data inserted into IndexedDB does not get corrupted on disk.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7
8 dbname = "data-corruption.html" 6 dbname = "data-corruption.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 setVersionSuccess(): 9 setVersionSuccess():
12 PASS event.dataLoss is "none" 10 PASS event.dataLoss is "none"
13 trans = event.target.transaction 11 trans = event.target.transaction
14 PASS trans is non-null. 12 PASS trans is non-null.
15 db.createObjectStore('storeName') 13 db.createObjectStore('storeName')
16 addData(): 14 addData():
17 transaction = db.transaction(['storeName'], 'readwrite') 15 transaction = db.transaction(['storeName'], 'readwrite')
18 request = transaction.objectStore('storeName').add({x: testDate}, 'key') 16 request = transaction.objectStore('storeName').add({x: testDate}, 'key')
19 addData(): 17 addData():
20 transaction = db.transaction(['storeName'], 'readonly') 18 transaction = db.transaction(['storeName'], 'readonly')
21 request = transaction.objectStore('storeName').get('key') 19 request = transaction.objectStore('storeName').get('key')
22 PASS event.target.result.x.toString() is testDate.toString() 20 PASS event.target.result.x.toString() is testDate.toString()
23 PASS successfullyParsed is true 21 PASS successfullyParsed is true
24 22
25 TEST COMPLETE 23 TEST COMPLETE
26 24
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/cursor-value-expected.txt ('k') | LayoutTests/storage/indexeddb/database-basics-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698