fix busted tests

This commit is contained in:
Alan Kligman 2014-01-14 14:50:20 -05:00
parent 19181dccbc
commit 6c0758c6aa
1 changed files with 5 additions and 5 deletions

View File

@ -1,9 +1,9 @@
define(["IDBFS"], function(IDBFS) { define(["Filer"], function(Filer) {
describe('fs.xattr', function() { describe('fs.xattr', function() {
beforeEach(function() { beforeEach(function() {
this.db_name = mk_db_name(); this.db_name = mk_db_name();
this.fs = new IDBFS.FileSystem({ this.fs = new Filer.FileSystem({
name: this.db_name, name: this.db_name,
flags: 'FORMAT' flags: 'FORMAT'
}); });
@ -226,7 +226,7 @@ define(["IDBFS"], function(IDBFS) {
completeSet = completeGet = completeRemove = false; completeSet = completeGet = completeRemove = false;
that.fs.fsetxattr(1, 'test', 'value', function (error) { that.fs.fsetxattr(1, 'test', 'value', function (error) {
_errorSet = error; _errorSet = error;
completeSet = true; completeSet = true;
}); });
@ -403,7 +403,7 @@ define(["IDBFS"], function(IDBFS) {
}); });
}); });
waitsFor(function () { waitsFor(function () {
return complete; return complete;
}, 'test to complete', DEFAULT_TIMEOUT); }, 'test to complete', DEFAULT_TIMEOUT);
@ -602,7 +602,7 @@ define(["IDBFS"], function(IDBFS) {
_error = error; _error = error;
_value = value; _value = value;
complete = true; complete = true;
}); });
}); });
}); });