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

Side by Side Diff: LayoutTests/storage/indexeddb/mozilla/create-index-with-integer-keys-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's creating index with integer keys 1 Test IndexedDB's creating index with integer keys
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 = "create-index-with-integer-keys.html" 6 dbname = "create-index-with-integer-keys.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 objectStore = db.createObjectStore('foo', { keyPath: 'id' }); 9 objectStore = db.createObjectStore('foo', { keyPath: 'id' });
12 data = { id: 16, num: 42 }; 10 data = { id: 16, num: 42 };
13 objectStore.add(data); 11 objectStore.add(data);
14 index = objectStore.createIndex('foo', 'num'); 12 index = objectStore.createIndex('foo', 'num');
15 result = index.openKeyCursor(); 13 result = index.openKeyCursor();
16 cursor = event.target.result; 14 cursor = event.target.result;
17 PASS cursor == null is false 15 PASS cursor == null is false
18 PASS cursor.key is data.num 16 PASS cursor.key is data.num
19 PASS cursor.primaryKey is data.id 17 PASS cursor.primaryKey is data.id
20 PASS successfullyParsed is true 18 PASS successfullyParsed is true
21 19
22 TEST COMPLETE 20 TEST COMPLETE
23 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698