cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-413) Node based tests are useless in Windows
Date Thu, 29 Mar 2012 22:09:26 GMT


Patrick Mueller commented on CB-413:

The Contextify dependency comes via jsdom. 

Note that Contextify is also a problem on the Mac, for some versions of node, due to some
confusion re:32/64 bit compilation, or something.

So, it would be good to replace jsdom with something else.

Note, I've already been bugging folks about lingering {{alert()}}'s in the code base, which
also do not work in node.  I think we should look at a goal of making the Cordova base built-in
plugins runnable in node without hacks like jsdom.  Namely, our own hack.  New module for
node, in {{test}} called {{window-emulator.js}} or something, that we require from {{runner.js}}.
 Create a new fake window object, add it to node's {{global}}.  I assume bits of {{document}}
are required as well.

> Node based tests are useless in Windows
> ---------------------------------------
>                 Key: CB-413
>                 URL:
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.5.0
>         Environment: Windows
>            Reporter: Jesse MacFadyen
>            Assignee: Filip Maj
>              Labels: PITA
>             Fix For: 1.7.0
> The node based tests depend on Contextify which is not avaiable for windows.
> As a result, I currently have to manually step through code, add console.logs, and alerts,
and other less than optimal methods for verifying the correctness of the output code.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message