cobaltians / Cobalt

Cobalt is a web and native framework to create mobile applications that can mix web technologies and native technologies.
http://cobaltians.org
MIT License
71 stars 14 forks source link

A chrome plugin to simulate cobalt events! #15

Open baptistejamin opened 10 years ago

baptistejamin commented 10 years ago

It's cool be cool to develop faster to simulate cobalt event like does Ripple.

It could simulate console.log to cobalt.log, it could create pulltorefresh events, ...

ggendre commented 10 years ago

did you see the Debug In Browser page in the wiki ? https://github.com/cobaltians/cobalt/wiki/Debuging%20in%20the%20browser

It's explained how to see logs in the browser and call cobalt events.

For example, to fire a pullToRefresh event, just write this in the JS console :

cobalt.userEvents.pullToRefresh()

And if you defined a pullToRefresh handler it should work. I agree we could improve this more. Never tried Ripple yet.

If you have ideas on how to do this, share with us :)

baptistejamin commented 10 years ago

Yeah, i'd see that, the Ripple plugin could just be an enhencement for lazy developpers.

ggendre commented 9 years ago

to complete my answer, there is a "debug in browser" page in the wiki : https://github.com/cobaltians/cobalt/wiki/Debugging-in-the-browser