1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
capybara-webkit/src
Matthew Horan 56fcecdd16 Process all pending events before checking if page is loading
JavaScipt actions and other asynchronous events which cause a WebPage
load may not be processed by the time we receive an incoming command.
Ensure that these events get processed before checking if the page is
loading by calling QApplication::processEvents().

Fixes spurious failures throughout the test suite.
2012-11-30 21:37:56 -05:00
..
Authenticate.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
Authenticate.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
body.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Body.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
capybara.js Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
ClearCookies.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
ClearCookies.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
ClearPromptText.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
ClearPromptText.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
Command.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Command.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
CommandFactory.cpp Add blacklisting support to webkit server. 2012-11-15 10:32:06 -05:00
CommandFactory.h Pass the WebPageManager to each command 2012-05-29 22:23:02 -04:00
CommandParser.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
CommandParser.h CommandParser accepts a CommandFactory and emits a Command 2012-03-21 19:30:43 -04:00
Connection.cpp Disconnect signals from TimeoutCommand after fired 2012-10-25 23:51:57 -04:00
Connection.h Disconnect signals from TimeoutCommand after fired 2012-10-25 23:51:57 -04:00
ConsoleMessages.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
ConsoleMessages.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
CurrentUrl.cpp Use old method to find current URL in Qt < 4.8.0 2012-10-23 23:24:42 -04:00
CurrentUrl.h Use old method to find current URL in Qt < 4.8.0 2012-10-23 23:24:42 -04:00
EnableLogging.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
EnableLogging.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Evaluate.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Evaluate.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Execute.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Execute.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Find.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Find.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
find_command.h Add blacklisting support to webkit server. 2012-11-15 10:32:06 -05:00
FrameFocus.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
FrameFocus.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetCookies.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetCookies.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetTimeout.cpp Revert "Revert "Add configurable timeouts to commands."" 2012-10-24 07:55:29 -04:00
GetTimeout.h Revert "Revert "Add configurable timeouts to commands."" 2012-10-24 07:55:29 -04:00
GetWindowHandle.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetWindowHandle.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetWindowHandles.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
GetWindowHandles.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Header.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
Header.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Headers.cpp Read status and headers from response after load 2012-10-23 23:24:42 -04:00
Headers.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
IgnoreSslErrors.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
IgnoreSslErrors.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
JavascriptAlertMessages.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
JavascriptAlertMessages.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
JavascriptConfirmMessages.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
JavascriptConfirmMessages.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
JavascriptInvocation.cpp Command to enable a more useful debug log 2012-07-08 09:01:26 -07:00
JavascriptInvocation.h Command to enable a more useful debug log 2012-07-08 09:01:26 -07:00
JavascriptPromptMessages.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
JavascriptPromptMessages.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
main.cpp Add option to disable image loading in WebKit. 2012-05-11 14:17:00 -04:00
NetworkAccessManager.cpp Set the URL of NoOpReply to the request URL 2012-11-30 21:37:56 -05:00
NetworkAccessManager.h Set the URL of NoOpReply to the request URL 2012-11-30 21:37:56 -05:00
NetworkCookieJar.cpp adds cookie management functions to Webkit::Browser 2011-09-30 11:47:21 -04:00
NetworkCookieJar.h adds cookie management functions to Webkit::Browser 2011-09-30 11:47:21 -04:00
Node.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Node.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
NoOpReply.cpp Set the URL of NoOpReply to the request URL 2012-11-30 21:37:56 -05:00
NoOpReply.h Set the URL of NoOpReply to the request URL 2012-11-30 21:37:56 -05:00
NullCommand.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
NullCommand.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
PageLoadingCommand.cpp Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
PageLoadingCommand.h PageLoadingCommand implements the Command interface 2012-07-08 12:05:50 -07:00
Render.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Render.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
RequestedUrl.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
RequestedUrl.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Reset.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Reset.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
ResizeWindow.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
ResizeWindow.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Response.cpp Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
Response.h Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
Server.cpp Move window change handling into WebPageManager 2012-05-29 22:23:02 -04:00
Server.h WebPageManager is no longer a singleton 2012-05-29 22:23:02 -04:00
SetConfirmAction.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetConfirmAction.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetCookie.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SetCookie.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SetPromptAction.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetPromptAction.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetPromptText.cpp Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetPromptText.h Control JavaScript confirmation dialogs from Ruby 2012-07-13 10:12:49 -07:00
SetProxy.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
SetProxy.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SetSkipImageLoading.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SetSkipImageLoading.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SetTimeout.cpp Revert "Revert "Add configurable timeouts to commands."" 2012-10-24 07:55:29 -04:00
SetTimeout.h Revert "Revert "Add configurable timeouts to commands."" 2012-10-24 07:55:29 -04:00
SetUrlBlacklist.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
SetUrlBlacklist.h Add blacklisting support to webkit server. 2012-11-15 10:32:06 -05:00
SocketCommand.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
SocketCommand.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Source.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
Source.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Status.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Status.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
TimeoutCommand.cpp Process all pending events before checking if page is loading 2012-11-30 21:37:56 -05:00
TimeoutCommand.h Don't redefine signal finished on TimeoutCommand 2012-11-21 11:32:24 -05:00
UnsupportedContentHandler.cpp Render non-HTML content when reply emits finished 2012-10-23 23:24:42 -04:00
UnsupportedContentHandler.h Fix issues with Qt 4.8 2012-10-23 21:00:50 -04:00
Url.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Url.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Visit.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
Visit.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
webkit_server.pro Add blacklisting support to webkit server. 2012-11-15 10:32:06 -05:00
webkit_server.qrc Moved Javascript code into a .js file that gets loaded into each page 2011-02-25 22:32:22 -05:00
WebPage.cpp Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
WebPage.h Fix status code and headers for iframes 2012-11-30 21:26:40 -05:00
WebPageManager.cpp Set URL to about:blank on WebPage initialization 2012-10-25 23:46:52 -04:00
WebPageManager.h Revert "Revert "Add configurable timeouts to commands."" 2012-10-24 07:55:29 -04:00
WindowFocus.cpp Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00
WindowFocus.h Split Command into more abstract Command and concrete SocketCommand 2012-07-08 12:04:30 -07:00