Commit Graph

293 Commits (e59054247c82306438572d598141535454e3d8e7)

Author SHA1 Message Date
Ivan De Marino e59054247c Converted 'cycle_multiple_urls.js' to PhantomJS 1.2 (and renamed to 'render_multi_url.js').
Given that I practically rewrote it, I took the liberty to rename it based on my personal taste ;)
2011-06-01 18:37:57 +01:00
Ivan De Marino 93d2c30248 Converted 'run-jasmine.js' to PhantomJS 1.2 2011-06-01 17:30:27 +01:00
Ivan De Marino afce9b83b0 Converted 'run-qunit.js' to PhantomJS 1.2 AND fixed a stupid mistake in 'waitFor' 2011-06-01 17:24:32 +01:00
Ivan De Marino f8e59f92f8 Ported 'waitfor.js' to Phantom 1.2.
* There is a problem though: the script causes a "segfault" on phantom.exit() - I didn't investigated why yet
2011-06-01 16:29:44 +01:00
Ivan De Marino 78cab6b4b1 Converted "weather.js" for PhantomJS 1.2 2011-06-01 14:55:35 +01:00
Ivan De Marino 811c56b6f3 Ported 'countdown.js' to PhantomJS 1.2 2011-06-01 14:25:22 +01:00
Ivan De Marino b91f5b9632 Converted "tweets.js" to PhantomJS 1.2.
First impression: PhantomJS 1.2 makes a lot of sense.
But there are issues if we try to pass a DOM node as a return value for calls to "evaluate"
2011-06-01 14:18:08 +01:00
Ariya Hidayat a012559d7b Merge pull request #51 from Roejames12/master
Bug fixes
2011-05-31 23:42:10 -07:00
IceArmy e93bea5a21 Fix bug where script wouldn't exit properly 2011-05-31 23:29:06 -07:00
IceArmy 82c6735fd0 Declare m_returnValue to 0 2011-05-31 23:29:06 -07:00
IceArmy 456356e876 Simplify CSConverter()'s convert() return statement
Simplify Phantom()'s loadImages and loadPlugins
2011-05-31 22:02:41 -07:00
Ariya Hidayat 685dd2e1eb Merge pull request #50 from Roejames12/master
PyPhantomJS version 1.2.0
2011-05-31 18:12:53 -07:00
IceArmy a313d1befd PyPhantomJS version 1.2.0
Refactored most of functionalities to WebPage object
WebPage object can have settings
Support different HTTP operations for loading a page
Simplify buffer handling in render()
Refactor render(), split the buffer rendering to its own function
Render the web page using the tiling approach
WebPage callback for it's console message
Make exit() synchronous
WebPage callback for its JS alert
Updated all examples
2011-05-31 16:23:06 -07:00
Ariya Hidayat a7a8a6749a Merge pull request #49 from rgieseke/cs-examples
Port CoffeeScript examples to use WebPage object.
2011-05-29 12:33:03 -07:00
rgieseke 2a8fac45b4 Indent with 2 spaces. 2011-05-29 14:21:25 +02:00
rgieseke 5b8a40e763 Remove unused variable. 2011-05-29 14:01:55 +02:00
Ariya Hidayat dfb19a4d8a WebPage callback for its JS alert.
This is similar to the way console message is handled (see commit
5be29972). WebPage callback for alert is called 'onAlert'.
2011-05-29 00:29:29 -07:00
Ariya Hidayat 1d9c349265 Make exit() synchronous.
We might still need to find a workaround if this crashes on Windows
(see commit bb355db6).
2011-05-29 00:20:56 -07:00
Ariya Hidayat 5be29972cf WebPage callback for its console message.
See http://code.google.com/p/phantomjs/issues/detail?id=12.

By default, WebPage is "silent" and does not report its console message.
This can be overridden easily, e.g:

  var page = new WebPage();
  page.onConsoleMessage = function (msg) {
    console.log(msg);
  };
  page.open(.....);
2011-05-28 21:16:18 -07:00
Ariya Hidayat e7ca6c0aaf Render the web page using tiling approach.
http://code.google.com/p/phantomjs/issues/detail?id=54

Because Qt software rasterizer has a bug in its fillRect() when
dealing with very big paint device, we split the painting into
smaller-size tiles.
2011-05-28 16:02:48 -07:00
Ariya Hidayat 7594a050e9 Refactor render(), split the buffer rendering to its own function.
This can be useful for issue #15.
2011-05-28 13:51:39 -07:00
Ariya Hidayat ff726de796 Simplify buffer handling in render(). 2011-05-28 13:45:23 -07:00
Ariya Hidayat b1af26ecc0 Support different HTTP operations for loading a page.
http://code.google.com/p/phantomjs/issues/detail?id=88
2011-05-28 02:06:20 -07:00
Ariya Hidayat 7e099abaf2 User-agent is part of WebPage settings, not WebPage object itself. 2011-05-27 22:50:33 -07:00
Ariya Hidayat 2a46ccde8b WebPage object can have settings. 2011-05-27 22:36:34 -07:00
Ariya Hidayat b8fc6558a2 Bring back load-images and load-plugins option. 2011-05-27 20:39:09 -07:00
rgieseke 08c6faff71 More CoffeeScript examples using WebPage. 2011-05-27 12:09:15 +02:00
rgieseke 527b25c187 Merge remote branch 'upstream/master' into cs-examples 2011-05-26 11:57:29 +02:00
Ariya Hidayat f5e070d444 Store bootstrap code in its own file. 2011-05-26 02:18:09 -07:00
rgieseke 4f68bf7067 Use WebPage in useragent.coffee example. 2011-05-26 11:08:33 +02:00
rgieseke dcd91d73d1 Use WebPage in pizza.coffee example. 2011-05-26 11:07:37 +02:00
rgieseke fc5b799db0 Use WebPage in direction.coffee example. 2011-05-26 11:06:41 +02:00
rgieseke 95c13d46fd Use WebPage in loadspeed.coffee. 2011-05-26 11:05:03 +02:00
rgieseke 71c61a8f7f Fix error message. 2011-05-26 11:04:00 +02:00
Ariya Hidayat a65ae9b1a8 Reenable custom network access manager. 2011-05-26 01:56:43 -07:00
Ariya Hidayat 9a2fd4b361 Bring back some default web page settings. 2011-05-26 00:27:55 -07:00
Ariya Hidayat 414a46e921 technews.js: Port to use WebPage object. 2011-05-25 23:37:56 -07:00
Ariya Hidayat 55bb382a1b follow.js: Port to use WebPage object. 2011-05-25 23:28:41 -07:00
Ariya Hidayat f84bef4b38 rasterize.js: Port to WebPage object. 2011-05-25 14:37:58 -07:00
Ariya Hidayat 5da05055cc pizza.js: Port to use WebPage object. 2011-05-25 14:37:25 -07:00
Ariya Hidayat 5f018b32b2 useragent.js: Port to WebPage object. 2011-05-25 14:37:25 -07:00
Ariya Hidayat 838b110e9e direction.js: Port to use WebPage object. 2011-05-25 14:10:35 -07:00
Ariya Hidayat a1f0691311 loadspeed.js: Port to use WebPage object. 2011-05-25 14:04:30 -07:00
Ariya Hidayat df64f60ec9 Use WebPage, not QWebPage, inside Phantom class. 2011-05-25 14:00:20 -07:00
Ariya Hidayat a4b540ef9e Merge branch 'master' of github.com:ariya/phantomjs 2011-05-25 10:58:26 -07:00
Ariya Hidayat 041e827447 Port color wheel example to use WebPage object. 2011-05-25 10:55:25 -07:00
Ariya Hidayat d15e097815 Refactor most of functionalities to WebPage object.
This breaks all examples (will be fixed slowly). Some features, e.g.
file upload, are also still regressed.
2011-05-25 10:49:35 -07:00
Ariya Hidayat bf495f4d0e Merge pull request #48 from ismasan/url_cycle
Example: Array.prototype.forEachWebPage() for easy loading and processing
2011-05-19 08:36:36 -07:00
Ismael Celis f204a3386e Example: Array.prototype.forEachWebPage() for easy loading and processing of multiple URLs in Phantom.js 2011-05-19 16:25:26 +01:00
Ariya Hidayat 1a6d2c11f8 Merge pull request #47 from Roejames12/master
Fixed issue 106
2011-05-17 06:07:24 -07:00