javascript - Bug in my test or suggestions for debugging support for DalekJS / PhantomJS? -


i'm having crack @ using dalekjs way debug both ui , js sides of library i'm working on.

i have html page loads in js files follows:

<script src="./../../../app/scripts/focusable-item.js"></script> <script src="./../../../app/scripts/focus-controller.js"></script> <script src="./../../../app/scripts/generic-focusable-item.js"></script> <script src="./../../../app/scripts/main.js"></script> 

then in tests, ensure these accessible page, example:

'test focuscontroller loaded': function (test) {     test         .open('http://localhost:9000/grid-left-top.html')         .execute(function () {             try {                 new focuscontroller();             } catch (exception) {                 this.assert.ok(false, 'failed create focuscontroller: ['+exception+']');                 return;             }              this.assert.ok(true);         })         .done(); } 

i'm getting exception variables focuscontroller can't found, page loads fine when loaded manually in chrome , firefox, have idea's on following:

  • should wait page load fully? if how?
  • are there known gotchas when using phantomjs in terms of js support?
  • any guidance on how debug further?

cheers, matt

figured out issue 1 set of grunt file , test server kicked off.

essentially js files couldn't found, figured out running test server , loading page through rather load html file browser.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -