summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
Commit message (Collapse)AuthorAgeFilesLines
* The final bits needed so we can navigate away from Flash pages without ↵evan@chromium.org2009-02-051-3/+13
| | | | | | | | | | | | | | crashing. Also fixes the plugin positioning. We needed to catch plug-removed and return TRUE, as well as implement a bit more of the GtkContainer API. Also, Flash seems to crash no matter what when I call the SetWindow with a NULL window, so don't do that for now. (It can be revisited once that code is remerged.) Review URL: http://codereview.chromium.org/22003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9274 0039d316-1c4b-4281-b951-d872f2087c98
* Report timeout before sending EOF to mark the correct test as timed out.kuchhal@chromium.org2009-02-051-1/+1
| | | | | | | | BUG=7428 Review URL: http://codereview.chromium.org/20102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9266 0039d316-1c4b-4281-b951-d872f2087c98
* Fix double free in test_shell_tests on linux with SHARED=1.tc@google.com2009-02-051-7/+14
| | | | | | | | | | Original patch by Craig Schlenter at: http://codereview.chromium.org/17233 Review URL: http://codereview.chromium.org/21103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9265 0039d316-1c4b-4281-b951-d872f2087c98
* Convert webkit_glue::GetLocalizedString to return a string16tc@google.com2009-02-053-6/+9
| | | | | | | | | | instead of a wstring. Convert the linux data pack files to pack message strings as utf16 instead of utf8. Review URL: http://codereview.chromium.org/20060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9193 0039d316-1c4b-4281-b951-d872f2087c98
* Remove FromWindow from the WebWidgetHost interface and make it a static ↵jhawkins@chromium.org2009-02-054-14/+3
| | | | | | | | function local to the win implementation as it's only being used on win. Review URL: http://codereview.chromium.org/20061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9192 0039d316-1c4b-4281-b951-d872f2087c98
* Make WebWidgetHost's widget into a real GtkWidget.evan@chromium.org2009-02-041-5/+106
| | | | | | | | | This is needed by plugins, as explained in the comment above the new code. Review URL: http://codereview.chromium.org/20053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9188 0039d316-1c4b-4281-b951-d872f2087c98
* Fix two variables that were renamed but no changed on win.jhawkins@chromium.org2009-02-042-3/+2
| | | | | | | | TBR=tony Review URL: http://codereview.chromium.org/21056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9172 0039d316-1c4b-4281-b951-d872f2087c98
* Use gfx::NativeView instead of gfx::NativeWindow where appropriate. Switch ↵jhawkins@chromium.org2009-02-0411-37/+36
| | | | | | to platform-specific types in the implementation files and change variable names to match the header. Based on cl 8783 by Evan Martin. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9171 0039d316-1c4b-4281-b951-d872f2087c98
* Get windowed plugins (Flash) limping along on Linux.evan@chromium.org2009-02-041-2/+15
| | | | | | | | | | | We still crash when you navigate away from the page. (PS: the plan is to unfork the _gtk.cc file once it gets closer to what we want, so you don't need to look at that too closely. I just wanted to check in what I have since it's getting big.) Review URL: http://codereview.chromium.org/19413 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9170 0039d316-1c4b-4281-b951-d872f2087c98
* This CL adds macro used to track the creation and destructionjcampan@chromium.org2009-02-041-1/+4
| | | | | | | | | | | of HWNDs, in an attempt to detect potential double-delete. A double-delete of a HWND might be responsible for the crasher http://crbug.com/4714 Note: this CL was previously committed and reverted because it broke the sandbox integration module. Review URL: http://codereview.chromium.org/21032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9161 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes MOST of a layout test. Before the font was WAY off because itdsh@google.com2009-02-041-0/+8
| | | | | | | | | | | couldn't find the correct font. Now the font is perfect, but the listbox controls are different. This is expected, so I'm rebaselining the pixel test. The text diff is still off by one number, so I'm leaving that alone until we figure it out. Review URL: http://codereview.chromium.org/23001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9120 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 9109.ojan@google.com2009-02-031-4/+1
| | | | | | | Broke the build. Review URL: http://codereview.chromium.org/20029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9110 0039d316-1c4b-4281-b951-d872f2087c98
* This CL adds macro used to track the creation and destructionjcampan@chromium.org2009-02-031-1/+4
| | | | | | | | | | | | of HWNDs, in an attempt to detect potential double-delete. A double-delete of a HWND might be responsible for the crasher http://crbug.com/4714 Review URL: http://codereview.chromium.org/21018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9109 0039d316-1c4b-4281-b951-d872f2087c98
* Adds implementation of web history in LayoutTestController, causing 18 ↵jcampan@chromium.org2009-02-032-4/+15
| | | | | | | | failing layout tests to pass. Review URL: http://codereview.chromium.org/19544 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9086 0039d316-1c4b-4281-b951-d872f2087c98
* Remove webplugin_impl_mac.mm (a stub) and replace with the real thing and itsamanda@chromium.org2009-02-031-0/+4
| | | | | | | unit tests. Add stacking_order.* (needed for linking). Review URL: http://codereview.chromium.org/19769 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9056 0039d316-1c4b-4281-b951-d872f2087c98
* Move proxy resolve requests out of plugin/renderer process, and into the ↵ericroman@google.com2009-01-311-0/+19
| | | | | | | | browser. Review URL: http://codereview.chromium.org/14142 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9006 0039d316-1c4b-4281-b951-d872f2087c98
* Implement LayoutTestController::numberOfActiveAnimations to get a finnur@google.com2009-01-302-0/+8
| | | | | | | | few Layout tests passing. Review URL: http://codereview.chromium.org/19490 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8968 0039d316-1c4b-4281-b951-d872f2087c98
* Move simple_clipboard_impl into test_shell. It's not needed intc@google.com2009-01-292-0/+8
| | | | | | | | chrome_dll (we use the methods in renderer_glue.cc instead). Review URL: http://codereview.chromium.org/19678 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8919 0039d316-1c4b-4281-b951-d872f2087c98
* Fix our link madness on linux. We now properly linktc@google.com2009-01-291-0/+5
| | | | | | | | | | | | | | | webkit into unit_tests. There was also a problem with simple_clipboard_impl.cc which should only be compiled into test_shell. I can't remove mock_webkit_glue.cc until I verify that the mac build doesn't need it anymore. Review URL: http://codereview.chromium.org/19474 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8910 0039d316-1c4b-4281-b951-d872f2087c98
* We need to reset the theme stuff in a code path that actually used when notthomasvl@chromium.org2009-01-291-9/+8
| | | | | | | in layout test mode. Review URL: http://codereview.chromium.org/19668 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8890 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Linux: use WebKit HEAD's gtk2drawing.c"agl@chromium.org2009-01-291-6/+0
| | | | | | | | | Dean pointed out that this is causing layout test failures. Review URL: http://codereview.chromium.org/19664 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8877 0039d316-1c4b-4281-b951-d872f2087c98
* Go ahead and wire in the plugin list to the shell, doesn't help anything pass,thomasvl@chromium.org2009-01-291-1/+1
| | | | | | | | but in doing this it cause a bunch of other linker issues to get hit, so this will help force more things be ported right. Review URL: http://codereview.chromium.org/19448 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8875 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: use WebKit HEAD's gtk2drawing.cagl@chromium.org2009-01-291-0/+6
| | | | | | | Review URL: http://codereview.chromium.org/18053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8862 0039d316-1c4b-4281-b951-d872f2087c98
* Change URLRequest to use a ref-counted buffer for actual IO.rvargas@google.com2009-01-291-5/+6
| | | | | | | | | | This will re-land http://codereview.chromium.org/18390 BUG=5325 Review URL: http://codereview.chromium.org/19004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8847 0039d316-1c4b-4281-b951-d872f2087c98
* Context menus for text selections in editable boxes and links should include ↵pkasting@chromium.org2009-01-282-6/+6
| | | | | | | | the Search menu item. Original patch by Brian Duff (see http://codereview.chromium.org/16510 ), r=me. BUG=1925 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8815 0039d316-1c4b-4281-b951-d872f2087c98
* restore setting the netresource callbacktc@google.com2009-01-282-2/+3
| | | | | | | | | | this is needed in both the windows and linux build for loading directory listings. Review URL: http://codereview.chromium.org/19616 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8789 0039d316-1c4b-4281-b951-d872f2087c98
* Break association between TestShellWebView and TestShell beforeshess@chromium.org2009-01-271-1/+8
| | | | | | | | | | | deleting TestShell. In layout tests where windows were closed from JavaScript code, in some cases our delayed -cleanup: was called before the NSWindow was autoreleased, which later lead to an attempt to repaint, which would dereference the TestShell being deleted. Patched from http://codereview.chromium.org/18738 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8770 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for UA spoofing, and spoof Safari's UA string when loading URLsdarin@chromium.org2009-01-272-2/+6
| | | | | | | | | | | from *.mail.live.com (to fix hotmail). BUG=4111 R=wtc Review URL: http://codereview.chromium.org/19025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8764 0039d316-1c4b-4281-b951-d872f2087c98
* Windows, test_shell: build fixagl@chromium.org2009-01-271-1/+2
| | | | | | | Review URL: http://codereview.chromium.org/18866 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8757 0039d316-1c4b-4281-b951-d872f2087c98
* POSIX: gfx::NativeViewId and CrossProcessEventagl@chromium.org2009-01-273-5/+8
| | | | | | | | | | | | | | | | | | | Create a couple new typedefs for porting work. Firstly, gfx::NativeViewId is a handle to a platform specific widget in the renderer process. For Windows, this is just a HWND as before. However, in other platforms the ids used in the renderer process will be something else. CrossProcessEvent is the type of a HANDLE to a Windows event object which is used across processes. Since we aren't going to support these sorts of events on non-Windows platforms, this will have to go away at some point. For now, however, this lets us build code without too many ifdefs all over the place. Review URL: http://codereview.chromium.org/18768 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8756 0039d316-1c4b-4281-b951-d872f2087c98
* Small test shell work:thomasvl@chromium.org2009-01-272-14/+4
| | | | | | | | | - remove some unused functions - add the gtk and win code to the project so it's easier to continue working on cleanup. Review URL: http://codereview.chromium.org/19031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8752 0039d316-1c4b-4281-b951-d872f2087c98
* If the shell is in layout tests mode, we lie and don't return the grow boxthomasvl@chromium.org2009-01-271-4/+5
| | | | | | | | | location. This cases the resizer to draw over the scroll arrows which makes our images match the webkit ones so we can avoid rebasing everything w/ scrollbars. Review URL: http://codereview.chromium.org/19016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8712 0039d316-1c4b-4281-b951-d872f2087c98
* Do no use custom gtkrc files in layout test mode.thestig@chromium.org2009-01-261-0/+5
| | | | | | | | On desktop environments like KDE, custom gtkrc files prevent test shell from setting the theme correctly. Review URL: http://codereview.chromium.org/18769 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8649 0039d316-1c4b-4281-b951-d872f2087c98
* Update run_all_tests to use the platform delegate, thus removing evenamanda@chromium.org2009-01-263-24/+9
| | | | | | | more ifdefs. Review URL: http://codereview.chromium.org/18766 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8643 0039d316-1c4b-4281-b951-d872f2087c98
* Unfork test_shell_main:amanda@chromium.org2009-01-2612-715/+566
| | | | | | | | | | | | | | | | | - remove Mac version - move platform-specific operations into PlatformDelegate and remove #ifdefs - add event recorder link stubs for use by platforms that don't have event recording working yet Notes: There's a bunch of stuff in test_shell_{gtk,mac,win} that should also be pulled into the platform delegate so that the TestShell class can also be unforked, but those can be worked on independently per platform after this refactoring. Review URL: http://codereview.chromium.org/18451 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8629 0039d316-1c4b-4281-b951-d872f2087c98
* revert r8603rvargas@google.com2009-01-241-6/+5
| | | | | | Review URL: http://codereview.chromium.org/18576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8605 0039d316-1c4b-4281-b951-d872f2087c98
* Change URLRequest to use a ref-counted buffer for actual IO.The ref-counting ↵rvargas@google.com2009-01-241-5/+6
| | | | | | | | will prevent the deletion / reuse of memorywhile the buffer is actually being used by pending IO.This seems a very intrusive change, but at least we will be ableto make sure that it works without having to chase every singledestruction of an URLRequest to make sure that any pending IOwas cancelled, and also allows us to avoid blocking onthe object destruction.BUG=5325 Review URL: http://codereview.chromium.org/18390 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8603 0039d316-1c4b-4281-b951-d872f2087c98
* Load plugin metadata (mime types, etc.) on Linux.evan@chromium.org2009-01-241-4/+1
| | | | | | | | | Verified to work with at least Flash 10. Review URL: http://codereview.chromium.org/18571 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8600 0039d316-1c4b-4281-b951-d872f2087c98
* Install the npapi_test_plugin in the same way we did the layout_test one.evan@chromium.org2009-01-231-0/+4
| | | | | | | Review URL: http://codereview.chromium.org/18563 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8582 0039d316-1c4b-4281-b951-d872f2087c98
* Keystone auto-update support for TestShellmark@chromium.org2009-01-234-1/+197
| | | | | | Review URL: http://codereview.chromium.org/18521 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8574 0039d316-1c4b-4281-b951-d872f2087c98
* Dump text/image on notifyDone.kuchhal@chromium.org2009-01-239-201/+157
| | | | | | Review URL: http://codereview.chromium.org/18440 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8532 0039d316-1c4b-4281-b951-d872f2087c98
* Do the SCons hackery necessary to get the test plugin in the right directory.evan@chromium.org2009-01-231-0/+10
| | | | | | | Review URL: http://codereview.chromium.org/18696 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8530 0039d316-1c4b-4281-b951-d872f2087c98
* Build some basic plugin code on Linux.evan@chromium.org2009-01-221-4/+1
| | | | | | | | | Mostly style tweaks as I read some files, and some NOTIMPLEMENTED stubs. Review URL: http://codereview.chromium.org/18685 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8508 0039d316-1c4b-4281-b951-d872f2087c98
* Add back convolver_unittest.cc and image_operations_unittest.cc.maruel@chromium.org2009-01-223-1/+12
| | | | | | | | | | | | Fix a TODO in platform_canvas_unittest.cc. Make vector_canvas_unittest.cc slightly less dependent on base/. Remove Windows 2000 checks. (Same as r8458 with platform_canvas_unittest.cc and SConscript fixed) BUG=5113 Review URL: http://codereview.chromium.org/18511 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8498 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the doubling of the timeout value, the build bots seem to be doingthomasvl@chromium.org2009-01-221-4/+3
| | | | | | | | better, and if it's still a problem, we'll update bot scripts to deal w/ it so we don't force the longer delays on all developers. Review URL: http://codereview.chromium.org/18503 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8465 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 8462,8458 since it broke the linux builder.maruel@chromium.org2009-01-223-12/+1
| | | | | | Review URL: http://codereview.chromium.org/18668 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8463 0039d316-1c4b-4281-b951-d872f2087c98
* Fix SCons build breakage.maruel@chromium.org2009-01-221-3/+3
| | | | | | Review URL: http://codereview.chromium.org/18666 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8462 0039d316-1c4b-4281-b951-d872f2087c98
* Add back convolver_unittest.cc and image_operations_unittest.cc.maruel@chromium.org2009-01-223-1/+12
| | | | | | | | | | | Fix a TODO in platform_canvas_unittest.cc. Make vector_canvas_unittest.cc slightly less dependent on base/. Remove Windows 2000 checks. BUG=5113 Review URL: http://codereview.chromium.org/18623 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8458 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some uses of Append(FILE_PATH_LITERAL()) with AppendASCII().deanm@chromium.org2009-01-223-15/+15
| | | | | | | | | This also removes an incorrect FILE_PATH_LITERAL(kParentDirectory). They got lucky the macro doesn't do anything on Mac. Review URL: http://codereview.chromium.org/18496 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8451 0039d316-1c4b-4281-b951-d872f2087c98
* Include webkit strings in test shell data pack.tc@google.com2009-01-222-134/+7
| | | | | | | | | | This adds <message> node to the types of GRIT nodes that we can stuff into a data package file and removes a test shell hack. Review URL: http://codereview.chromium.org/18478 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8431 0039d316-1c4b-4281-b951-d872f2087c98