IceArmy
49b630bd65
Make sure phantom.exit() really exits.
2011-06-20 23:54:03 -07:00
IceArmy
69b06da140
Revert "Exit program properly when we call phantom.exit"
2011-06-20 10:14:08 -07:00
IceArmy
d29c6732b5
Pass source and lineNumber for console redirection.
...
onConsoleMessage callback can handle two (optional) arguments, e.g.
page.onConsoleMessage = function (msg, lineNo, source) {
....
};
2011-06-19 22:34:29 -07:00
IceArmy
c44838227d
Fix bug where phantom.exit wouldn't exit properly
2011-06-19 17:26:39 -07:00
IceArmy
0e765f2a95
Exit program properly when we call phantom.exit
...
Previously, calling phantom.exit would set the exit code and finish running the
JavaScript until it was done, then exit the program with your code. Basically
it didn't actually exit the program. It caused many code fallthrough problems,
but is now fixed. :)
2011-06-19 01:20:45 -07:00
Ariya Hidayat
6e2b362850
Change scriptLookupDir to libraryPath.
2011-06-17 20:52:19 -07:00
IceArmy
61459fab45
Use phantom.scriptName instead of phantom.args[0]
2011-06-15 14:30:31 -07:00
IceArmy
309d3b5aaa
Allow scriptLookupDir to be set for phantom object
2011-06-12 14:38:34 -07:00
IceArmy
25ac6d35ca
phantom.injectJs should use the starting scripts directory, not the app directory
2011-06-12 14:04:07 -07:00
IceArmy
6056bc0fa9
Added support for 'injectJs' and 'includeJs'
...
Updated bootstrap.js to latest. Also contains:
- Fix reference to handlers in onResourceReceived
- Private handlers
- Use closure to make 'handlers' really private.
- Handle onAlert event just like the other events.
- Handle 'onConsoleMessage' event just like the other events.
2011-06-12 01:23:15 -07:00
IceArmy
a83d98b654
When sys.exit'ing, don't bother using qCritical, but just sys.exit with the message instead
2011-06-12 01:20:53 -07:00
IceArmy
3c665681f4
Fix possible bug where if CoffeeScript starts with a shebang (hashbang) #!, then // gets put in front of it; but this is not a comment in CoffeeScript, so it causes a problem with the conversion.
2011-06-08 19:00:07 -07:00
IceArmy
d4548b9ad9
Transform all yes,no args into True,False in parseArgs()
2011-06-08 03:14:13 -07:00
Francisco Souza
c8dfe1e30a
Merge branch 'master' of git://github.com/ariya/phantomjs
2011-06-05 20:00:43 -03:00
Francisco Souza
9b12ce3f89
Changed the name of package from phantom to pyphantomjs
2011-06-05 19:55:07 -03:00