Merge pull request #554 from jayseeg/copy-update-selector-docs
refs #545 - Copy update in docs. Updated the selector doc page to use 't...
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -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 | }); | ... | ... |
-
Please register or sign in to post a comment