Commit 2276b8d6 2276b8d648629d7f333f45c9e97004c1e0af12d3 by Nicolas Perriault

added supplementary test to check for a valid __utils__ instance in child frames

1 parent 2c0090b3
...@@ -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() {
......