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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/object-store-inline-autoincrement-key-added-on-put-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 IndexedDB adding an autoincremented key and retrieving it successfully 1 Test IndexedDB adding an autoincremented key and retrieving it successfully
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 = "object-store-inline-autoincrement-key-added-on-put.html" 6 dbname = "object-store-inline-autoincrement-key-added-on-put.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 test = { 9 test = {
12 name: 'inline key; key generator', 10 name: 'inline key; key generator',
13 autoIncrement: true, 11 autoIncrement: true,
14 storedObject: { name: 'Lincoln' }, 12 storedObject: { name: 'Lincoln' },
15 keyName: 'id', 13 keyName: 'id',
16 }; 14 };
17 objectStore = db.createObjectStore(test.name, { keyPath: test.keyName, autoIncre ment: test.autoIncrement }); 15 objectStore = db.createObjectStore(test.name, { keyPath: test.keyName, autoIncre ment: test.autoIncrement });
18 request = objectStore.add(test.storedObject); 16 request = objectStore.add(test.storedObject);
19 id = event.target.result; 17 id = event.target.result;
20 request = objectStore.get(id); 18 request = objectStore.get(id);
21 PASS event.target.result.name is test.storedObject.name 19 PASS event.target.result.name is test.storedObject.name
22 PASS event.target.result.id is id 20 PASS event.target.result.id is id
23 PASS successfullyParsed is true 21 PASS successfullyParsed is true
24 22
25 TEST COMPLETE 23 TEST COMPLETE
26 24
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698