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

Side by Side Diff: third_party/WebKit/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt

Issue 2517813002: Enable V8BasedStructuredClone by default. (Closed)
Patch Set: . Created 4 years, 1 month 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
OLDNEW
1 Test the basics of IndexedDB's IDBObjectStore. 1 Test the basics of IndexedDB's IDBObjectStore.
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 dbname = "objectstore-basics.html" 6 dbname = "objectstore-basics.html"
7 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname) 8 indexedDB.open(dbname)
9 9
10 prepareDatabase(): 10 prepareDatabase():
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 addData(): 88 addData():
89 db = event.target.result 89 db = event.target.result
90 transaction = db.transaction(['storeName'], 'readwrite') 90 transaction = db.transaction(['storeName'], 'readwrite')
91 store = transaction.objectStore('storeName') 91 store = transaction.objectStore('storeName')
92 Try to insert data with a Date key: 92 Try to insert data with a Date key:
93 store.add({x: 'foo'}, testDate) 93 store.add({x: 'foo'}, testDate)
94 Try to insert a value not handled by structured clone: 94 Try to insert a value not handled by structured clone:
95 Expecting exception from store.add({x: 'bar', y: self}, 'bar') 95 Expecting exception from store.add({x: 'bar', y: self}, 'bar')
96 PASS Exception was thrown. 96 PASS Exception was thrown.
97 PASS code is DOMException.DATA_CLONE_ERR 97 PASS code is DOMException.DATA_CLONE_ERR
98 Exception message: Failed to execute 'add' on 'IDBObjectStore': An object could not be cloned. 98 Exception message: Failed to execute 'add' on 'IDBObjectStore': #<Window> could not be cloned.
99 Try to insert data where key path yields a Date key: 99 Try to insert data where key path yields a Date key:
100 store.add({x: testDateB, y: 'value'}, 'key') 100 store.add({x: testDateB, y: 'value'}, 'key')
101 addSuccess(): 101 addSuccess():
102 PASS event.target.result is "key" 102 PASS event.target.result is "key"
103 event.target.source.add({x: 'foo'}, 'zzz') 103 event.target.source.add({x: 'foo'}, 'zzz')
104 addAgainFailure(): 104 addAgainFailure():
105 PASS event.target.error.name is 'ConstraintError' 105 PASS event.target.error.name is 'ConstraintError'
106 event.preventDefault() 106 event.preventDefault()
107 db.transaction(['storeName'], 'readwrite') 107 db.transaction(['storeName'], 'readwrite')
108 store = transaction.objectStore('storeName') 108 store = transaction.objectStore('storeName')
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 The key parameter was provided but does not contain a valid key. 226 The key parameter was provided but does not contain a valid key.
227 Expecting exception from storeWithOutOfLineKeys.add({}, null) 227 Expecting exception from storeWithOutOfLineKeys.add({}, null)
228 PASS Exception was thrown. 228 PASS Exception was thrown.
229 PASS code is 0 229 PASS code is 0
230 PASS ename is 'DataError' 230 PASS ename is 'DataError'
231 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is not a valid key. 231 Exception message: Failed to execute 'add' on 'IDBObjectStore': The parameter is not a valid key.
232 PASS successfullyParsed is true 232 PASS successfullyParsed is true
233 233
234 TEST COMPLETE 234 TEST COMPLETE
235 235
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698