Commit Graph

26 Commits (667c58542481eeeeb8394f01f723e0edf5dddfe7)

Author SHA1 Message Date
Milian Wolff 73705e484b first work towards a WebServer
this is the minimal server that gets properly embedded into
the phantomjs space but the .listen api is missing actually
useful options (incoming request and ability to write to client)
2011-11-15 13:44:47 +01:00
IceArmy 826ab347e4 Refactoring on the module implementation.
Also implemented a new QPyFile class which is a wrapper
over QFile, supporting context managers. It greatly
improves code readability and reusability.

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-13 14:45:28 -07:00
IceArmy 0a25130e57 Implement require('webpage').
window.WebPage still works, it is not recommended and will be deprecated.

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-09 01:05:23 -07:00
IceArmy ad390acd96 Implement require('fs')
http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-08 15:24:50 -07:00
IceArmy cb216ccc6f Update FS API
Put shims into separate js files
All tests now pass again as well
2011-09-03 22:57:01 -07:00
IceArmy b1ba0ee118 Update bootstrap.js
Added copyrights
Allow for passing options to WebPage constructor
2011-08-31 11:43:15 -07:00
IceArmy fa285e0aca page.release() now works without JS shim. 2011-08-23 12:18:25 -07:00
IceArmy 2a909173f8 Update bootstrap 2011-08-23 01:43:43 -07:00
IceArmy 35950cade5 Update to lastest bootstrap 2011-08-21 14:21:46 -07:00
IceArmy fb93d49a7f Rename page.destroy() to page.release() 2011-08-21 14:12:15 -07:00
IceArmy 9057287171 Add callback for page initialization. #143 2011-08-20 18:50:56 -07:00
IceArmy 0159c0ed27 Use updated FS api
Fix bug where File.m_file didn't exist in __del__() if we used File.close() first
fs.removeTree now removes tree as well as all tree contents (files). This is for a functionality sync between PhantomJS and PyPhantomJS
All tests will now pass successfully
2011-08-19 00:07:24 -07:00
IceArmy d1c418ba07 Allow constructs such as: page.open(url, operation) 2011-07-04 11:06:34 -07:00
IceArmy 895923603f Fix memory issues by providing a way to truly delete WebPages. #154
Use page.destroy() to delete the page and regain the memory.
2011-07-02 17:08:06 -07:00
IceArmy da987ed034 Introducing File I/O API in PyPhantomJS.
* Inspired by HammerJS (see https://github.com/senchalabs/hammerjs)
* Not yet 100% complete
* Final aim is to provide a CommonJS/Filesystem compliant API (see http://wiki.commonjs.org/wiki/Filesystem)
2011-06-29 02:19:08 -07:00
IceArmy 2d6fa95171 Fixed issue with the open method that was preventing the use of POST unless a onLoadFinished handler was also passed in. 2011-06-26 18:28:00 -07:00
M. Scott Ford 95a7650be8 Correctly disconnected event handler. 2011-06-20 18:55:05 -04:00
IceArmy 69b06da140 Revert "Exit program properly when we call phantom.exit" 2011-06-20 10:14:08 -07:00
IceArmy 3d0c56af40 Fix the last problem with setTimeout and setInterval 2011-06-19 21:18:14 -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
IceArmy 520010fab8 Simplify bootstrap defineSetter code into function 2011-06-17 01:04:19 -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 0e3b765cc4 Add 'onResourceReceived' event, fired when resource is being received. 2011-06-08 03:13:18 -07:00
IceArmy 8314ad3197 Add "onResourceRequested" event, fired when request is started.
To see how this is being used, see the new examples/netsniff.js.

http://code.google.com/p/phantomjs/issues/detail?id=2
2011-06-07 02:31:33 -07:00
Francisco Souza 7342d0f818 Merge branch 'master' of https://github.com/ariya/phantomjs 2011-06-06 23:25:39 -03:00
Francisco Souza 9b12ce3f89 Changed the name of package from phantom to pyphantomjs 2011-06-05 19:55:07 -03:00