Commit Graph

18 Commits

Author SHA1 Message Date
Joe Ferris 95732ad796 Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Matthew Horan 126411337e Close new windows on reset 2012-05-29 22:23:02 -04:00
Matthew Horan f80125e6cb Pass the WebPageManager to each command 2012-05-29 22:23:02 -04:00
Tom Lea 1a609a945d Set the window to the default size on #reset!
This should prevent state leakage between test cases.
2012-04-03 18:54:12 -04:00
Patrick Bacon f190f51652 Rather than creating a new NetworkAccessManager when the page is reset,
reuse the existing manager and just clear its headers and cookies.

This avoids repeatedly setting up the SIGNAL/SLOT callback stuff which
is leading to unclosed pipes on Ubuntu, eventually causing "too many
open files" errors in large test suites.
2012-04-03 18:39:10 -04:00
Joe Ferris 85dcc729dd Pass command arguments to the constructor 2012-03-16 19:58:58 -04:00
Joe Ferris b3b1adf63f We don't need to clear the page if we're visiting about:blank 2012-03-16 18:54:04 -04:00
Marc Schwieterman eaec9792b3 reset history when resetting session 2012-02-17 11:55:18 -05:00
Joe Fiorini 62b49914b8 Add ability to query for console messages & errors
- This changes the format of console message output to use "|" as the
delimiter instead of ":"; ":" is no good for splitting when there are
URLs and error messages in the output
- WebPage tracks all console messages and clears them out on reset
2011-11-15 21:14:21 -05:00
Niklas Baumstark fb119f6ff8 adds cookie management functions to Webkit::Browser 2011-09-30 11:47:21 -04:00
shogo-ohta 482717484e Response headers should be reset 2011-08-26 23:15:41 +09:00
os0x 5ce60584ad reset status code 2011-08-24 00:18:08 +09:00
shogo-ohta ee1388e329 add header support 2011-06-24 13:55:03 +09:00
Joe Ferris cc74875e4b Created a Response object for the success/message pair 2011-05-05 17:55:40 -04:00
Aaron Gibralter 182cb2e5b7 Working on frame handling. In terms of the QT code, the non-frame-related
specs pass with these changes (e.g. mainFrame() => currentFrame() and the new
injectJavascriptHelpers() code in WebPage.cpp).

It seems like the current JS+xpath implementation dives in to iframes already.
Is this desired behavior? I wonder if that works with x-domain iframes? I
doubt it...

Also, this design assumes that we only step one frame down at a time...

Lastly, I'm really not sure how QWebKit decides which frame is currentFrame().
For now, I'm hoping to be able to use the QWebFrame setFocus() method. This
may be a dead end though. We may have to have WebPage manually keep track of
the "current" frame.
2011-04-20 18:12:03 -04:00
Joe Ferris 64d34e57ea Fixed cookies not being reset after each session 2011-02-26 17:05:29 -05:00
Joe Ferris 3e32892e2b Refactor Connection/Command so that arguments are passed in as a single QStringList instead of in consecutive calls to argumentReceived 2011-02-25 23:29:36 -05:00
Joe Ferris 0745b1ee1c Initial commit 2011-02-24 23:13:11 -05:00