Skip to content

Commit 8e36430

Browse files
author
Parashuram
committed
Updated tests to reflect that same version update should not be called
1 parent 49c380e commit 8e36430

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/index.html

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@
7979

8080
$.indexedDB(DB.NAME, {
8181
"schema": {
82-
"1": function(versionTransaction){
83-
_("Running update 1");
82+
"2": function(versionTransaction){
83+
_("Running update 2");
8484
var objectStore1 = versionTransaction.createObjectStore(DB.OBJECT_STORE_1);
8585
objectStore1.add(sample.obj(), sample.integer());
8686
objectStore1.add(sample.obj(), sample.integer());
8787
objectStore1.add(sample.obj(), sample.integer());
8888
versionTransaction.createObjectStore(DB.OBJECT_STORE_3);
8989
},
90-
"2": function(versionTransaction){
91-
_("Running update 2");
90+
"3": function(versionTransaction){
91+
_("Running update 3");
9292
var objectStore2 = versionTransaction.createObjectStore(DB.OBJECT_STORE_2, {
9393
"keyPath": "id",
9494
"autoIncrement": true
@@ -99,8 +99,8 @@
9999
});*/
100100
versionTransaction.objectStore(DB.OBJECT_STORE_1).createIndex("Int");
101101
},
102-
"3": function(versionTransaction){
103-
_("Running update 3");
102+
"4": function(versionTransaction){
103+
_("Running update 4");
104104
versionTransaction.deleteObjectStore(DB.OBJECT_STORE_3);
105105
versionTransaction.objectStore(DB.OBJECT_STORE_2).createIndex("Number", DB.INDEX1_ON_OBJECT_STORE_2);
106106
}
@@ -125,9 +125,8 @@
125125
});
126126

127127
queuedAsyncTest("DB with upgrade defination", function(){
128-
129128
$.indexedDB(DB.NAME, {
130-
"version": 4,
129+
"version": 5,
131130
"upgrade": function(versionTransaction){
132131
_("Upgrade method called");
133132
var objectStore3 = versionTransaction.createObjectStore(DB.OBJECT_STORE_3);

0 commit comments

Comments
 (0)