summaryrefslogtreecommitdiffstats
path: root/content/shell/webkit_test_controller.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* [content shell] close the main window during the destructorjochen@chromium.org2013-03-051-0/+5
| | | | | | | | | | | | | We can't invoke DiscardMainWindow() from the destructor since the destructor is invoked from outside of the message loop, and DiscardMainWindow interacts with the message loop. BUG=111316 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12431002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186144 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] don't try to add a virtual border when resizing the view.jochen@chromium.org2013-03-051-3/+1
| | | | | | | | | | | | | | The view should just be resized to the requested size, as there's nothing in the content module that would somehow take the border into account Doesn't currently change any test, as the resize tests are all expecting the change to take place synchronously, and so they fail anyways BUG=111316 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12430002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186141 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] prepare for handling the focus in the rendererjochen@chromium.org2013-03-041-9/+1
| | | | | | | | | | | | Rip out the asynchronous focus handling code, and add an empty implementation of the new WebTestDelegate::setFocus signature BUG=111316 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12387087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185906 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] implement WebTestDelegate::closeRemainingWindowsjochen@chromium.org2013-03-041-0/+13
| | | | | | | | | | | | The method doesn't do a lot yet, since we close all windows at the end of each test anyway, but it's needed once we start reusing the main window BUG=171128 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12379073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185887 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] move sending the test configuration to a methodjochen@chromium.org2013-03-041-11/+17
| | | | | | | | | | | | This makes it easier in an upcoming change to send the test configuration again when preparing an existing web contents for the next test. BUG=171128 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12395006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185874 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] add a method that explicitly discards the main windowjochen@chromium.org2013-03-041-13/+26
| | | | | | | | | | | | | | Currently, it's discarded implicitly in ResetAfterLayoutTest. Later, when reusing a web contents across multiple tests, we will only want to discard the window when a fatal failure occurred. BUG=171128 R=thakis@chromium.org Review URL: https://codereview.chromium.org/12393041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185870 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] print error message when the renderer indicates that a test ↵jochen@chromium.org2013-02-271-0/+5
| | | | | | | | | | | | timed out BUG=111316 R=thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/12330170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184972 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] delete NotImplemented ipc message, since everything is ↵jochen@chromium.org2013-02-251-9/+0
| | | | | | | | | | | | | implemented BUG=111316 R=thakis@chromium.org TEST=no functional change Review URL: https://chromiumcodereview.appspot.com/12319089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184363 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] implement WebTestDelegate::captureHistoryForWindowjochen@chromium.org2013-02-231-0/+48
| | | | | | | | | | | BUG=111316 R=creis@chromium.org TEST=most navigation and history tests pass Review URL: https://chromiumcodereview.appspot.com/12320012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184317 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] plumb more WebTestDelegate methods to the browserjochen@chromium.org2013-02-201-0/+19
| | | | | | | | | | BUG=111316 R=thakis@chromium.org Review URL: https://chromiumcodereview.appspot.com/12297031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183481 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] implement pathToLocalResourcejochen@chromium.org2013-02-201-0/+5
| | | | | | | | | | | | | On windows, this method replaces a /tmp/ prefix with the actual temp path. Otherwise, it removes superfluous leading slashes from file: URLs and passes the path on the rewriteLayoutTestURL BUG=111316 R=thakis@chromium.org TEST=http/tests/plugins/post-url-file.html passes Review URL: https://chromiumcodereview.appspot.com/12282041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183473 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] hook up navigation related WebTestDelegate methodsjochen@chromium.org2013-02-201-0/+16
| | | | | | | | | | BUG=111316 R=jam@chromium.org,marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/12296007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183433 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] after printing an error message, don't print a text dumpjochen@chromium.org2013-02-191-2/+4
| | | | | | | | | | BUG=111316 R=marja@chromium.org TEST=no missing results reported Review URL: https://codereview.chromium.org/12282035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183181 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] start the text block before printing an error messagejochen@chromium.org2013-02-181-0/+1
| | | | | | | | | BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/12255057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183131 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] enable audio dumpsjochen@chromium.org2013-02-181-7/+42
| | | | | | | | | | | | | | | This will make webaudio tests pass. Before, the text header was printed way before the actual text dump happened. This change moves the header printing to just before the dumping to match DRT. BUG=111316 R=marja@chromium.org TEST=webaudio/ passes Review URL: https://codereview.chromium.org/12300010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183113 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] use the proper test url for layout test configurationjochen@chromium.org2013-02-181-7/+11
| | | | | | | | | | | | Before, the current working directory was used. BUG=111316 R=marja@chromium.org TEST=inspector tests don't time out Review URL: https://codereview.chromium.org/12280009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183087 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] Use the TestRunner library again and remove the mock testRunnerjochen@chromium.org2013-02-151-4/+0
| | | | | | | | | | | BUG=111316,173079 TEST=content_browsertests still work, almost all layout tests pass R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/12258047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182794 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] hook up devtools related WebTestDelegate methodsjochen@chromium.org2013-02-151-0/+10
| | | | | | | | | BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/12207206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182706 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] move logic that decides when a test is finished from ↵jochen@chromium.org2013-02-121-84/+23
| | | | | | | | | | | | | | WebKitTestController to WebKitTestRunner This is in preparation for linking against the TestRunner library which will own the logic BUG=111316 TEST=content_browsertests still work R=marja@chromium.org Review URL: https://codereview.chromium.org/12208110 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181913 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] remove all testRunner methods but the ones required to pass ↵jochen@chromium.org2013-02-111-44/+4
| | | | | | | | | | | browser tests BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/12226088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181682 0039d316-1c4b-4281-b951-d872f2087c98
* Add explicit base to FilePath.brettw@chromium.org2013-02-071-2/+2
| | | | | | | | This changes the "easy" content subdirectories (everything but browser, renderer, and common) and the ppapi top level directory. Review URL: https://codereview.chromium.org/12208057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181191 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] add ShellMessageFilter to handle sync IPCs on IO threadjochen@chromium.org2013-01-231-29/+0
| | | | | | | | | | | BUG=169240 TEST=FileSystemLayoutTest.CrossFilesystemOp passes on windows R=kinuko@chromium.org Review URL: https://chromiumcodereview.appspot.com/12038043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178284 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] enable mock scrollbars for compositing layout testsjochen@chromium.org2013-01-171-7/+16
| | | | | | | | | | BUG=111316 R=tsepez@chromium.org,tony@chromium.org,jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/11969043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177509 0039d316-1c4b-4281-b951-d872f2087c98
* Make Isolated filesystem layout tests runnable in content_browsertestskinuko@chromium.org2013-01-111-1/+10
| | | | | | | | | | | | - Add grant permission code in WebKitTestController::OnRegisterIsolatedFileSystem (which wasn't necessary in single-process DRT code) - Pass layout_test_dir_ to PrepareForLayoutTest BUG=156563 TEST=FileSystemLayoutTest.CrossFilesystemOp Review URL: https://codereview.chromium.org/11819032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176232 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] W3C SVG tests need to run in a smaller windowjochen@chromium.org2013-01-101-1/+5
| | | | | | | | | | | | BUG=111316 TEST=W3C SVG tests pass R=marja@chromium.org TBR=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/11828028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176068 0039d316-1c4b-4281-b951-d872f2087c98
* Distinguish plugin disconnections from plugin crashes.yzshen@chromium.org2013-01-101-2/+5
| | | | | | | | | | | | | | | | | | If the channel between a renderer and a plugin encounters an error, currently we display an infobar saying "<plugin_name> has crashed.". This may cause confusion, because the plugin process may still be alive and no crash dump is generated in that case. With this CL, we display a different prompt if the plugin process is still alive: "<plugin_name> has encountered an error." This CL only affects Windows. TEST=None BUG=None Review URL: https://chromiumcodereview.appspot.com/11820009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176060 0039d316-1c4b-4281-b951-d872f2087c98
* Don't attempt to read the process id for a NULL handlejochen@chromium.org2013-01-091-3/+4
| | | | | | | | | BUG=111316 TBR=ricow@chromium.org Review URL: https://codereview.chromium.org/11817014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175801 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] report the PID of a crashed renderer, and always report crashesjochen@chromium.org2013-01-091-4/+42
| | | | | | | | | BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/11819028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175789 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] don't use WebTestRunner::WebPreferences in the browser processjochen@chromium.org2012-12-211-5/+6
| | | | | | | | | | | | | Instead, I've added a function that applies the differing defaults, and we only override the entire WebPreferences when a renderer asks us to. BUG=111316 TEST=running layout tests in single process mode shouldn't crash immediately Review URL: https://chromiumcodereview.appspot.com/11666008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174410 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] run in headless mode (gtk only)jochen@chromium.org2012-12-211-0/+2
| | | | | | | | | | | | | | | Don't show a window, instead make the renderer believe that the window is active and has focus. This also adds the command line option --show-content-shell to run layout tests using a visible window for debugging. BUG=111316 TEST=http/tests/appcache tests don't crash the content_shell, editing/inserting tests don't fail R=jam@chromium.org Review URL: https://chromiumcodereview.appspot.com/11640055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174284 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] when overriding the WebPreferences for layout tests, only ↵jochen@chromium.org2012-12-191-1/+6
| | | | | | | | | | | override the ones specific to layout tests BUG=111316 TEST=appcache tests don't time out Review URL: https://chromiumcodereview.appspot.com/11643004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173881 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] delete ShellWebPreferences.jochen@chromium.org2012-12-181-4/+8
| | | | | | | | | | | | Instead, pass around webkit_glue::WebPreferences instances BUG=111316 R=jam@chromium.org,tsepez@chromium.org Review URL: https://chromiumcodereview.appspot.com/11614003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173720 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] if the document is plain text, dump it as textjochen@chromium.org2012-12-171-0/+5
| | | | | | | | | | BUG=111316 TEST=less tests that fail with [ Missing ] R=marja@chromium.org Review URL: https://codereview.chromium.org/11586008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173440 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] if a layout test runs notifyDone() before it has finished ↵jochen@chromium.org2012-12-171-0/+6
| | | | | | | | | | | loading, wait for the page to finish loading BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/11594006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173436 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] implement additional URL handling methods of the WebTestDelegatejochen@chromium.org2012-12-171-0/+6
| | | | | | | | | | | Those callbacks are not yet used, but are required for the TestRunner BUG=111316 R=marja@chromium.org Review URL: https://codereview.chromium.org/11572041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173435 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] use WebTestRunner::WebPreferences for layout testsjochen@chromium.org2012-12-171-2/+3
| | | | | | | | | | | | | Also, implement two further TestDelegate methods BUG=111316 TEST=xssAuditor tests still work R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/11565036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173402 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] hook up testRunner.registerIsolatedFileSytemjochen@chromium.org2012-12-131-1/+15
| | | | | | | | | | BUG=111316 R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/11564018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172970 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] hook up support for inspector testsjochen@chromium.org2012-12-111-5/+19
| | | | | | | | | | | | | | | | | There's still a number of problems: - DRT runs the inspector from a file:// URL while content_shell runs it via http. Therefore, CORS access restrictions apply (this makes e.g. http/tests/inspector/compiler-script-mapping.html fail) - some tests report slighly different results, e.g. inspector/timeline/timeline-network-resource.html The majority of the tests, however, passes. BUG=111316 TEST=inspector tests pass (most of them) R=marja@chromium.org,pfeldman@chromium.org Review URL: https://chromiumcodereview.appspot.com/11486008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172337 0039d316-1c4b-4281-b951-d872f2087c98
* Reland 170451 - [content shell] add support for testRunner.canOpenWindows ↵jochen@chromium.org2012-12-101-1/+23
| | | | | | | | | | | | | | and disallow openi BUG=111316 R=marja@chromium.org Original Review URL: https://codereview.chromium.org/11411282 Review URL: https://chromiumcodereview.appspot.com/11488005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172075 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] remove WebKitTestRunnerHost.jochen@chromium.org2012-12-101-0/+386
Instead of having an observer per WebContents, only observe the main window. In a previous patch, all IPC messages were already routed to this one main window. Also, rename webkit_test_runner_host.* to webkit_test_controller.* BUG=111316 TEST=nothing breaks R=marja@chromium.org Review URL: https://chromiumcodereview.appspot.com/11494004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172054 0039d316-1c4b-4281-b951-d872f2087c98