Commit 1b545611 1b5456116b441ccdc6534356413891c752d9b462 by Nicolas Perriault

removed erroneous args in suites

1 parent b25bf1f1
...@@ -4,7 +4,7 @@ var utils = require('utils'), ...@@ -4,7 +4,7 @@ var utils = require('utils'),
4 t = casper.test, 4 t = casper.test,
5 x = require('casper').selectXPath; 5 x = require('casper').selectXPath;
6 6
7 casper.test.begin('utils.betterTypeOf() tests', function(casper) { 7 casper.test.begin('utils.betterTypeOf() tests', function() {
8 var testCases = [ 8 var testCases = [
9 {subject: 1, expected: 'number'}, 9 {subject: 1, expected: 'number'},
10 {subject: '1', expected: 'string'}, 10 {subject: '1', expected: 'string'},
...@@ -24,7 +24,7 @@ casper.test.begin('utils.betterTypeOf() tests', function(casper) { ...@@ -24,7 +24,7 @@ casper.test.begin('utils.betterTypeOf() tests', function(casper) {
24 this.done(testCases.length); 24 this.done(testCases.length);
25 }); 25 });
26 26
27 casper.test.begin('utils.cleanUrl() tests', function(casper) { 27 casper.test.begin('utils.cleanUrl() tests', function() {
28 var testCases = { 28 var testCases = {
29 'http://google.com/': 'http://google.com/', 29 'http://google.com/': 'http://google.com/',
30 'http://google.com': 'http://google.com/', 30 'http://google.com': 'http://google.com/',
...@@ -43,7 +43,7 @@ casper.test.begin('utils.cleanUrl() tests', function(casper) { ...@@ -43,7 +43,7 @@ casper.test.begin('utils.cleanUrl() tests', function(casper) {
43 this.done(Object.keys(testCases).length); 43 this.done(Object.keys(testCases).length);
44 }); 44 });
45 45
46 casper.test.begin('utils.clone() tests', function(casper) { 46 casper.test.begin('utils.clone() tests', function() {
47 var a = {a: 1, b: 2, c: [1, 2]}; 47 var a = {a: 1, b: 2, c: [1, 2]};
48 this.assertEquals(utils.clone(a), a); 48 this.assertEquals(utils.clone(a), a);
49 var b = [1, 2, 3, a]; 49 var b = [1, 2, 3, a];
...@@ -51,7 +51,7 @@ casper.test.begin('utils.clone() tests', function(casper) { ...@@ -51,7 +51,7 @@ casper.test.begin('utils.clone() tests', function(casper) {
51 this.done(2); 51 this.done(2);
52 }); 52 });
53 53
54 casper.test.begin('equals() tests', function(casper) { 54 casper.test.begin('equals() tests', function() {
55 this.assert(utils.equals(null, null), 'equals() null equality'); 55 this.assert(utils.equals(null, null), 'equals() null equality');
56 this.assertNot(utils.equals(null, undefined), 'equals() null vs. undefined inequality'); 56 this.assertNot(utils.equals(null, undefined), 'equals() null vs. undefined inequality');
57 this.assert(utils.equals("hi", "hi"), 'equals() string equality'); 57 this.assert(utils.equals("hi", "hi"), 'equals() string equality');
......