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
Ivan De Marino
96641ea8a1
Added "touch(path)" to the FS API
...
* Implemented in the JS Shim
* Added test accordingly
2011-09-01 00:34:55 +01:00
Ivan De Marino
619d4b470f
Added "fs.move(source, dest)" to the set of FS API.
...
* Added tests accordingly
* The implementation is a pure JS shim
2011-09-01 00:14:17 +01:00
Ivan De Marino
f381f61c64
Added "copy(source, dest)" to the set of FS API.
...
* Also, added test case accordingly.
2011-09-01 00:01:40 +01:00
Ivan De Marino
cffd688efd
Improving compliancy of "remove*" Filesystem API.
2011-08-31 23:32:56 +01:00
Ivan De Marino
3401dd9f78
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-08-31 23:19:17 +01:00
Ariya Hidayat
4dca2b3d60
Fixed issue 212: build problem due to config.h.
...
Change <config.h> in the GIF code to "config.h" so that it is not
confused with PhantomJS' own config file.
2011-08-31 09:40:43 -07:00
Ariya Hidayat
868e751bea
Merge pull request #143 from execjosh/issue-206-web-page-init
...
Allow for passing options to WebPage constructor
2011-08-31 09:28:58 -07:00
Ariya Hidayat
8ebd446e58
Merge pull request #145 from detro/master
...
Comments stuff
2011-08-31 09:27:52 -07:00
Ivan De Marino
d8d88a3894
Added "Copyright..." line to files on which I worked on.
...
I tried to also add/remove based on the git history.
2011-08-31 16:29:40 +01:00
execjosh
d792cd8d05
Remove ini file related stuff from Config
2011-08-30 00:50:59 +09:00
execjosh
3c4699b609
Add "--config" command-line option
2011-08-30 00:45:39 +09:00
execjosh
26f7185bf6
Implement JSON config loader
2011-08-30 00:43:41 +09:00
execjosh
94c5e270cf
Remove superfluous inclusion of QApplication
2011-08-29 23:24:45 +09:00
execjosh
8f89ddc9a3
Make Config extend QObject
2011-08-29 23:23:01 +09:00
execjosh
da97b9abbf
Fixup copyInto function
...
* Drop any undefined values
* Copy non-objects, too
2011-08-28 23:12:52 +09:00
execjosh
74db4807d5
Actually add parameter to WebPage constructor
2011-08-28 22:29:31 +09:00
execjosh
3c790d80a8
Migrate command-line argument processing logic to Config
2011-08-28 22:13:57 +09:00
execjosh
9c94a8ef24
Rename ini file code to "Config::loadIniFile"
2011-08-28 21:12:40 +09:00
execjosh
ad53b9bb3e
Rename "PhantomConfig" to "Config"
2011-08-28 21:11:20 +09:00
execjosh
102b421617
Allow for passing options to WebPage constructor
2011-08-28 19:11:24 +09:00
execjosh
1461ac012d
Implement config file (.phantomjsrc)
2011-08-27 03:03:06 +09:00
execjosh
f5f436160c
Migrate page settings to PhantomConfig
2011-08-27 03:02:59 +09:00
execjosh
a445b2d7b9
Migrate network access manager settings to PhantomConfig
2011-08-27 03:02:51 +09:00
execjosh
5441f51607
Migrate proxy settings to PhantomConfig
2011-08-27 03:02:43 +09:00
execjosh
a75f7c9dc3
Create PhantomConfig and migrate output and script encoding settings
2011-08-27 03:02:35 +09:00
Ariya Hidayat
66460a7793
Fix building with Qt 4.6.
2011-08-24 05:48:07 -07:00
Ariya Hidayat
6fe972d0a8
Implement WebPage's release() function in pure C++.
2011-08-23 18:53:53 -07:00
Ariya Hidayat
08e6c5b8cd
Merge pull request #132 from execjosh/issue-194-default-encoding-utf8
...
[BUGFIX] issue 194: make default encoding UTF-8
2011-08-22 09:02:29 -07:00
Ariya Hidayat
d3cb9fe750
Fix typo.
2011-08-21 22:07:33 -07:00
Ariya Hidayat
c75e595ea4
Merge branch 'master' of github.com:ariya/phantomjs
2011-08-21 15:23:07 -07:00
IceArmy
fb93d49a7f
Rename page.destroy() to page.release()
2011-08-21 14:12:15 -07:00
IceArmy
3caac5a5a3
Rename "XSSAuditing" to "XSSAuditingEnabled"
2011-08-21 14:08:14 -07:00
execjosh
d78b1e1f5e
[BUGFIX] issue 194: make default encoding UTF-8
2011-08-21 19:48:02 +09:00
Ariya Hidayat
f95a39230b
Clean up WebPage#open, use named arguments.
2011-08-21 01:34:14 -07:00
Ariya Hidayat
6e4c1a40f2
Simplify WebPage#open, first argument is always url.
2011-08-21 01:25:43 -07:00
Ariya Hidayat
34a7389a2c
Make Terminal class a real singleton.
2011-08-21 00:47:34 -07:00
Ariya Hidayat
83922ada2f
Ensure consistent #ifdef guard.
2011-08-21 00:30:15 -07:00
Ariya Hidayat
4a96278d1b
Include usage.txt in the project file.
2011-08-21 00:21:15 -07:00
Ariya Hidayat
d3f10a8e18
Make CSConverter a real singleton.
2011-08-21 00:16:38 -07:00
Ariya Hidayat
944056ce4a
Remove unused m_convert from Phantom class.
2011-08-20 23:52:23 -07:00
Ariya Hidayat
52746493c4
Remove useless extra empty line.
2011-08-20 23:45:21 -07:00
Ariya Hidayat
2dbdc36598
Reduce JSLint warnings on the bootstrap code.
2011-08-20 23:21:39 -07:00
Ariya Hidayat
776da4987f
Add JSLint directives for the bootstrap code.
2011-08-20 23:11:14 -07:00
Ariya Hidayat
699f4f76f2
Fix coding style (no tab, 4 spaces).
2011-08-20 22:34:11 -07:00
Ariya Hidayat
9d19e02355
Remove stray character in the issue link.
2011-08-20 22:07:18 -07:00
Ariya Hidayat
e679640700
Merge branch 'master' of github.com:ariya/phantomjs
2011-08-20 18:13:38 -07:00
Ariya Hidayat
319fd80ec3
Add callback for page initialization.
...
http://code.google.com/p/phantomjs/issues/detail?id=143
2011-08-20 17:57:01 -07:00
Ariya Hidayat
e79a51bdd8
Merge pull request #129 from Roejames12/QWebSettings
...
New page settings
2011-08-20 17:17:36 -07:00
IceArmy
8880edcf78
Remove settings: jsOpenWindows, jsAccessClipboard, siteSpecificQuirksMode
...
Renamed jsEnabled to javascriptEnabled
2011-08-20 16:49:36 -07:00
Niek
8deac1b8c6
Fix issue 128 and issue 193
2011-08-20 10:24:56 +02:00
IceArmy
33005c3957
Add a few new QWebSettings for page settings.
...
Among the most useful, is the jsEnabled setting, which allows you to disable JavaScript.
2011-08-19 15:47:34 -07:00
Ariya Hidayat
545ce2a2b9
Merge pull request #126 from execjosh/issue186-script-and-terminal-encoding
...
Issue186 script and terminal encoding
2011-08-16 13:46:18 -07:00
Ariya Hidayat
155054e671
Merge pull request #124 from jgornick/reply-proxy-issue-158
...
Updated the network access manager to use a proxied reply so the response
2011-08-16 12:20:49 -07:00
execjosh
4e7d3f1c18
Change javascript property from "encoding" to "outputEncoding"
2011-08-17 04:17:42 +09:00
Ariya Hidayat
2867e06c53
Merge pull request #125 from robterrell/049e1f50bd54429ea2e43207ab01e10c8021988e
...
Added functions to WebPage class to simulate mouse move, mouse up, and mouse down using Qt.
2011-08-16 12:17:36 -07:00
execjosh
682b3532be
Add command-line option to set encoding of starting script
2011-08-17 03:53:56 +09:00
execjosh
6254c84717
Add command-line option to set terminal output encoding
2011-08-17 03:49:12 +09:00
execjosh
c3d7b2e918
Add static UTF-8 instance to encoding
2011-08-17 03:33:15 +09:00
execjosh
ca92c9ff84
Allow startup script to set output encoding
2011-08-17 03:18:52 +09:00
execjosh
dc72101c10
Replace direct usage of stdout and stderr with terminal
2011-08-17 03:15:02 +09:00
execjosh
714a849374
Create registry to hold globally-accessible instances
2011-08-17 02:52:23 +09:00
execjosh
40625b4c53
Wrap stdout and stderr to control display encoding
2011-08-17 02:49:48 +09:00
execjosh
1710409215
Wrap QTextCodec to control encoding/decoding
2011-08-17 02:47:28 +09:00
Joe Gornick
578aa6c236
Updated the network access manager to use a proxied reply so the response bodies can be captured.
2011-08-14 03:41:39 -05:00
Ivan De Marino
0842485f62
Merge remote-tracking branch 'upstream/master' into dev-commonjs_fileio
2011-08-08 23:42:36 +01:00
Ivan De Marino
2c4ac33942
Filesystem API: completed the "Tests" API group from CommonJS/Filesystem definition.
...
* Tests provided in "fs-spec-04.js"
* I also slightly enriched the "jasmine-console.js" reporter to get a bit more info
2011-08-08 23:42:11 +01:00
Ariya Hidayat
f811e6ae1e
Merge pull request #122 from Roejames12/master
...
Updates
2011-08-08 15:35:32 -07:00
IceArmy
862dc6e017
Update CoffeeScript to 1.1.2
2011-08-08 15:12:57 -07:00
Rob Terrell
049e1f50bd
Added functions to WebPage class to simulate mouse move, mouse up, and mouse down. Also added click() convenience function, which combines a move, mousedown, and mouseup.
...
Added functions to simulate mouse move, mouse up, and mouse down events
in the Qt layer. For our uses, this was more reliable than creating
mouse events in javascript.
2011-08-07 09:29:50 -04:00
Ivan De Marino
e71a992dbd
Merge remote-tracking branch 'upstream/master'
2011-08-04 21:37:31 +01:00
Ariya Hidayat
f280e51c2c
Merge pull request #120 from detro/dev-commonjs_fileio
...
Filesystem API: completed the "Paths" API group from CommonJS/Filesystem
2011-08-01 22:43:44 -07:00
Bartosz Nitka
bb2adcc986
Prevent javascript timeout
...
"The script on this page appears to have a problem. Do you want
to stop the script ?" dialog should no longer show
2011-08-01 17:31:13 -07:00
Ivan De Marino
a47ee85d09
Filesystem API: completed the "Paths" API group from CommonJS/Filesystem definition.
...
* Tests provided in "fs-spec-03.js"
2011-08-02 00:47:43 +01:00
Ivan De Marino
f3a11cd224
Given the progress made by Alessandro with [ #140 ]( http://code.google.com/p/phantomjs/issues/detail?id=140 ),
...
we should consider re-instating this .pro option for Mac.
Yes, it will still show the Icon in the Dock, but we gain the static executable.
2011-08-01 22:40:07 +01:00
Kapil Reddy
6e39625ecf
added scrollPosition support in c++ version
2011-07-22 13:41:30 +05:30
Ivan De Marino
512ff9658e
Filesystem API: added the "Attributes" API group from CommonJS/Filesystem definition
...
* Tests for this new API are also provided
* The 'fs.size()' method is implemented with a shim in 'bootstrap.js' to cover the exception throwing behaviour
2011-07-22 00:29:25 +01:00
Ivan De Marino
49ee7b52fd
A bit more code doc
2011-07-20 22:43:34 +01:00
Ivan De Marino
21d633b786
Implement "fs.read" and "fs.write" in the JavaScript shim.
...
* I'd have to do it for throwing an exception in case of error anyway
* Updated a bit the code doc
2011-07-20 22:43:00 +01:00
Ivan De Marino
ad33cb5b0b
Note in the code what method I'm going to add to the "fs" object (update).
2011-07-20 22:42:48 +01:00
Ivan De Marino
540c6a6672
Note in the code what method I'm going to add to the "fs" object.
2011-07-20 22:42:30 +01:00
Erik Dubbelboer
b1d947dd51
added persistent cookie support
2011-07-19 19:32:42 +02: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
Alessandro Portale
c86d104c83
Remove obsolete #include <gifwriter.h>
2011-06-30 05:15:43 +02:00
Alessandro Portale
3fd978d6bf
List bootstrap.js in Qt Creator under "Other Files"
2011-06-30 05:13:52 +02:00
Ariya Hidayat
da749624a3
Merge pull request #99 from aportale/Issue_148
...
Fix crash on exit (Issues #136 , #148 and #149 )
2011-06-28 18:05:40 -07:00
Alessandro Portale
5acaa6b42d
Fix crash on exit (Issues #136 , #148 and #149 )
...
Workaround: Apparently, all QWebPages need to be deleted before
the QApplication gets destroyed.
2011-06-29 00:45:12 +02:00
Ivan De Marino
3807b9dc4d
Now, if "fs.open" fails, it throws an exception.
...
* This is implemented with a javascript-shim
2011-06-28 21:35:27 +01:00
Ivan De Marino
a0e1888c2c
Moved the "fs" object to be in the global/window space: will not be attached to the "phantom" object anymore.
...
* Once (and if) we implement support for CommonJS Module Loading, a "require("fs")" will be required.
2011-06-28 21:02:48 +01:00
Ivan De Marino
aad029e53f
Sorting out some nitpicks.
2011-06-28 13:24:24 +01:00
Ariya Hidayat
c5213b24b0
Revert "Mac OS X: No need to build as an application bundle."
...
This reverts commit c6db0354ea
.
2011-06-27 19:54:39 -07:00
Ivan De Marino
f4aa689ec7
A bit more compliancy with the CommonJS Filesystem/A draft specs.
...
* Renamed some methods to be more compliant with the specs
* Added some Directory/Tree specific ops
* Support for the open mode '+' (that is equivalent to 'a')
* See draft at: http://wiki.commonjs.org/wiki/Filesystem/A
2011-06-27 23:14:41 +01:00
Ivan De Marino
6b04ee23c1
Introducing File I/O API in PhantomJS.
...
* This is the squash of 30 commits, so it's meaty
* 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-27 23:14:05 +01:00
Ariya Hidayat
f25a7a66e5
Bump the Qt requirement to version >= 4.6.
...
Also, remove code branch for Qt 4.5.
2011-06-26 21:51:30 -07:00
Ariya Hidayat
c6db0354ea
Mac OS X: No need to build as an application bundle.
...
http://code.google.com/p/phantomjs/issues/detail?id=139
2011-06-26 00:03:18 -07:00
Ariya Hidayat
cf23a5c6e3
Bump unstable version.
2011-06-25 23:59:16 -07:00
M. Scott Ford
1b67c2b8c4
Fixed issue with the open method that was preventing the use of POST unless a onLoadFinished handler was also passed in.
2011-06-26 00:07:07 -04:00