title: jasmine unit tests not executed in phantomjs script
body: <p>I've written a small script which loads my SpecRunner.html (jasmine unit tests) from disk.
  Although everything looks fine, the tests are not executed.
  Here is my code:</p>
  
  <pre><code>var page = require('webpage').create()
      , file = "./SpecRunnerCoverage.html" ;
  
  page.open(file, function (status) {
      var json = page.evaluate(function () {
          return window._yuitest_coverage;
      });
  
      console.log(JSON.stringify(json));
      phantom.exit();
  });
  </code></pre>
  
  <p>It is executed as follows:</p>
  
  <pre><code>$&gt; phantomjs myScript
  </code></pre>
  
  <p>From the code coverage data I can tell no test was executed. Is there anyway I can execute these tests ?</p>
  
  <p>Thanks a lot</p>
  
  <p>UPDATE: I just noticed that when I wrap a setTimeout around the evaluate function and delay the whole process, it works. Is there a better solution than a setTimeout ?</p>