You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Patrick Mueller (Commented) (JIRA)" <ji...@apache.org> on 2012/03/30 00:09:26 UTC
[jira] [Commented] (CB-413) Node based tests are useless in Windows
[ https://issues.apache.org/jira/browse/CB-413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13241853#comment-13241853 ]
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: https://issues.apache.org/jira/browse/CB-413
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira