incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@gmail.com
Subject Re: [jira] [Resolved] (CB-929) Initialize the Cordova in chrome browser
Date Sun, 17 Jun 2012 20:16:34 GMT
This is really what ripple is kinda doing:

Github.com/blackberry/ripple-ui

Follow the cordova branch on:
Github.com/tinyhippos/ripple-ui

For the latest code emulating cordova.

Sent on the TELUS Mobility network with BlackBerry

-----Original Message-----
From: "Filip Maj (JIRA)" <jira@apache.org>
Date: Sun, 17 Jun 2012 19:59:42 
To: <callback-dev@incubator.apache.org>
Reply-To: callback-dev@incubator.apache.org
Subject: [jira] [Resolved] (CB-929) Initialize the Cordova in chrome browser


     [ https://issues.apache.org/jira/browse/CB-929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filip Maj resolved CB-929.
--------------------------

    Resolution: Not A Problem

I've set this issue to resolved. If you have more questions feel free to post them to this
issue.
                
> Initialize the Cordova in chrome browser
> ----------------------------------------
>
>                 Key: CB-929
>                 URL: https://issues.apache.org/jira/browse/CB-929
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: CordovaJS
>            Reporter: Phuong Nguyen
>            Assignee: Filip Maj
>              Labels: emulate, selenium, testing
>
> I want to be able to fully emulate phonegap in the browser environment so I can easily
verify them with selenium.
> The issue is, I cannot figure out a way to properly trigger the initialization (a.k.a
channel.onDeviceReady).
> So I'm loading the cordova-js and a mocking library (phonegap-desktop) into the webbrowser,
then I call this:
>   try{
>     cordova.require('cordova/channel').onNativeReady.fire();
>   }catch(e){
>     window._nativeReady = true;
>   }
> but then rather than initialize, Cordova (1.7.0) stops at this line:
>      if (!channel.onCordovaInfoReady.fired) {
>         utils.alert("ERROR: Attempting to call cordova.exec()" +
>               " before 'deviceready'. Ignoring.");
>         return;
>     }
> which then show an alert dialog and quit.
> Please advice

--
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

        
Mime
View raw message