Commit Graph

1369 Commits (1.7)

Author SHA1 Message Date
Ariya Hidayat f6abcfe676 Ask for a confirmation before initiating the build.
Although it is mentioned in http://phantomjs.org/build.html, many people
are not aware this, they compile from source (even if a binary package
is available) and get shocked to realize the build takes ages.
The build script is thus modified to give the initial warning.

Unattended build is still possible, just use --confirm flag.

http://code.google.com/p/phantomjs/issues/detail?id=862
2012-11-10 01:36:30 -08:00
Ariya Hidayat 8cdd708812 Correcting keycodes sent for lowercase characters
http://code.google.com/p/phantomjs/issues/detail?id=852

Conflicts:

	src/webpage.cpp
2012-11-09 22:14:46 -08:00
Jim Evans 72c574938a Fixing sending of double-click events
http://code.google.com/p/phantomjs/issues/detail?id=848
2012-11-09 22:13:28 -08:00
Ariya Hidayat 3df9723de2 Update the link to the crash reporting guide.
http://code.google.com/p/phantomjs/issues/detail?id=576
2012-11-09 22:12:46 -08:00
Ariya Hidayat de7ac79877 Aim for version 1.7.1.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-11-09 22:12:10 -08:00
Vitaliy Slobodin 2b3f707bd6 Added version info for Windows
http://code.google.com/p/phantomjs/issues/detail?id=797
2012-11-09 22:10:14 -08:00
Ariya Hidayat 87f98dffb8 Stop potential crash by guarding the access to the page.
Based on the work from Shawn Krisman (krisman.shawn@gmail.com).

http://code.google.com/p/phantomjs/issues/detail?id=719
2012-11-09 22:10:05 -08:00
Ariya Hidayat f1861cba95 Revert breaking behavior in commit ecda224233.
Keeping the page alive instead of destroying causes unexpected behavior
compared to version 1.6 and earlier. See the discussion:
https://groups.google.com/d/topic/phantomjs/C84fmd21LDk/.

http://code.google.com/p/phantomjs/issues/detail?id=719
2012-11-09 22:09:55 -08:00
Ariya Hidayat 76b1f88ac2 README: Clarify capture-able contents.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-11-09 22:09:37 -08:00
Ariya Hidayat c9ff28454d Point to the new wiki.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-11-09 22:08:50 -08:00
Ariya Hidayat 242edc764a Breakpad symbol tool: Make sure it builds on Mac.
https://code.google.com/p/phantomjs/issues/detail?id=576
2012-09-23 05:57:07 -07:00
Ariya Hidayat cb441bcf3d Blazing Star.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-22 21:37:29 -07:00
Ariya Hidayat f4221ea1de Merge branch 'master' into 1.7 2012-09-22 20:25:23 -07:00
Ariya Hidayat b9e1ced36f Bracing for "Blazing Star".
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-22 20:24:58 -07:00
Ariya Hidayat e5b040ed1a Advertise the migrated wiki pages. 2012-09-22 19:58:04 -07:00
Ariya Hidayat 7d2c6aa83c Undocument the callback mechanism.
This is private for now, see issue 133 for details.

http://code.google.com/p/phantomjs/issues/detail?id=133
2012-09-22 19:44:51 -07:00
Ariya Hidayat 7921cb00e1 Remove non-working weather example.
The example stops working since the request is blocked. It needs a
rewrite to use a different service.

http://code.google.com/p/phantomjs/issues/detail?id=794
2012-09-22 13:39:19 -07:00
Ariya Hidayat d34759f3cf Merge branch 'master' into 1.7 2012-09-21 08:27:27 -07:00
Ariya Hidayat 58f970a30d Remove outdated Debian control files.
Rather than advertising wrong info (PyPhantomJS etc), debian/ is
removed until new up-to-date content is prepared.

http://code.google.com/p/phantomjs/issues/detail?id=793
2012-09-21 07:51:14 -07:00
Ivan De Marino 32e23339bd Fixing issue with CookieJar not loading at boot.
* Using the "QTimer::singleShot" bites back in the ass
* The "script" takes priority and runs before the SLOT is actually invoked

Why was I using a Timer?
Not sure anymore: it must have slipped in while I was trying to work out
all the other issues I had with QNetworkCookieJar, and I left it there.

http://code.google.com/p/phantomjs/issues/detail?id=790
2012-09-21 07:39:12 -07:00
Ariya Hidayat a5dc6ae3f5 Merge branch 'master' into 1.7 2012-09-21 00:32:28 -07:00
Ariya Hidayat 8ab4209e0f More changes for the upcoming 1.7.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-21 00:31:51 -07:00
Ian Oxley e85140e80f Non-zero exit code if any test fails.
In the callback function passed to `waitFor`, the call to `page.evaluate`
returns a 1 or 0, and this is then passed to `phantom.exit` (with a 1
indicating at least one test failed, 0 indicating all tests passed).

http://code.google.com/p/phantomjs/issues/detail?id=792
2012-09-21 00:12:52 -07:00
Ian Oxley 1dbd371540 Added 'tests passed' message.
If all tests pass, a message indicating this is output to the console.

http://code.google.com/p/phantomjs/issues/detail?id=792
2012-09-21 00:12:30 -07:00
Ian Oxley be767ee983 Test failure CSS selectors changed.
Changed the CSS selectors used to identify failed tests.

The old selector was `div.jasmine_reporter > div.suite.failed`,
but this no longer seems to match any elements.

The new selector is `.results > #details > .specDetails.failed`. For each
failing test the `.description` and `.resultMessage.fail` elements are
used to output the failures to the console.

http://code.google.com/p/phantomjs/issues/detail?id=792
2012-09-21 00:11:43 -07:00
Ian Oxley 2662d5875b Changed CSS selector used when checking for whether tests have finished.
When using the jasmine 1.2.0 standalone version, `.runner .description`
doesn't seem to match any elements.

I noticed pending tests can be found using the CSS selector
`.symbolSummary .pending`, so changed the testFx callback to check
that no elements are left matching this selector.

http://code.google.com/p/phantomjs/issues/detail?id=792
2012-09-21 00:11:24 -07:00
Shawn Krisman ecda224233 Revert "Fix crash on exit (Issues #136, #148 and #149)"
This reverts commit 5acaa6b42d.

Conflicts:

	src/phantom.cpp
	src/phantom.h

removed m_page deletion.

http://code.google.com/p/phantomjs/issues/detail?id=719
2012-09-21 00:07:09 -07:00
Ariya Hidayat 9f8056334e Keep ARGB32 premultiplied format for Windows for the time being.
http://code.google.com/p/phantomjs/issues/detail?id=785
2012-09-21 00:05:18 -07:00
Ariya Hidayat 18ca114111 Windows: Use ARGB32 premultiplied to have better font rendering.
Thanks to Vitaliy Slobodin for the analysis.

http://code.google.com/p/phantomjs/issues/detail?id=785
2012-09-20 23:52:05 -07:00
Ariya Hidayat cab2635e66 Make the key enums as part of WebPage instance.
This way, we don't add anything into phantom object.

http://code.google.com/p/phantomjs/issues/detail?id=492
2012-09-20 23:44:06 -07:00
Ariya Hidayat 1cc58bccda Bracing for version 1.7.0.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-19 23:00:28 -07:00
Jon Leighton e7c37d4a2b Fix --help and --version
https://code.google.com/p/phantomjs/issues/detail?id=789
2012-09-19 21:56:56 +01:00
Ariya Hidayat 0d63e9c0a8 Contribution guide: highlight various aspects of communication.
http://code.google.com/p/phantomjs/issues/detail?id=783
2012-09-18 18:23:19 -07:00
Ariya Hidayat 9a25f31715 Merge pull request #319 from detro/ghostdriver-dev
GhostDriver Development Branch - Master Push #4
2012-09-18 18:08:07 -07:00
Ivan De Marino 26583740c8 Made the "Callbacks injection" recursive.
Before this, only the first level of child frames had the possibility to use
the Callbacks object. Now is injected recursively in all of them.

This is an extension of coverage for [Issue #683](http://code.google.com/p/phantomjs/issues/detail?id=683).
2012-09-18 22:46:14 +01:00
Ivan De Marino e5ebcf90df Git-ignoring debugging-helper on mac 2012-09-18 14:57:59 +01:00
Ivan De Marino b1185cd22a Redesign the Cookies API (part 2)
Addresses [Issue #761](http://code.google.com/p/phantomjs/issues/detail?id=761).

This is a combination of 5 commits.

1. Date in Cookie can be set via "seconds since epoch" as well.

* In addition to the current string format, we can now set cookies via integer of msec since epoch
* Expiration date can be set via "expires" or "expiry" option ("expires" has priority)
* Returned cookie will contain "expires" as string and "expiry" as msec since epoch

I believe this can simplify code that uses cookies and it doesn't change the functionality.

2. Applying the "--debug" command line options as early as possible.

3. Fixing bug and behaviour in the CookieJar

* It's not possible to set a cookie without a domain: will default to the domain of the page it's set on
* "page.clearCookies()" was broken
* "cookiejar.deleteCookie("name", url)" reimplemented because deleting via "expiration" doesn't work

4. Improving (and more fixing) in the CookieJar

* Purging Session or Expired Cookies now works
* Added boolean return values to inform if the requested cookie operation succeeded
* Timestamps for "expiry/expires" in Milliseconds, as JS does by default
* Improved detection that a cookie has been accepted or rejected by the cookiejar

NOTE: Unfortunately, the Qt provided QNetworkCookieJar is a very limited
and not extremely well designed solution. It doesn't provide any "nice
and clean" CRUD API, and you are only left with a SET/GET to deal with.
Mechanism to understand when and when not a cookie is added are hidden,
and require extra work in the sub-class (our CookieJar) to fill the gap.

5. Methods on the "phantom" object to manipulate the CookieJar.

* phantom.cookies (array of JSON/Cookies)
* phantom.cookiesEnabled (boolean)
* phantom.addCookie
* phantom.deleteCookie
* phantom.clearCookies

Those methods operate on the CookieJar directly and have no URL restriction.
In other words, if page P1 can see set of cookies C1, and page P2 can see set of
cookies C2, "phantom.cookies" can see (i.e. operate upon) both C1 and C2.
2012-09-18 08:42:13 +01:00
Ariya Hidayat 64fa65edaf More changes for the upcoming 1.7.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-18 00:41:20 -07:00
Ariya Hidayat 22c8e5610f Fix the link to the contribution guide.
http://code.google.com/p/phantomjs/issues/detail?id=783
2012-09-17 23:41:23 -07:00
Ariya Hidayat 2c4e95ad3e Use GitHub contributing guide feature.
See https://github.com/blog/1184-contributing-guidelines.

http://code.google.com/p/phantomjs/issues/detail?id=783
2012-09-17 23:37:18 -07:00
Zhaolong 62584ce7d4 Remove the dirty link hack for a static PhantomJS + MSVC.
http://code.google.com/p/phantomjs/issues/detail?id=753
2012-09-17 22:13:40 -07:00
Ryan Cumming 23fe144a39 Treat all args after the script name as script args
This fixes CapserJS which builds a command line like this:
phantomjs bin/bootstrap.js --casper-path=~/capserjs --cli

That works on Phantom 1.6 but not on master due to the qcommandline
port.

Fix by extending qcommandlne to take a ParameterFence flag which causes
it to treat any options after a parameter as arguments. Switch
"scriptname" to use that so the 1.6 behaviour is restored.

http://code.google.com/p/phantomjs/issues/detail?id=55
2012-09-17 22:05:42 -07:00
Harry Waye 4f7df7073a Maintain m_currentFrame as opposed to using QWebPage's currentFrame().
Currently focused frame made available with page.focusedFrameName and page.switchToFocusedFrame.

http://code.google.com/p/phantomjs/issues/detail?id=683
2012-09-17 21:59:05 -07:00
Ariya Hidayat e33bfedb9a Merge pull request #317 from Vitallium/fix-missing-ico-plugin-win
Rendering ICO images on Windows.
2012-09-17 21:58:07 -07:00
Vitaliy Slobodin af49821cf4 Render ICO images on Windows.
ICO images are not rendered on Windows due to missing ICO plugin.

Issue: http://code.google.com/p/phantomjs/issues/detail?id=779
2012-09-17 10:46:49 +04:00
Ariya Hidayat 1558c07a76 Merge pull request #314 from JakubOboza/patch-1
Update src/config.cpp
2012-09-14 04:10:31 -07:00
Jakub 1ab5c66df8 Update src/config.cpp
This is a patch to resolve issue i reported in ticket 773 <http://code.google.com/p/phantomjs/issues/detail?id=773>. 
I did build it and run tests seems to be working fine.

I hope this helps a bit :) Also i'm sending friday hugs to everyone on the team.
2012-09-14 12:05:52 +02:00
Ariya Hidayat 795d067f4f Mocha tests can run with PhantomJS.
See https://github.com/metaskills/mocha-phantomjs.
2012-09-13 21:41:09 -07:00
Ariya Hidayat 27d6f908e4 README: Mention the Contribution Guide as early as possible. 2012-09-08 07:04:13 -07:00
Ariya Hidayat 3479beb894 Enumerate some important changes for the upcoming 1.7.
http://code.google.com/p/phantomjs/issues/detail?id=764
2012-09-07 21:12:59 -07:00