Permalink
Browse files

Revert "ahout des tests unitaire au format jstestdriver + correctif s…

…ur gestion numero de version de base"

This reverts commit 6f8f6ba.
  • Loading branch information...
1 parent 6f8f6ba commit 374ede5df556b393a8fda8ff8e3e7b208ea6b18e lcalvy committed Jan 27, 2012
Showing with 2 additions and 507 deletions.
  1. +2 −5 backbone-indexeddb.js
  2. +0 −493 tests/backbone-indexeddbTests.js
  3. +0 −9 tests/jsTestDriver.conf
View
@@ -65,10 +65,10 @@
this.ready();
} else if (currentIntDBVersion < lastMigrationPathVersion ) {
// We need to migrate up to the current migration defined in the database
- this.launchMigrationPath(currentIntDBVersion);
+ this.launchMigrationPath(this.db.version);
} else {
// Looks like the IndexedDB is at a higher version than the current driver schema.
- this.error = "Database version is greater than current code " + currentIntDBVersion + " expected was " + lastMigrationPathVersion;
+ this.error = "Database version is greater than current code " + this.db.version + " expected was " + lastMigrationPathVersion;
}
};
}.bind(this);
@@ -357,9 +357,6 @@
if (typeof (readCursor) == "undefined" || !readCursor) {
options.error("No Cursor");
} else {
- readCursor.onerror = function(e){
- options.error("readCursor error", e);
- };
// Setup a handler for the cursor’s `success` event:
readCursor.onsuccess = function (e) {
var cursor = e.target.result;
Oops, something went wrong.

0 comments on commit 374ede5

Please sign in to comment.