Ivan De Marino
7e7325c0f5
Fixing up indentation for our Jasmine test specs.
...
Just getting rid of an itch of mine.
2013-01-17 23:52:47 +00:00
Ivan De Marino
12bb24f418
FIX: 'resource request errors' close the server.
...
The test "should handle resource request errors"
was not closing the server at the end of the test,
interfering with the successive tests.
2013-01-17 23:47:41 +00:00
Ivan De Marino
4dec091ac2
FIX: Check file exist when attempting upload.
...
Both "page.uploadFile()" and "onFilePicker = function() {}" check file exists before accepting them.
If file don't exists, they are "ignored".
Fixes issue #941 : https://code.google.com/p/phantomjs/issues/detail?id=941
2013-01-17 23:45:34 +00:00
Vitaliy Slobodin
a7a3928af9
Fix compilation on Windows.
...
We need to include QtCore/qt_windows.h on Windows since Q_PID mapped to
_PROCESS_INFORMATION, but _PROCESS_INFORMATION not defined.
Issue:
http://code.google.com/p/phantomjs/issues/detail?id=219
2013-01-16 08:00:52 -08:00
James M. Greene
1a487d2bbf
Added myself to the copyright list
2013-01-16 08:00:51 -08:00
James M. Greene
360dc3a30c
Corrected default value for disk-cache help
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=908
2013-01-16 08:00:51 -08:00
Ariya Hidayat
34ed1169f3
Record more changes for the upcoming 1.9.
...
http://code.google.com/p/phantomjs/issues/detail?id=939
2013-01-09 20:35:00 -08:00
Ariya Hidayat
d58eae54d7
Ensure we describe onNavigationRequested behavior properly.
...
http://code.google.com/p/phantomjs/issues/detail?id=562
2013-01-09 20:26:55 -08:00
Ariya Hidayat
aaca7774c9
Vagrant setup: Don't clone PhantomJS into Git build directory.
...
http://code.google.com/p/phantomjs/issues/detail?id=963
2013-01-09 01:03:27 -08:00
Oleg Pudeyev
26e51f4b8a
-ldl is needed only on Linux, not on all Unices.
...
In particular on FreeBSD there is no -ldl as the respective
functionality is in -lc.
http://code.google.com/p/phantomjs/issues/detail?id=597
2013-01-09 00:07:36 -08:00
Oleg Pudeyev
c3c17a5364
Use hw.ncpu sysctl on FreeBSD to determine processor count.
...
Patch by Mike Meyer.
http://code.google.com/p/phantomjs/issues/detail?id=597
2013-01-09 00:07:14 -08:00
Oleg Pudeyev
52e67c5aa7
Use bash from PATH rather than hardcoded in /bin.
...
E.g. FreeBSD has bash in /usr/local.
http://code.google.com/p/phantomjs/issues/detail?id=597
2013-01-09 00:06:58 -08:00
Ariya Hidayat
69bf72bca7
Setup Vagrant to build Linux packages on CentOS 5.
...
The goal is to use old glibc so that it can reach more audience (in
particular, RHEL and CentOS users).
Also, we don't compress the executable (using UPX) so that it can be
inspected with ldd. Bonus: no more decompression overhead, faster
startup.
http://code.google.com/p/phantomjs/issues/detail?id=963
2013-01-05 09:35:27 -08:00
Ariya Hidayat
aa907343b9
Record more changes for the upcoming 1.9.
...
http://code.google.com/p/phantomjs/issues/detail?id=939
2013-01-04 23:44:36 -08:00
Vitaliy Slobodin
09e929d599
Allow to abort network requests.
...
Issue: http://code.google.com/p/phantomjs/issues/detail?id=230
2013-01-04 23:39:23 -08:00
Vitaliy Slobodin
fd700b0702
New WebPage callback: onResourceError.
...
This callback is invoked when the WebPage was unable to request the resource
Issue: http://code.google.com/p/phantomjs/issues/detail?id=954
2013-01-04 21:24:30 -08:00
execjosh
d906bc3819
Automate lazy generation of REPL completion lists
...
All invokable methods, slots, signals, and properties visible from
JavaScript, but which do not start with an underscore, are lazily
(only when necessary) added to the completion list through dynamic
reflection.
This leverages `QMetaObject` for reflection of `QObject`s. As such,
there is now no need to inherit `REPLCompletable` and it has been
removed.
http://code.google.com/p/phantomjs/issues/detail?id=943
2013-01-04 21:23:58 -08:00
Ariya Hidayat
d0fe6864a9
Mac OS X: Fix possible crash when using some TrueType fonts.
...
This is just a workaround. We simply avoid removing the custom font
(intentionally leak it, a small price to pay) because otherwise it will
invalidate Qt's font cache, which in turns trigger the crash at
CoreText's CTFontCopyGraphicsFont.
http://code.google.com/p/phantomjs/issues/detail?id=690
2012-12-30 21:17:40 -08:00
Ariya Hidayat
2a2b6e455c
Mac OS X: Add a manual test for the crash with TrueType fonts.
...
http://code.google.com/p/phantomjs/issues/detail?id=690
2012-12-30 21:17:39 -08:00
execjosh
f52044cd31
Emulate spawn and execFile from node.js's child_process module
...
This is a rudimentary implementation of the following methods
from [node.js's `child_process` module][1]:
* `spawn`
* `execFile`
The examples are relevant only for *nix operating systems...
The following methods are Not Yet Implemented™:
* `exec`
* `fork`
[1]: http://nodejs.org/docs/v0.8.16/api/child_process.html
http://code.google.com/p/phantomjs/issues/detail?id=219
2012-12-29 01:03:08 +09:00
Ariya Hidayat
83e8152dd6
Collect some changes for the upcoming 1.9.
...
http://code.google.com/p/phantomjs/issues/detail?id=939
2012-12-25 22:37:00 -08:00
Ariya Hidayat
98ce8922c6
ChangeLog: Add missing window.location fix.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-12-25 22:36:53 -08:00
execjosh
836719f72e
Implement CommonJS IO/A read([n Number])
...
The [IO/A spec][1] for `read` is as follows:
> Read up to n bytes from the stream, or until the end of the stream
> has been reached. [If] n is null, reads up to the block size of the
> underlying device, or up to 1024 bytes if the block size is not
> discernible. If n is not specified, this method always reads the
> full stream until its end is reached. ...
Since discovering the block size of the underlying device is
non-trivial, we will just default to 1024.
**NOTE**
The initial implementation of `File::read()` saves the current
(original) position, seeks to the beginning of the stream,
`readAll`s to the end, and then resets to the original position.
I think that this behavior is unexpected and should be changed--it
should read from the current position to the end of the stream and
stay there. The user should explicitly `seek` to the beginning of
the stream when necessary.
With the current implementation, the user should note that the
position *will not change* after calling `read()` with no arguments.
[1]: http://wiki.commonjs.org/wiki/IO/A#Instance_Methods
http://code.google.com/p/phantomjs/issues/detail?id=938
2012-12-25 20:46:14 -08:00
execjosh
6bc3a93118
Add `seek` method to `File` class
...
This method is necessary for random-access streams. It will also be
helpful in the future when implementing the [IO/A spec][1].
[1]: http://wiki.commonjs.org/wiki/IO/A#Instance_Methods
http://code.google.com/p/phantomjs/issues/detail?id=937
2012-12-25 13:11:20 -08:00
execjosh
f6c87221a7
Implement system.std{in,out,err}
...
See [issue 333][1] and pull request #192 .
**Caveat**
`File::read` currently takes no parameters and is equivalent to a
"`readAll`". This will be changed later to match [IO/A Spec's
`Stream#read`][2]; but, should still be noted.
[1]: http://code.google.com/p/phantomjs/issues/detail?id=333
[2]: http://wiki.commonjs.org/wiki/IO/A#Instance_Methods
2012-12-25 03:41:34 -08:00
Ken Collins
e3517f108a
Add Mocha-PhantomJS
...
This project has gotten a pretty good following over the past few months. Would be great to have it in the list.
2012-12-24 17:06:34 -05:00
Ariya Hidayat
d7652abc11
Unix packaging: Fix UPX detection for binary compression.
...
As pointed out by Cristian Ciupitu, our UPX detection logic was broken.
This is now fixed by using `type` to look for the executable.
http://code.google.com/p/phantomjs/issues/detail?id=928
2012-12-23 14:36:24 -08:00
Ariya Hidayat
3f42fb230f
Linux: Ensure we use 72 dpi.
...
For our QPA/Lighthouse platform screen, apparently we need to specify the
physical screen size because otherwise the default 100 dpi will be used.
This also brings font rendering on headless Linux to 72 dpi.
http://code.google.com/p/phantomjs/issues/detail?id=659
2012-12-23 12:03:10 -08:00
Ariya Hidayat
fac15407e8
Call the development branch as version 1.9.
2012-12-23 08:57:37 -08:00
execjosh
3458d4d507
Use fs.join(...) instead of fs.separator
...
http://code.google.com/p/phantomjs/issues/detail?id=361
2012-12-22 23:06:20 -08:00
execjosh
03500e6b55
Implement fs.{split(path),join(...),{to,from}NativeSeparators}
...
For fs.{split,join} specs, see: http://wiki.commonjs.org/wiki/Filesystem/A#Paths_as_Text
http://code.google.com/p/phantomjs/issues/detail?id=361
2012-12-22 23:05:46 -08:00
Vitaliy Slobodin
fc7a5b7b9f
Add a bunch of gitignores for Windows
2012-12-22 22:36:04 -08:00
Ariya Hidayat
c33b916cfb
More 1.8 materials.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-12-21 22:12:05 -08:00
Ivan De Marino
d998c59358
Importing GhostDriver v1.0.2.
...
Changes listed here: https://github.com/detro/ghostdriver/issues?labels=1.0.2&page=1&state=closed
2012-12-19 19:29:54 -08:00
Ariya Hidayat
8836398825
Generalize WebServer binary data handling into a real encoding support.
...
http://code.google.com/p/phantomjs/issues/detail?id=505
2012-12-17 23:12:48 -08:00
Sebastian Krzyszkowiak
f70a6ab4ee
Add test case for WebServerResponse::setEncoding
...
http://code.google.com/p/phantomjs/issues/detail?id=505
2012-12-17 19:27:19 -08:00
Sebastian Krzyszkowiak
78e72312dc
Implement WebServerResponse::setEncoding in order to allow binary encoding to be sent.
...
Fixes http://code.google.com/p/phantomjs/issues/detail?id=505
2012-12-17 19:27:06 -08:00
Ivan De Marino
302050e0ce
Fixing typo in GhostDriver 1.0.1
2012-12-17 19:15:43 -08:00
Ariya Hidayat
9a8b84a293
More changes for 1.8.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-12-16 23:16:37 -08:00
Ariya Hidayat
9c0888d54d
Fix potential hang in the example scripts due to missing exit() call.
...
Patch by Jônatas Pedraza <jonatas.nona@gmail.com> and Vivek Galatage
<vivekgalatage@gmail.com>.
http://code.google.com/p/phantomjs/issues/detail?id=922
2012-12-16 23:02:44 -08:00
David Burrows
15fe514025
Increase maximum number of redirects in line with modern browsers.
...
Modern browser mostly limit re-directs to 20. The current limit in PhantomJS is 10 which is not in line with most browsers. This patch is a simple increase of gMaxRedirections from 10 to 20.
http://code.google.com/p/phantomjs/issues/detail?id=849
2012-12-16 22:21:07 -08:00
qubird
f6a91a8813
New WebPage#setContent api - makes possible to specify location along with content
...
http://code.google.com/p/phantomjs/issues/detail?id=909
2012-12-16 15:43:10 -08:00
Ariya Hidayat
daae36c3ba
Some changes for 1.8.
...
http://code.google.com/p/phantomjs/issues/detail?id=863
2012-12-16 14:48:28 -08:00
fastclemmy
3b2a1c27a1
Update examples/pizza.coffee.
...
Guess the DOM has changed a little. No more class .address but an (incorrectly used) <address> tag instead. (same pull request as the vanilla JS example)
http://code.google.com/p/phantomjs/issues/detail?id=921
2012-12-16 14:20:57 -08:00
fastclemmy
8f14ef027e
Fix examples/pizza.js.
...
Guess the DOM has changed a little. No more class .address but an (incorrectly used) <address> tag instead.
http://code.google.com/p/phantomjs/issues/detail?id=921
2012-12-16 14:19:57 -08:00
Ivan De Marino
027aa93b18
Importing GhostDriver version `1.0.1`.
...
Changes are documented here:
https://github.com/detro/ghostdriver/issues?labels=1.0.1&state=closed .
https://github.com/detro/ghostdriver/issues/130
2012-12-16 13:55:58 -08:00
Ivan De Marino
f5652e5110
Fix "--webdriver-selenium-grid-hub" CLI parameter.
...
I had forgotten to update the option parsing code,
and the option was never picked.
Related issue: [GhostDriver #130 ](https://github.com/detro/ghostdriver/issues/130 ).
2012-12-13 23:45:54 -08:00
Vitaliy Slobodin
04b74f99fd
Enable WOFF file support.
...
Background:
WOFF format requires that WebKit should be compiled with zlib.
Related issues:
http://code.google.com/p/phantomjs/issues/detail?id=592
2012-12-12 21:42:58 -08:00
Jon Leighton
eb3c9caa6e
Upgrade to Qt 4.8.4
...
http://code.google.com/p/phantomjs/issues/detail?id=918
2012-12-12 21:42:45 -08:00
Jon Leighton
66ab9a1113
Fix memory leak on linux
...
We were previously adding the certificates on each instantiation of
NetworkAccessManager, causing memory consumption to grow unbounded.
I have also removed the Qt version check. It's unnecessary as we only
build against a fixed Qt version.
https://code.google.com/p/phantomjs/issues/detail?id=882
2012-12-12 21:25:26 -08:00