Source

mobile-demo-set / static / sdk / command / vendor / nodejs / node_modules / jasmine-node / node_modules / jasmine-reporters / ext / phantomjs / examples / tweets.coffee

Full commit
1
2
3
4
5
6
7
8
if phantom.state.length == 0
    phantom.state = 'tweets'
    phantom.open 'http://mobile.twitter.com/sencha'
else
    list = document.querySelectorAll 'span.status'
    for elem, index in list
      console.log((index + 1) + ': ' + elem.innerHTML.replace(/<.*?>/g, ''))
    phantom.exit()