Permalink
Browse files

r=dmose for alankligman's stub game ocmmits, with a couple of tweaks …

…made in this commit: make the existing automated test check for the canvas element representing the gamefield that the player sees, and fix a few JSLint nits
  • Loading branch information...
1 parent 12a884f commit 4e3ab9d0180383090035b3e1e8cdd5bdfc9d0cf3 @dmose dmose committed Aug 25, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/rescuefox.js
  2. +2 −2 test/test-rescuefox.js
View
@@ -1,3 +1,4 @@
+/*global paladin */
(function() {
var Game = function( options ) {
@@ -24,8 +25,7 @@ var Game = function( options ) {
this.run = function() {
engine.run();
};
-
-}
+};
document.addEventListener( 'DOMContentLoaded', function( event ) {
paladin.create( { debug: true },
View
@@ -10,8 +10,8 @@
}
});
- test("can find the document body element", function() {
- S("body").exists();
+ test("player sees a game field (i.e. canvas element)", function() {
+ S("canvas").exists();
});
})();

0 comments on commit 4e3ab9d

Please sign in to comment.