Updated Branches: refs/heads/master def11a3c3 -> b5bde7fc4
[CB-4063] Missing waitsFor call in file.spec.46. Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/b5bde7fc Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/b5bde7fc Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/b5bde7fc Branch: refs/heads/master Commit: b5bde7fc42f39224c0ad5b99174b71526f075a71 Parents: def11a3 Author: Fil Maj <[email protected]> Authored: Thu Jul 4 10:49:32 2013 -0700 Committer: Fil Maj <[email protected]> Committed: Thu Jul 4 10:49:32 2013 -0700 ---------------------------------------------------------------------- autotest/tests/file.tests.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/b5bde7fc/autotest/tests/file.tests.js ---------------------------------------------------------------------- diff --git a/autotest/tests/file.tests.js b/autotest/tests/file.tests.js index 2015c0a..de41320 100644 --- a/autotest/tests/file.tests.js +++ b/autotest/tests/file.tests.js @@ -1273,7 +1273,11 @@ describe('File API', function() { }); // create a new file entry - createFile(fileName, entryCallback, fail); + runs(function() { + createFile(fileName, entryCallback, fail); + }); + + waitsFor(function() { return entryCallback.wasCalled; }, 'entryCallback never called', Tests.TEST_TIMEOUT); }); it("file.spec.47 Entry.getMetadata on directory", function() { var dirName = "entry.metadata.dir",
