Commit 64b73b49 64b73b49810940c3538076572722b0cbe004d324 by Nicolas Perriault

wording - fixes #399

1 parent ea90cda7
...@@ -59,10 +59,10 @@ casper.test.begin('fill() tests', 15, function(test) { ...@@ -59,10 +59,10 @@ casper.test.begin('fill() tests', 15, function(test) {
59 }); 59 });
60 }); 60 });
61 61
62 casper.test.begin('unexistent fields', 1, function(test) { 62 casper.test.begin('nonexistent fields', 1, function(test) {
63 casper.start('tests/site/form.html', function() { 63 casper.start('tests/site/form.html', function() {
64 test.assertRaises(this.fill, ['form[action="result.html"]', { 64 test.assertRaises(this.fill, ['form[action="result.html"]', {
65 unexistent: 42 65 nonexistent: 42
66 }, true], 'Casper.fill() raises an exception when unable to fill a form'); 66 }, true], 'Casper.fill() raises an exception when unable to fill a form');
67 }).run(function() { 67 }).run(function() {
68 test.done(); 68 test.done();
......
...@@ -11,7 +11,7 @@ casper.test.begin('XPath tests', 6, function(test) { ...@@ -11,7 +11,7 @@ casper.test.begin('XPath tests', 6, function(test) {
11 test.assertDoesntExist({ 11 test.assertDoesntExist({
12 type: 'xpath', 12 type: 'xpath',
13 path: '/html/body/ol/li[2]' 13 path: '/html/body/ol/li[2]'
14 }, 'XPath selector does not retrieve an unexistent element'); 14 }, 'XPath selector does not retrieve a nonexistent element');
15 test.assertExists(x('/html/body/ul/li[2]'), 'selectXPath() shortcut can find an element as well'); 15 test.assertExists(x('/html/body/ul/li[2]'), 'selectXPath() shortcut can find an element as well');
16 test.assertEvalEquals(function() { 16 test.assertEvalEquals(function() {
17 return __utils__.findAll({type: 'xpath', path: '/html/body/ul/li'}).length; 17 return __utils__.findAll({type: 'xpath', path: '/html/body/ul/li'}).length;
......