Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a test and written some code to make the test go green - yay
- Loading branch information
1 parent
0a48924
commit 3d2a3ec
Showing
5 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = class | ||
constructor: -> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
exports.Squash = class | ||
module.exports = | ||
Screen: require './screen' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{ | ||
'name': 'squash', | ||
'description': 'A 2D rendering engine', | ||
'keywords': ['html5', '2D', '2D rendering'], | ||
'author': 'Rasmus Bang Grouleff <rasmus@nerdd.dk>', | ||
'main': 'lib/squash.coffee', | ||
'version': '0.0.1-dev', | ||
'homepage': 'https://github.com/rbgrouleff/squash', | ||
'bugs': 'https://github.com/rbgrouleff/squash/issues', | ||
'repository': { | ||
'type': 'git', | ||
'url': 'git://github.com/rbgrouleff/Squash.git' | ||
"name": "squash", | ||
"description": "A 2D rendering engine", | ||
"keywords": ["html5", "2D", "2D rendering"], | ||
"author": "Rasmus Bang Grouleff <rasmus@nerdd.dk>", | ||
"main": "lib/squash.coffee", | ||
"version": "0.0.1-dev", | ||
"homepage": "https://github.com/rbgrouleff/squash", | ||
"bugs": "https://github.com/rbgrouleff/squash/issues", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/rbgrouleff/Squash.git" | ||
}, | ||
'devDependencies': { | ||
'stitch': '0.3.2', | ||
'janitor': '0.1.1' | ||
"devDependencies": { | ||
"stitch": "0.3.2", | ||
"janitor": "0.1.1", | ||
"jsdom": "0.2.10" | ||
}, | ||
'dependencies': { | ||
'coffee-script': '1.2.0' | ||
"dependencies": { | ||
"coffee-script": "1.2.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Janitor = require 'janitor' | ||
jsdom = require('jsdom').jsdom | ||
|
||
Squash = require '../.' | ||
|
||
module.exports = class extends Janitor.TestCase | ||
setup: -> | ||
document = jsdom "<html><body></body></html>", null, | ||
features: | ||
FetchExternalResources: false | ||
@canvas = document.createElement "canvas" | ||
|
||
'test instantiate Screen': -> | ||
screen = new Squash.Screen @canvas | ||
@assert screen |