Change findOne() test to actually call findOne()
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -65,7 +65,7 @@ function fakeDocument(html) { | ... | @@ -65,7 +65,7 @@ function fakeDocument(html) { |
65 | casper.test.assertNot(clientutils.findOne('ol'), 'ClientUtils.findOne() can find a matching DOM element'); | 65 | casper.test.assertNot(clientutils.findOne('ol'), 'ClientUtils.findOne() can find a matching DOM element'); |
66 | // scoped | 66 | // scoped |
67 | var scope = clientutils.findOne('ul'); | 67 | var scope = clientutils.findOne('ul'); |
68 | casper.test.assertType(clientutils.findAll('li', scope), 'nodelist', 'ClientUtils.findAll() can find matching DOM elements within a given scope'); | 68 | casper.test.assertType(clientutils.findOne('li', scope), 'htmllielement', 'ClientUtils.findOne() can find a matching DOM element within a given scope'); |
69 | casper.test.assertType(clientutils.findOne(x('//li'), scope), 'htmllielement', 'ClientUtils.findOne() can find a matching DOM element using XPath within a given scope'); | 69 | casper.test.assertType(clientutils.findOne(x('//li'), scope), 'htmllielement', 'ClientUtils.findOne() can find a matching DOM element using XPath within a given scope'); |
70 | fakeDocument(null); | 70 | fakeDocument(null); |
71 | })(casper); | 71 | })(casper); | ... | ... |
-
Please register or sign in to post a comment