Fix remaining test failures

This commit is contained in:
David Humphrey (:humph) david.humphrey@senecacollege.ca 2014-03-05 16:27:12 -05:00
parent 61111da85d
commit 8c743bb95a
3 changed files with 13 additions and 3 deletions

View File

@ -2465,7 +2465,7 @@ define(function(require) {
var fs = this;
var error = fs.queueOrRun(
function() {
var context = fs.provider.getReadOnlyContext();
var context = fs.provider.getReadWriteContext();
_exists(context, fs.name, path, callback);
}
);

View File

@ -131,7 +131,13 @@ define(["Filer", "util"], function(Filer, util) {
});
});
it("should fail when trying to write on ReadOnlyContext", function(done) {
/**
* With issue 123 (see https://github.com/js-platform/filer/issues/128) we had to
* start using readwrite contexts everywhere with IndexedDB. As such, we can't
* easily test this here, without knowing which provider we have. We test this
* in the actual providers, so this isn't really needed. Skipping for now.
*/
it.skip("should fail when trying to write on ReadOnlyContext", function(done) {
var provider = createProvider();
provider.open(function(error, firstAccess) {
if(error) throw error;

View File

@ -129,7 +129,11 @@ define(["Filer", "util"], function(Filer, util) {
});
});
it("should fail when trying to write on ReadOnlyContext", function(done) {
/**
* With issue 123 (see https://github.com/js-platform/filer/issues/128) we had to
* start using readwrite contexts everywhere with IndexedDB. Skipping for now.
*/
it.skip("should fail when trying to write on ReadOnlyContext", function(done) {
var provider = _provider.provider;
provider.open(function(error, firstAccess) {
if(error) throw error;