Commit eed0592d eed0592dc1e26bb456a63acb09f72abb1526e067 by jayseeg

refs #545 - Copy update in docs. Updated the selector doc page to use 'test' ins…

…tead of 'this' since tester has been made a module.
1 parent 76b7f73f
...@@ -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 });
......