Skip to content

Commit

Permalink
Made some syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schickling committed May 26, 2013
1 parent ffb552c commit b8a0b21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/drift-canvas/js/app.js
Expand Up @@ -11,7 +11,7 @@ window.onload = function (e) {
radius: 25,
fill:'green',
stroke:'black'
};
};

function drawCircle (x, y, color) {
ctx.clearRect(0, 0, canvas.width, canvas.height);
Expand Down Expand Up @@ -45,6 +45,6 @@ window.onload = function (e) {
}, // Callback when finished, arguments x,y
waitFinished: 0// time to wait between last way() and finished call
});
}, 1000);
}, 1000);

};
6 changes: 3 additions & 3 deletions test/drift.js
Expand Up @@ -48,9 +48,9 @@ function testDrift (test, direction) {
startCoordinates = {
x: 20,
y: 400
};
};
}

casper.waitFor(function () {
var result = drift({
startCoordinates: startCoordinates,
Expand All @@ -70,7 +70,7 @@ function testDrift (test, direction) {
that.mouse.up(x, y);
}
}, window);

return result;
}, function () {
that.test.assertEquals(
Expand Down
2 changes: 1 addition & 1 deletion test/modules/drift-move.js
Expand Up @@ -69,7 +69,7 @@ function drift (options, window) {
//call the way callback
options.way(x, y);
counter += 1;
} else {
} else {
if (options.hasOwnProperty('waitFinished')) {
setTimeout(function () {
options.finished(x, y);
Expand Down

0 comments on commit b8a0b21

Please sign in to comment.