Commit Graph

791 Commits (2b83a522516af90f14d179699d8b6bdb6b5f74dd)

Author SHA1 Message Date
Ariya Hidayat 2b83a52251 Implement require('webpage').
This is mostly based on Ivan's work, see
https://github.com/ariya/phantomjs/pull/153

window.WebPage still works, it is not recommended and will be
deprecated.

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-08 17:32:31 -07:00
Ariya Hidayat b412aba06d bootstrap.js: Reindent properly. 2011-09-08 13:25:44 -07:00
Ariya Hidayat 6a79ea7e6d Implement require('fs').
This is mostly based on Ivan's work, see
https://github.com/ariya/phantomjs/pull/153

http://code.google.com/p/phantomjs/issues/detail?id=47
2011-09-08 10:00:07 -07:00
Ariya Hidayat 67be09ec80 Update ChangeLog. 2011-09-08 07:34:19 -07:00
Ariya Hidayat 080eb26a11 Add the proper *.js files to OTHER_FILES. 2011-09-08 07:15:13 -07:00
Ariya Hidayat d94b0c4fbb Fix missing rename from commit 059e7258. 2011-09-07 20:50:02 -07:00
Ariya Hidayat e45c5328b9 CoffeeScript version of unrandomize example. 2011-09-07 17:52:58 -07:00
Ariya Hidayat 059e72588c Rename option/config to localToRemoteUrlAccess(Enabled). 2011-09-07 09:27:20 -07:00
Ariya Hidayat d35f81bbda Decouple static helper methods from a class. 2011-09-06 17:00:59 -07:00
Ariya Hidayat bc348c5a35 Give function parameter a proper name. 2011-09-06 17:00:59 -07:00
Ariya Hidayat 962f99fa77 Fix typo in the method name. 2011-09-06 17:00:55 -07:00
Ariya Hidayat e14c07f288 Fix member variable initialization order. 2011-09-06 16:38:51 -07:00
Ariya Hidayat 07c6eb81f5 Sort include files alphabetically. 2011-09-06 16:37:54 -07:00
Ariya Hidayat 3dc9fe53a0 Disk cache object is private for network access. 2011-09-06 16:36:23 -07:00
Ariya Hidayat c0e179d59e Do not manage object lifetime, rely on Qt for that. 2011-09-06 16:35:19 -07:00
Ariya Hidayat cebe64ec31 Config to limit the disk cache size.
Based on the previous patch at https://github.com/ariya/phantomjs/pull/144.

http://code.google.com/p/phantomjs/issues/detail?id=220
2011-09-06 16:33:11 -07:00
Ariya Hidayat 7aa5ec5347 Do not use empty string literal for the default parameter. 2011-09-06 16:01:19 -07:00
Ariya Hidayat 5753e739a8 Merge pull request #150 from Roejames12/master
More features
2011-09-05 18:44:04 -07:00
Ariya Hidayat d29fb285a8 Merge pull request #152 from durham-university/warnings-fixes
Fixes a couple of compiler warnings
2011-09-05 18:43:42 -07:00
Alex Whitman 774070809f Fixes a couple of compiler warnings
* Unused parameter in networkaccessmanager.cpp
* No newline at the end of networkreplyproxy.cpp
2011-09-05 15:23:52 +01:00
IceArmy 8d754a3e95 Remove fs.move; it's already implemented in filesystem-shim 2011-09-04 22:43:24 -07:00
IceArmy c3262dcb9b Regenerate resources 2011-09-04 22:08:00 -07:00
IceArmy bb1a6fa838 Implement copyTree in filesystem-shim 2011-09-04 22:07:17 -07:00
IceArmy afe59b87dc Merge branch 'master' of https://github.com/ariya/phantomjs 2011-09-04 22:00:26 -07:00
Ariya Hidayat 7cd76309e6 Merge pull request #151 from detro/dev-commonjs_fileio
Last API
2011-09-04 21:19:15 -07:00
Ivan De Marino 88991207c2 Added "copyTree(source, destination)" to the set of File API.
* This is the last API
* I added tests accordingly
* Test could be improved with a proper recursive comparison
* Or, if we introduce "phantom.exec", we could just run a "diff -rq" :)
2011-09-04 23:42:54 +01:00
Ivan De Marino 8c15c80b14 Renamed "fs-shim.js" to "fileystem-shim.js" to ensure name consistency. 2011-09-04 21:26:11 +01:00
IceArmy a323161a56 Add HTTP Basic authentication support
Digest, and NTLM might also be supported, but is untested
2011-09-04 03:23:58 -07:00
IceArmy aaabac948c Regenerate resources 2011-09-04 02:51:26 -07:00
IceArmy b5899f9064 Added ability to use JSON config files to set command-line arguments 2011-09-04 02:46:19 -07:00
Ariya Hidayat 5889ef75e9 Merge pull request #149 from Roejames12/master
Tons of updates :)
2011-09-04 00:24:29 -07:00
Ariya Hidayat c4a1081e54 Merge pull request #147 from durham-university/http_auth
Added HTTP Basic authentication support
2011-09-04 00:24:09 -07:00
IceArmy d4fe103a66 Whoops! self.parent != self.m_parent 2011-09-04 00:04:12 -07:00
IceArmy f786a4b864 Regenerate resources 2011-09-03 23:52:57 -07:00
IceArmy 5f69a34a4f Add execjosh to webpage-shim copyrights 2011-09-03 23:52:36 -07:00
IceArmy 189db2f520 Remove unneeded fs.umask 2011-09-03 23:44:42 -07:00
IceArmy 1f90c8b9f3 Regenerate resources 2011-09-03 22:58:33 -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 3410697177 Merge branch 'master' of https://github.com/ariya/phantomjs 2011-09-02 22:19:22 -07:00
Paul Dixon 461d533348 Removing unnecessary Terminal include 2011-09-02 17:47:33 +02:00
mintbridge af71868c23 add basic http auth support to networkaccessmanager, and add the ability to pass the auth credentials in from the command line 2011-09-02 16:35:58 +01:00
Ariya Hidayat 2d9f0424e4 Merge branch 'master' of github.com:ariya/phantomjs 2011-09-01 18:06:44 -07:00
Ivan De Marino f83b9a5ba7 Added "touch(path)" to the FS API
* Implemented in the JS Shim
* Added test accordingly
2011-09-01 18:06:30 -07:00
Ivan De Marino 750e1e98c4 Added "fs.move(source, dest)" to the set of FS API.
* Added tests accordingly
* The implementation is a pure JS shim
2011-09-01 18:06:30 -07:00
Ivan De Marino 31c2decbd3 Added "copy(source, dest)" to the set of FS API.
* Also, added test case accordingly.
2011-09-01 18:06:30 -07:00
Ivan De Marino 12171fc9c6 Improving compliancy of "remove*" Filesystem API. 2011-09-01 18:06:30 -07:00
Ivan De Marino 715f1a7fc3 Refactored the JS Shims to be isolated in their own file.
Also, refactored some "too cautious" code to load the shim.

PS I don't grasp 100% the point of "Terminal". Wouldn't qDebug() be enough? What am I missing?
2011-09-01 18:06:30 -07:00
Ariya Hidayat d243154c2e Merge branch 'master' of github.com:ariya/phantomjs 2011-09-01 17:38:14 -07:00
Ariya Hidayat a0b97e8c6f Mac OS X build script: use 4.7.4, static build QtWebKit and PhantomJS. 2011-09-01 17:37:50 -07:00
IceArmy 1f7cb51780 Convert all Qt api's to api 2 2011-09-01 16:04:23 -07:00