Skip to content

Instantly share code, notes, and snippets.

@omo
Created September 20, 2010 15:32
Show Gist options
  • Save omo/588074 to your computer and use it in GitHub Desktop.
Save omo/588074 to your computer and use it in GitHub Desktop.
async test sucks.
var testDbCardStoragePutSouldCount = function() {
doTestDbCardStorage(
"test1",
function(done, target) {
target.count(
function(cnt) {
assertEquals(0, cnt);
target.put(
tfil.test.HELLO_CARD_RECORD,
function() {
target.count(
function(cnt) {
assertEquals(1, cnt);
target.clear();
done();
});
});
});
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment