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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review and buildbot feedback. Created 4 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
OLDNEW
1 Test IndexedDB readonly properties 1 Test IndexedDB readonly 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 dbname = "readonly.html" 6 dbname = "readonly.html"
7 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname) 8 indexedDB.open(dbname)
9 transaction = event.target.transaction; 9 transaction = event.target.transaction;
10 trying to set readonly property transaction.mode 10 trying to set readonly property transaction.mode
11 transaction.mode = 666 11 transaction.mode = 666
12 PASS transaction.mode is still versionchange 12 PASS transaction.mode is still versionchange
13 trying to set readonly property transaction.db 13 trying to set readonly property transaction.db
14 transaction.db = this 14 transaction.db = this
15 PASS transaction.db is still [object IDBDatabase] 15 PASS transaction.db is still [object IDBDatabase]
16 Deleted all object stores. 16 Deleted all object stores.
17 objectStore = db.createObjectStore('foo'); 17 objectStore = db.createObjectStore('foo');
18 trying to set readonly property objectStore.name
19 objectStore.name = 'bar'
20 PASS objectStore.name is still foo
21 trying to set readonly property objectStore.keyPath 18 trying to set readonly property objectStore.keyPath
22 objectStore.keyPath = 'bar' 19 objectStore.keyPath = 'bar'
23 PASS objectStore.keyPath is still null 20 PASS objectStore.keyPath is still null
24 result = objectStore.add({}, 'first'); 21 result = objectStore.add({}, 'first');
25 result = objectStore.openCursor(); 22 result = objectStore.openCursor();
26 cursor = event.target.result; 23 cursor = event.target.result;
27 trying to set readonly property cursor.source 24 trying to set readonly property cursor.source
28 cursor.source = this 25 cursor.source = this
29 PASS cursor.source is still [object IDBObjectStore] 26 PASS cursor.source is still [object IDBObjectStore]
30 trying to set readonly property cursor.direction 27 trying to set readonly property cursor.direction
31 cursor.direction = 666 28 cursor.direction = 666
32 PASS cursor.direction is still next 29 PASS cursor.direction is still next
33 trying to set readonly property cursor.key 30 trying to set readonly property cursor.key
34 cursor.key = Infinity 31 cursor.key = Infinity
35 PASS cursor.key is still first 32 PASS cursor.key is still first
36 trying to set readonly property cursor.primaryKey 33 trying to set readonly property cursor.primaryKey
37 cursor.primaryKey = Infinity 34 cursor.primaryKey = Infinity
38 PASS cursor.primaryKey is still first 35 PASS cursor.primaryKey is still first
39 index = objectStore.createIndex('first', 'first'); 36 index = objectStore.createIndex('first', 'first');
40 trying to set readonly property index.name
41 index.name = 'bar'
42 PASS index.name is still first
43 trying to set readonly property index.objectStore 37 trying to set readonly property index.objectStore
44 index.objectStore = this 38 index.objectStore = this
45 PASS index.objectStore is still [object IDBObjectStore] 39 PASS index.objectStore is still [object IDBObjectStore]
46 trying to set readonly property index.keyPath 40 trying to set readonly property index.keyPath
47 index.keyPath = 'bar' 41 index.keyPath = 'bar'
48 PASS index.keyPath is still first 42 PASS index.keyPath is still first
49 trying to set readonly property index.unique 43 trying to set readonly property index.unique
50 index.unique = true 44 index.unique = true
51 PASS index.unique is still false 45 PASS index.unique is still false
52 trying to set readonly property keyRange.lower 46 trying to set readonly property keyRange.lower
(...skipping 24 matching lines...) Expand all
77 request.readyState = 666 71 request.readyState = 666
78 PASS request.readyState is still done 72 PASS request.readyState is still done
79 db = event.target.result 73 db = event.target.result
80 trying to set readonly property db.name 74 trying to set readonly property db.name
81 db.name = 'bar' 75 db.name = 'bar'
82 PASS db.name is still readonly.html 76 PASS db.name is still readonly.html
83 PASS successfullyParsed is true 77 PASS successfullyParsed is true
84 78
85 TEST COMPLETE 79 TEST COMPLETE
86 80
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698