added supplementary test to check for a valid __utils__ instance in child frames
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -11,6 +11,9 @@ casper.start('tests/site/frames.html', function() { | ... | @@ -11,6 +11,9 @@ casper.start('tests/site/frames.html', function() { |
11 | this.test.assertTitle('CasperJS frame 2'); | 11 | this.test.assertTitle('CasperJS frame 2'); |
12 | this.test.assertExists("#f2"); | 12 | this.test.assertExists("#f2"); |
13 | this.test.assertDoesntExist("#f1"); | 13 | this.test.assertDoesntExist("#f1"); |
14 | this.test.assertEval(function() { | ||
15 | return '__utils__' in window && 'getBinary' in __utils__; | ||
16 | }, '__utils__ object is available in child frame'); | ||
14 | }); | 17 | }); |
15 | 18 | ||
16 | casper.run(function() { | 19 | casper.run(function() { | ... | ... |
-
Please register or sign in to post a comment