Commit Graph

1683 Commits (235d072db5dc3d9b82d745eb817bfeddcba38595)

Author SHA1 Message Date
IceArmy 198c13d195 - Migrated from Qt's QFile() method of opening files to Python's open() - Speed test shows that open() is faster at the core
- Fixed subtle bug where loadScript's filename identifier for the cache was not always the same (thereby not loading the cached copy)
2011-03-16 22:24:04 -07:00
IceArmy 55c7a4f620 Change if in chooseFile to be 'if tag in tagList' instead of 'if tagList.get(tag)'
Cache scripts using phantom.loadScript. Not much speed improvement, but when you're loading a coffee script, there is a huge speed improvement as the converted script is already cached and doesn't need to be re-compiled.
Revert phantom.render (function is supposed to return true on success!)
2011-03-16 17:17:51 -07:00
IceArmy ac39de6efa Remove -u option
Fixed help message to show "tag:file" and not just "file"
2011-03-16 00:53:36 -07:00
IceArmy a731e6c4d7 Added Python PhantomJS project 2011-03-15 22:18:01 -07:00
Ivan De Marino 3b4163521f Merge remote-tracking branch 'upstream/master' 2011-03-14 22:53:27 +00:00
Ariya Hidayat a7a1322ea1 Fixed issue #19: option for setting the proxy.
Based on the original patch by Clint Berry.
2011-03-13 21:35:49 -07:00
Ariya Hidayat 28929a3069 follow.coffee: CoffeeScript version of follow.js. 2011-03-12 10:45:56 -08:00
Ariya Hidayat f32c232cb0 follow.js: Adding lojjic. 2011-03-12 10:20:04 -08:00
Ariya Hidayat 1df1bc9590 follow.js: Find the number of twitter following and followers. 2011-03-10 21:43:37 -08:00
Ivan De Marino 6ad3352519 Minor tweaks for qDebug messages 2011-03-04 10:13:32 +00:00
Ariya Hidayat 158362ed16 Start to implement support for CoffeeScript. 2011-03-02 00:59:07 -08:00
Ariya Hidayat 3e60ae6b9b Show tweets from SenchaInc instead. 2011-03-02 00:59:07 -08:00
Ivan De Marino 25cf54784f Added "phantom.loadJs" and "phantom.includeJs", plus more "qDebug" usage
* "phantom.loadJs()" loads a JS file and executes it's content within the current Document Context. It's synchronous.
* "phantom.includeJs()" adds a <script> tag include. It's asynchronous and accepts as second parameter a "callback", fired when the js file has been loaded.
* Some more qDebug() calls
* qDebug() output disabled by default in the .pro file

NOTE: I'm adding qDebug() calls to make development of phantomjs easier and "debuggable"
2011-03-01 18:16:44 +00:00
Ivan De Marino ee1c5afc32 Merge branch 'master' of https://github.com/detro/phantomjs 2011-03-01 12:09:12 +00:00
Ivan De Marino 8951859a53 Added "phantom.simulateMouseClick" and other minors for debugging.
* 'phantom.simulateMouseClick' accepts a 'selector' and clicks on every element that matches the selector
* Added a couple of 'qDebug()' to help debugging PhantomJS
2011-03-01 12:09:03 +00:00
Ivan De Marino 9c74adeeca Enhanced the "usage" message and fixed misdocumented behaviour of "--load-plugins"
* Now the "usage" shows all the options that are currently supported by phantomjs from the command line
* The default behaviour for the option "--load-plugins" is now fixed (to "no")
2011-02-28 23:17:59 +00:00
Ariya Hidayat 378406b89d Support for rasterizing as GIF image. 2011-02-19 22:47:15 -08:00
Ariya Hidayat e15834522d colorwheel.js: Example on using Canvas to produce the color wheel. 2011-02-17 00:38:44 -08:00
Ariya Hidayat de8a2ca270 Update ChangeLog. 2011-02-13 22:50:00 -08:00
Ariya Hidayat 84a594112e Allow plugins loading (by default, plugins are not loaded).
This is issue #14:
http://code.google.com/p/phantomjs/issues/detail?id=14
2011-02-13 22:44:43 -08:00
Ariya Hidayat f827d88818 Allow disabling the loading of images.
This is issue #35:
http://code.google.com/p/phantomjs/issues/detail?id=35
2011-02-13 21:29:58 -08:00
Ariya Hidayat 799fa0b210 Hide command-line options from the script.
For example, the argument to allow file upload now is part of
phantomjs invocation:

    phantomjs --upload-file tag=/path/to/file script.js A B C

which means script.js only "sees" A, B, C in phantom.args array.
2011-02-13 20:59:37 -08:00
Ariya Hidayat bc6792769b Coding style fixes. 2011-02-13 12:01:12 -08:00
Matthias 5a7f742c11 File Uploads
pass --upload-file fileTag=/path/to/file as an argument and set the file of <input type="file" id="foo"/> by calling phantom.setFormInputFile(document.getElementById('foo'), 'fileTag');
2011-02-06 19:55:04 +01:00
Matthias e4a374185b Comment out shebang 2011-02-06 13:53:30 +01:00
Ariya Hidayat 9eb2dfb505 Really make it compile with Qt 4.6. 2011-01-29 19:17:10 -08:00
Ariya Hidayat 4baf0269ba Make it compile with Qt 4.6. 2011-01-29 19:13:19 -08:00
Ariya Hidayat 6e4aeb1077 Bump version. 2011-01-29 19:07:35 -08:00
Ariya Hidayat 7196fb7d5c Update the change log. 2011-01-28 23:19:14 -08:00
Ariya Hidayat dd0ed7facd Merge branch 'master' of https://github.com/mattn/phantomjs 2011-01-28 23:08:49 -08:00
Ariya Hidayat 32c5f02f2b QUnit driver should not print the status multiple times.
If the test suite reloads the page over and over again, only one
final message should be displayed. Detect this by adding one more
state to the logic.
2011-01-28 08:43:18 -08:00
mattn ee54806abc load script as utf-8 encoding. 2011-01-28 20:04:00 +09:00
mattn c0398f3fd7 use setUseSystemConfiguration(true). 2011-01-28 20:02:54 +09:00
Ariya Hidayat 4de99130c5 Add driver for running QUnit test suite.
Courtesy of Łukasz Korecki (https://gist.github.com/796548).
2011-01-27 22:38:58 -08:00
Ariya Hidayat 0faca2649e Fix coding style. 2011-01-27 16:51:43 -08:00
jdalton 6bb2f1b4a1 phantomjs: Allow PhantomJS to build with Qt 4.5 which is available for Cygwin. [jddalton] 2011-01-27 18:57:35 -05:00
Alessandro Portale d14be77e56 Issue 20: JPG transparent colour is black.
Filling QImage with transparent white instead of transparent
black. For an artifact free rendering of a transparent web
page into PNG, Format_ARGB32 is needed instead of
Format_ARGB32_Premultiplied.
2011-01-27 16:54:58 +01:00
Ariya Hidayat a8280b1eaf Fix wrong markdown. 2011-01-25 19:17:26 -08:00
Ariya Hidayat 8c655388aa Mention the announcement blog post. 2011-01-25 19:15:10 -08:00
Ariya Hidayat 75506e37a5 Add ChangeLog. 2011-01-17 02:18:14 -08:00
Ariya Hidayat 7f9e03ffad Change phantom.arguments to phantom.args.
This is explained in
http://code.google.com/p/phantomjs/issues/detail?id=16:

'arguments' is reserved word.

Reported by: Nicolas Ferrero.
2011-01-14 22:24:47 -08:00
Alessandro Portale 32701e9bba Avoid crash with post-exit page loading.
If the javascript calls phantom.exit(), and afterwards
phantom.open(), if may happen that the open() triggers a
loadFinished() signal happens after Phantom was destroyed.
Result: Crash in Phantom::finish().

Workaround: Disconnect from loadFinished() when exit() is
called.
2011-01-09 22:16:28 +01:00
Ariya Hidayat bb5cbd63a1 Slightly more verbose README. 2011-01-02 12:21:14 -08:00
Ariya Hidayat 4113063283 direction.js: Fix the logic and simplify the extraction. 2011-01-02 10:39:50 -08:00
Ariya Hidayat 5b9d091585 Recognize PDF in phantom.render function. 2011-01-01 20:18:39 -08:00
Ariya Hidayat 2c4adf746f Clarify the features supported natively. 2011-01-01 08:44:25 -08:00
Ariya Hidayat 3a0d0886b6 Provide an API to get PhantomJS version. 2011-01-01 08:29:03 -08:00
Ariya Hidayat 0110913c1f Fix the logic structure in the weather example. 2010-12-31 22:17:51 -08:00
Ariya Hidayat 04cc4193ca Change phantom.storage to phantom.state. 2010-12-31 22:09:02 -08:00
Ariya Hidayat 6979a02837 JavaScript alert() prints the message to stdout. 2010-12-31 20:23:55 -08:00