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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/add-twice-failure-expected.txt

Issue 307653004: IndexedDB: Result of failed request should be |undefined| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 IndexedDB behavior adding the same property twice 1 Test IndexedDB behavior adding the same property twice
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; 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7 7
8 dbname = "add-twice-failure.html" 8 dbname = "add-twice-failure.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 objectStore = db.createObjectStore('foo'); 11 objectStore = db.createObjectStore('foo');
12 key = 10 12 key = 10
13 request = objectStore.add({}, key); 13 request = objectStore.add({}, key);
14 PASS request.result is key 14 PASS request.result is key
15 request = objectStore.add({}, key); 15 request = objectStore.add({}, key);
16 PASS event.target.result is undefined.
17 PASS event.target.error is non-null.
16 PASS event.target.error.name is 'ConstraintError' 18 PASS event.target.error.name is 'ConstraintError'
17 PASS successfullyParsed is true 19 PASS successfullyParsed is true
18 20
19 TEST COMPLETE 21 TEST COMPLETE
20 22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698