Commit Graph

64 Commits (84a594112e56fcaf125be0a244e42327dd52d67c)

Author SHA1 Message Date
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
Ariya Hidayat 24d433ea13 Remove phantom.log, just use the de-facto console.log for logging. 2010-12-31 20:10:34 -08:00
Ariya Hidayat a2bec750cd technews.js: Snap Google News Sci/Tech as image. 2010-12-31 19:35:38 -08:00
Ariya Hidayat c5de293368 rasterize.js: Rasterize HTML/XML/SVG document to an image. 2010-12-31 18:27:15 -08:00
Ariya Hidayat 37d67f0395 Readd the render() function to render the web page to an image. 2010-12-31 17:07:25 -08:00
Ariya Hidayat a75e67a041 run-jasmine.js: Drive Jasmine-based tests. 2010-12-31 17:05:36 -08:00
Ariya Hidayat ad252166d7 Flattened frame and invisible scroll bars are better in headless. 2010-12-31 09:20:19 -08:00
Ariya Hidayat 069cf546f6 New property 'viewportSize' to read and modify the viewport size. 2010-12-31 09:11:02 -08:00
Ariya Hidayat 570eee099e Remove unused declarations. 2010-12-31 08:50:55 -08:00
Ariya Hidayat b2d8eca8c4 direction.js: Get driving direction using Google Maps Directions API. 2010-12-30 00:12:25 -08:00
Ariya Hidayat a580dcfaa2 Remove unfinished (and thus, useless) support for Web Inspector. 2010-12-30 00:12:24 -08:00
Ariya Hidayat 4df6976427 movies.js: List movies from kids-in-mind.com. 2010-12-28 21:15:36 -08:00
Ariya Hidayat d528b30ae6 seasonfood.js: List seasonal food from BBC GoodFood. 2010-12-28 20:26:39 -08:00
Ariya Hidayat d5b905a8ee ipgeocode.js: JSONP example with IP geocoding. 2010-12-28 00:10:12 -08:00
Ariya Hidayat 88d6794065 Start with an empty but sensible document.body object. 2010-12-28 00:05:50 -08:00
Ariya Hidayat 1e32c58a77 Mention supported platforms. 2010-12-27 22:59:36 -08:00
Ariya Hidayat fa93d5f6dd Link the new wiki page. 2010-12-27 22:57:57 -08:00
Ariya Hidayat bcfcdea810 weather.js: Weather forecast from Google. 2010-12-27 22:40:26 -08:00
Ariya Hidayat 2153e5ebea fibo.js: Fibonacci sequence 2010-12-27 22:04:04 -08:00
Alessandro Portale 243dc0f82c Console output on Windows 2010-12-28 00:50:58 +01:00