Last active
August 29, 2015 14:21
-
-
Save martin-stone/cf99855f4a61f491dbf4 to your computer and use it in GitHub Desktop.
Repro code for Pixi bind() failure in PhantomJS 1.x
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
Drop pixi.js alongside these files. | |
Run | |
npm install | |
grunt | |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
jasmine: { | |
test: { | |
src: ['*.js', '!*Spec.js'], | |
options: { | |
keepRunner: true, | |
summary: true, | |
specs: ['*Spec.js'], | |
template: require('grunt-template-jasmine-requirejs'), | |
templateOptions: { | |
requireConfig: { | |
baseUrl: '.', | |
} | |
}, | |
} | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-contrib-jasmine'); | |
grunt.registerTask('default', ['jasmine:test']); | |
}; |
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
define(function (require) { | |
"use strict"; | |
var PIXI = require("pixi"); | |
describe("It would be nice if Pixi", function() { | |
it("works in PhantomJS 1.x", function() { | |
expect(PIXI.autoDetectRenderer(100,100)).toBeTruthy(); | |
}); | |
}); | |
}); |
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
{ | |
"name": "pixitest", | |
"version": "0.1.0", | |
"devDependencies": { | |
"grunt": "~0.4.5", | |
"grunt-contrib-jasmine": "~0.8.2", | |
"grunt-contrib-requirejs": "~0.4.4", | |
"grunt-template-jasmine-requirejs": "~0.2.3" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment