Commit 46210431 4621043145b6c075eccc2a94bc3fbbc499bd1ae8 by Nicolas Perriault

moved testResults declaration to assert.js

1 parent 55529f98
1 var testResults = {
2 passed: 0,
3 failed: 0
4 };
5
1 phantom.Casper.extend({ 6 phantom.Casper.extend({
2 assert: function(condition, message) { 7 assert: function(condition, message) {
3 var status = '[PASS]'; 8 var status = '[PASS]';
......
...@@ -3,10 +3,7 @@ phantom.injectJs('tests/assert.js'); ...@@ -3,10 +3,7 @@ phantom.injectJs('tests/assert.js');
3 3
4 var casper = new phantom.Casper({ 4 var casper = new phantom.Casper({
5 verbose: true, 5 verbose: true,
6 }), testResults = { 6 });
7 passed: 0,
8 failed: 0
9 };
10 7
11 casper.start('tests/site/index.html', function(self) { 8 casper.start('tests/site/index.html', function(self) {
12 self.assertEvalEquals(function() { 9 self.assertEvalEquals(function() {
......