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

Side by Side Diff: LayoutTests/storage/indexeddb/keypath-intrinsic-properties-expected.txt

Issue 984523003: bindings: Moves most of DOM attributes to prototype chains. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated test results. Created 5 years, 9 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 keyPath with intrinsic properties 1 Test IndexedDB keyPath with intrinsic properties
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 = "keypath-intrinsic-properties.html" 8 dbname = "keypath-intrinsic-properties.html"
9 indexedDB.deleteDatabase(dbname) 9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 10 indexedDB.open(dbname)
11 store = db.createObjectStore('store', {keyPath: 'id'}) 11 store = db.createObjectStore('store', {keyPath: 'id'})
12 store.createIndex('string length', 'string.length') 12 store.createIndex('string length', 'string.length')
13 store.createIndex('array length', 'array.length') 13 store.createIndex('array length', 'array.length')
14 store.createIndex('blob size', 'blob.size') 14 store.createIndex('blob size', 'blob.size')
15 store.createIndex('blob type', 'blob.type') 15 store.createIndex('blob type', 'blob.type')
16 16
17 testKeyPaths(): 17 testKeyPaths():
18 transaction = db.transaction('store', 'readwrite') 18 transaction = db.transaction('store', 'readwrite')
19 store = transaction.objectStore('store') 19 store = transaction.objectStore('store')
20 store.put({"id":"id#0","string":"","array":[],"blob":{"type":"type 0","size":0}} ) 20 store.put({"id":"id#0","string":"","array":[],"blob":{"size":0,"type":"type 0"}} )
21 store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"type":"type 1","size":4}}) 21 store.put({"id":"id#1","string":"xx","array":["x","x","x"],"blob":{"size":4,"typ e":"type 1"}})
22 store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob": {"type":"type 2","size":8}}) 22 store.put({"id":"id#2","string":"xxxx","array":["x","x","x","x","x","x"],"blob": {"size":8,"type":"type 2"}})
23 store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x ","x"],"blob":{"type":"type 3","size":12}}) 23 store.put({"id":"id#3","string":"xxxxxx","array":["x","x","x","x","x","x","x","x ","x"],"blob":{"size":12,"type":"type 3"}})
24 store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x", "x","x","x","x","x"],"blob":{"type":"type 4","size":16}}) 24 store.put({"id":"id#4","string":"xxxxxxxx","array":["x","x","x","x","x","x","x", "x","x","x","x","x"],"blob":{"size":16,"type":"type 4"}})
25 request = store.index('string length').openCursor() 25 request = store.index('string length').openCursor()
26 PASS cursor.key is cursor.value.string.length 26 PASS cursor.key is cursor.value.string.length
27 PASS cursor.key is cursor.value.string.length 27 PASS cursor.key is cursor.value.string.length
28 PASS cursor.key is cursor.value.string.length 28 PASS cursor.key is cursor.value.string.length
29 PASS cursor.key is cursor.value.string.length 29 PASS cursor.key is cursor.value.string.length
30 PASS cursor.key is cursor.value.string.length 30 PASS cursor.key is cursor.value.string.length
31 request = store.index('array length').openCursor() 31 request = store.index('array length').openCursor()
32 PASS cursor.key is cursor.value.array.length 32 PASS cursor.key is cursor.value.array.length
33 PASS cursor.key is cursor.value.array.length 33 PASS cursor.key is cursor.value.array.length
34 PASS cursor.key is cursor.value.array.length 34 PASS cursor.key is cursor.value.array.length
35 PASS cursor.key is cursor.value.array.length 35 PASS cursor.key is cursor.value.array.length
36 PASS cursor.key is cursor.value.array.length 36 PASS cursor.key is cursor.value.array.length
37 request = store.index('blob size').openCursor() 37 request = store.index('blob size').openCursor()
38 PASS cursor.key is cursor.value.blob.size 38 PASS cursor.key is cursor.value.blob.size
39 PASS cursor.key is cursor.value.blob.size 39 PASS cursor.key is cursor.value.blob.size
40 PASS cursor.key is cursor.value.blob.size 40 PASS cursor.key is cursor.value.blob.size
41 PASS cursor.key is cursor.value.blob.size 41 PASS cursor.key is cursor.value.blob.size
42 PASS cursor.key is cursor.value.blob.size 42 PASS cursor.key is cursor.value.blob.size
43 request = store.index('blob type').openCursor() 43 request = store.index('blob type').openCursor()
44 PASS cursor.key is cursor.value.blob.type 44 PASS cursor.key is cursor.value.blob.type
45 PASS cursor.key is cursor.value.blob.type 45 PASS cursor.key is cursor.value.blob.type
46 PASS cursor.key is cursor.value.blob.type 46 PASS cursor.key is cursor.value.blob.type
47 PASS cursor.key is cursor.value.blob.type 47 PASS cursor.key is cursor.value.blob.type
48 PASS cursor.key is cursor.value.blob.type 48 PASS cursor.key is cursor.value.blob.type
49 PASS successfullyParsed is true 49 PASS successfullyParsed is true
50 50
51 TEST COMPLETE 51 TEST COMPLETE
52 52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698