Commit f2a65c66 f2a65c66c80684277c1e57aaff1bfd07a6a3eaa6 by Nicolas Perriault

Merge pull request #554 from jayseeg/copy-update-selector-docs

refs #545 - Copy update in docs. Updated the selector doc page to use 't...
2 parents 76b7f73f eed0592d
...@@ -52,7 +52,7 @@ Or if you're using the :doc:`testing framework <testing>`:: ...@@ -52,7 +52,7 @@ Or if you're using the :doc:`testing framework <testing>`::
52 52
53 casper.test.begin('The heading exists', 1, function suite(test) { 53 casper.test.begin('The heading exists', 1, function suite(test) {
54 casper.start('http://domain.tld/page.html', function() { 54 casper.start('http://domain.tld/page.html', function() {
55 this.assertExists('h1.page-title'); 55 test.assertExists('h1.page-title');
56 }).run(function() { 56 }).run(function() {
57 test.done(); 57 test.done();
58 }); 58 });
...@@ -62,9 +62,9 @@ Some other convenient testing methods are relying on selectors:: ...@@ -62,9 +62,9 @@ Some other convenient testing methods are relying on selectors::
62 62
63 casper.test.begin('Page content tests', 3, function suite(test) { 63 casper.test.begin('Page content tests', 3, function suite(test) {
64 casper.start('http://domain.tld/page.html', function() { 64 casper.start('http://domain.tld/page.html', function() {
65 this.assertExists('h1.page-title'); 65 test.assertExists('h1.page-title');
66 this.assertSelectorHasText('h1.page-title', 'Hello'); 66 test.assertSelectorHasText('h1.page-title', 'Hello');
67 this.assertVisible('footer'); 67 test.assertVisible('footer');
68 }).run(function() { 68 }).run(function() {
69 test.done(); 69 test.done();
70 }); 70 });
......