summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell.cc
Commit message (Collapse)AuthorAgeFilesLines
* Disable HTML5 parser on 472 release branch.tonyg@chromium.org2010-07-301-1/+1
| | | | | | | | BUG=49944 TEST=LayoutTests Review URL: http://codereview.chromium.org/3080011 git-svn-id: svn://svn.chromium.org/chrome/branches/472/src@54368 0039d316-1c4b-4281-b951-d872f2087c98
* Pepper v2 Font API browser implementation.jam@chromium.org2010-07-091-0/+12
| | | | | | Review URL: http://codereview.chromium.org/2956002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52009 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate most of the remaining wstring file_util functions.evan@chromium.org2010-07-081-4/+4
| | | | | | | | | | | | | These still exist on Windows due to being used by the installer, but by moving them into the Windows-only block we prevent them from being used in new code. (I am already finding new code using some of these! I am glad to be rid of them.) BUG=24672 Review URL: http://codereview.chromium.org/2850042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51862 0039d316-1c4b-4281-b951-d872f2087c98
* Show a warning message if the cache might not be cleared between runs.mlloyd@chromium.org2010-07-021-0/+4
| | | | | | | | | BUG=None. TEST=Unit tests pass. Review URL: http://codereview.chromium.org/2819037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51541 0039d316-1c4b-4281-b951-d872f2087c98
* Deprecate more old filepath functions.evan@chromium.org2010-07-011-2/+1
| | | | | | | | | | | | These still exist on Windows due to being used by the installer, but by moving them into the Windows-only block we prevent them from being used in new code. BUG=24672 Review URL: http://codereview.chromium.org/2861042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51453 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: migrate to new WebView constructor.pfeldman@chromium.org2010-06-251-5/+0
| | | | | | Review URL: http://codereview.chromium.org/2814033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50839 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50726 "DevTools: Migrate to new WebView initialization (pass devtools ↵pfeldman@chromium.org2010-06-241-0/+5
| | | | | | | | client directly)." Review URL: http://codereview.chromium.org/2871023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50727 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Migrate to new WebView initialization (pass devtools client directly).pfeldman@chromium.org2010-06-241-5/+0
| | | | | | Review URL: http://codereview.chromium.org/2864020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50726 0039d316-1c4b-4281-b951-d872f2087c98
* Fix files with svn:executable permissions.thestig@chromium.org2010-06-231-0/+0
| | | | | | | BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50566 0039d316-1c4b-4281-b951-d872f2087c98
* Rolls WebKit 61233:61234bulach@chromium.org2010-06-161-1/+1
| | | | | | | | Switches over to the new HTML5 Parser, originally in http://codereview.chromium.org/2809011. Review URL: http://codereview.chromium.org/2843005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49936 0039d316-1c4b-4281-b951-d872f2087c98
* Actually clear the disk cache, and keep it enabled, between benchmark runs.mlloyd@chromium.org2010-06-051-0/+4
| | | | | | | | | | | | | Fixes a small TODO in the benchmarking extension. Keep the disk cache turned on during benchmarking, and doom all entries between benchmark runs, rather than disabling it entirely. BUG=none TEST=All tests pass. Review URL: http://codereview.chromium.org/669115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48994 0039d316-1c4b-4281-b951-d872f2087c98
* Adds --html5-parser flag to test_shell to test out the new HTML5 parsing codejamesr@chromium.org2010-06-011-0/+3
| | | | | | | | | | | This mirrors the same flag present in DumpRenderTree. TEST=none BUG=none Review URL: http://codereview.chromium.org/2477002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48661 0039d316-1c4b-4281-b951-d872f2087c98
* Try to get PluginTest.DefaultPluginLoadTest running on mac and linux.thakis@chromium.org2010-05-281-2/+0
| | | | | | | | BUG=10952,17392 Review URL: http://codereview.chromium.org/2329004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48530 0039d316-1c4b-4281-b951-d872f2087c98
* Update Webkit 58626:58719. Make use of new setting for disabling clipboard ↵inferno@chromium.org2010-05-041-0/+1
| | | | | | | | | | | access, already added in webkit as part of fix - https://bugs.webkit.org/show_bug.cgi?id=27751. Enable the setting in Test framework. Also, provide a command-line switch for this setting. BUG=41654 TEST=None Review URL: http://codereview.chromium.org/1815005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46299 0039d316-1c4b-4281-b951-d872f2087c98
* Add an --allow-external-pages switch to test_shell.dpranke@chromium.org2010-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Normally test_shell will not let you load an external URL (like "www.google.com") when running in --layout-tests mode. This is a good thing because it keeps us from writing tests that might have unpredictable results if the external URL changes. However, it would be cool to be able to use the --layout-test infrastructure to capture the rendered/painted page (outside of the actual layout tests run) for QA purposes. This change adds an --allow-external-pages switch to override the check described above. This is kind of a short-term fix. A better fix would be to add a "--headless" flag that loaded and rendered the page and dumped the whole thing, entirely separate from --layout-test mode. I will add that soon. BUG=none TEST=none R=dglazkov Review URL: http://codereview.chromium.org/1748005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45403 0039d316-1c4b-4281-b951-d872f2087c98
* Enable support for notifications layout tests in test shell.johnnyg@chromium.org2010-04-141-0/+3
| | | | | | | | | | | | | BUG=none TEST=notifications layout tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44372 Reverted. Review URL: http://codereview.chromium.org/1549039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44515 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileVersionInfo into an interface with platform implementations.tony@chromium.org2010-04-141-0/+4
| | | | | | | | | | | | | This allows us to move the chrome specific version informaton used by Linux into src/chrome. Add a GetChromeVersionInfo() for Linux in src/chrome/app/ and make sure to use this in src/chrome. In src/webkit/glue, add a new glue method for getting the product version. When compiling chrome, use an implementation in src/chrome/renderer (which uses GetChromeVersionInfo()) and a stub implementation for test_shell. Review URL: http://codereview.chromium.org/1560027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44435 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 44372 - Enable support for notifications layout tests in test shell.nsylvain@chromium.org2010-04-131-3/+0
| | | | | | | | | | | | BUG=none TEST=notifications layout tests Review URL: http://codereview.chromium.org/1549039 TBR=johnnyg@chromium.org Review URL: http://codereview.chromium.org/1542030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44377 0039d316-1c4b-4281-b951-d872f2087c98
* Enable support for notifications layout tests in test shell.johnnyg@chromium.org2010-04-131-0/+3
| | | | | | | | | BUG=none TEST=notifications layout tests Review URL: http://codereview.chromium.org/1549039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44372 0039d316-1c4b-4281-b951-d872f2087c98
* Don't navigate TestShell page to about:blank if it's devtools frontend ↵yurys@chromium.org2010-04-021-3/+7
| | | | | | | | because it is supposed to load only devtools frontend page and only once. Review URL: http://codereview.chromium.org/1600007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43471 0039d316-1c4b-4281-b951-d872f2087c98
* Allow running tests with enabled but closed Web Inspector. Corresponding ↵yurys@chromium.org2010-03-261-1/+2
| | | | | | | | WebKit change: https://bugs.webkit.org/show_bug.cgi?id=36610 Review URL: http://codereview.chromium.org/1359001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42745 0039d316-1c4b-4281-b951-d872f2087c98
* Move image codec stuff to toplevel gfx.ben@chromium.org2010-03-181-1/+1
| | | | | | | | | TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41911 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/gfx contents to gfx/ben@chromium.org2010-03-141-1/+1
| | | | | | | | | TBR=darin BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41559 0039d316-1c4b-4281-b951-d872f2087c98
* webkit/tools: string_util.h -> utf_string_conversions.h fix.jhawkins@chromium.org2010-03-061-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/668228 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40851 0039d316-1c4b-4281-b951-d872f2087c98
* Landing for dbelenko.dimich@chromium.org2010-03-031-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix for bug 28646: Implement LayoutTestController.dumpSelectionRect() This fix will prepare the test cases affected by bug 28646 for rebaseline. It does three things: 1. Implements dumpSelectionRect() and the related drawing code. 2. Marks the affected test cases as FAIL and removes platform restrictions for them from test_expectations.txt 3. Marks three new test cases as FAIL. These test cases have incorrect baseline images. I have contacted the authors and got an OK from them to rebaseline the expected image. After this is committed, I will retrieve the images from the buildbot and rebaseline the expectations for the affected test cases. Trybot runs for this patch: http://build.chromium.org/buildbot/try-server/builders/layout_linux/builds/1477 http://build.chromium.org/buildbot/try-server/builders/layout_win/builds/1478 http://build.chromium.org/buildbot/try-server/builders/layout_mac/builds/1341 BUG=28646 TEST=This change will enable over 30 tests on all three platforms. I have inspected the images visually, the rect gets drawn correctly, in the same locations as in WebKit tests, but with a slightly different color, due to differences in Skia rasterization and alpha blending. These differences are not critical to the purpose of the test cases. Review URL: http://codereview.chromium.org/661437 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40484 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome-side change of WebKit API change to expose a "reload all" flag.evan@chromium.org2010-02-181-1/+1
| | | | | | | | Doesn't hook up the UI for it yet, just adds the appropriate API. Review URL: http://codereview.chromium.org/605026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39356 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium plumbing for new file:// security flag, including test_shell support.cevans@chromium.org2010-02-181-0/+1
| | | | | | | | | | | | | This change does not alter behaviour but will enable a WebKit test to be written. BUG=4197 TEST=WebKit test pending TBR=abarth Review URL: http://codereview.chromium.org/625009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39334 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39287 - Chromium pieces to use the WebKit support for isolation ↵cevans@chromium.org2010-02-181-1/+0
| | | | | | | | | | | | | | | | | | file:// documents in their own unique domains. By default, we use this isolation for security. We provide a command line switch override for developers: allowfileaccessfromfiles BUG=4197 TEST=WebKit test pending Review URL: http://codereview.chromium.org/625001 TBR=abarth@chromium.org Review URL: http://codereview.chromium.org/625007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39304 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium pieces to use the WebKit support for isolation file:// documents incevans@chromium.org2010-02-171-0/+1
| | | | | | | | | | | | | their own unique domains. By default, we use this isolation for security. We provide a command line switch override for developers: --allow-file-access-from-files BUG=4197 TEST=WebKit test pending Review URL: http://codereview.chromium.org/625001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39287 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Reduce header dependencies in webkitphajdan.jr@chromium.org2010-02-091-0/+1
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/582015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38461 0039d316-1c4b-4281-b951-d872f2087c98
* Add UI to TestShell to enable/disable images, plugins, and scripts.darin@chromium.org2010-01-291-0/+4
| | | | | | | | R=pkasting Review URL: http://codereview.chromium.org/549213 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37557 0039d316-1c4b-4281-b951-d872f2087c98
* Make the UI controls (back/forward/stop) in TestShell disable when appropriate.darin@chromium.org2010-01-271-0/+9
| | | | | | | | R=dglazkov Review URL: http://codereview.chromium.org/554102 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37309 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CloseIdleConnections -> CloseCurrentConnections.mbelshe@chromium.org2010-01-141-1/+1
| | | | | | | | | | | | | | | | | This method is (and was) just for debugging; while it was closing idle connections, that was not aggressive enough; the benchmark needs to close all connections, not just the idle ones. To ensure connections are abandoned, create a new pool; leaving the old pool to languish as any pending sockets die. BUG=none TEST=none Review URL: http://codereview.chromium.org/549031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36208 0039d316-1c4b-4281-b951-d872f2087c98
* bsds: views/ and webkit/ support for FreeBSD/OpenBSDevan@chromium.org2009-12-311-2/+2
| | | | | | | | | - add a TOOLKIT_USES_GTK #define to catch GTK and Views+GTK - lots of ifdef twiddling Review URL: http://codereview.chromium.org/519030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35402 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: Add support for inspector layout tests. Step 3.pfeldman@chromium.org2009-12-151-1/+38
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34544 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb through site-specific quirks setting with a command line switch.dglazkov@chromium.org2009-11-251-0/+1
| | | | | | | | | | | | Quirks are enabled by default. R=darin BUG=19586 TEST=wikileaks.org should now have its sidebar in the proper place. Review URL: http://codereview.chromium.org/442010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33107 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug 27217 - disable Java in test_shell by default, to match dpranke@google.com2009-11-191-1/+1
| | | | | | | | | | | | | | | DumpRenderTree's behavior. This causes a couple other tests to produce output that could be construed as "failing" (in the way that upstream fails as well). I will file a separate bug in webkit to figure out what to do about them. R=eseidel@chromium.org BUG=27217 TEST=LayoutTests/fast/replaced/applet-rendering-java-disabled.html Review URL: http://codereview.chromium.org/405026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32479 0039d316-1c4b-4281-b951-d872f2087c98
* Remove CRLFs I accidentally committed.dglazkov@chromium.org2009-11-191-17/+17
| | | | | | | | | | TEST=no CRLFs BUG=none TBR=jam Review URL: http://codereview.chromium.org/407009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32450 0039d316-1c4b-4281-b951-d872f2087c98
* Implement testRepaint and sweepHorizontally methods on layoutTestController.dglazkov@chromium.org2009-11-181-1/+18
| | | | | | | | | | | | This involves implementing row-at-a-time and line-at-a-time repainting of the backing store. R=darin BUG=21510 TEST=LayoutTests/fast/repaint/shadow-multiple* Review URL: http://codereview.chromium.org/397027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32401 0039d316-1c4b-4281-b951-d872f2087c98
* Upstreaming WebKit.gypyaar@chromium.org2009-11-121-11/+11
| | | | | | | | | | | | This mega patch contains a few simple but tightly dependent changes: 1. Deletion of webkit/api/WebKit.gyp. The file now lives in webkit.org. 2. Rename of webkit/webkit.gyp to webkit/webkit_glue.gyp. Having two webkit.gyp was a source of developer confusion. 3. Gyp dependencies are updated across chromium to point at the upstream WebKit.gyp and the renamed webkit_glue.gyp. 4. Some 200+ files include paths fixed to point to third_party/WebKit/WebKit/chromium instead of webkit/api. The later will be deleted in a subsequent patch. Review URL: http://codereview.chromium.org/387020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31749 0039d316-1c4b-4281-b951-d872f2087c98
* Commit issue 243032: First implementation of PlainTextController.rolandsteiner@chromium.org2009-11-091-3/+5
| | | | | | | | | | | BUG=23285 TEST=LayoutTests/editing/text-iterator/basic-iteration.html Review URL=http://codereview.chromium.org/243032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31422 0039d316-1c4b-4281-b951-d872f2087c98
* Third patch in making destructors of refcounted objects private.jam@chromium.org2009-11-051-2/+1
| | | | | | | BUG=26749 Review URL: http://codereview.chromium.org/363023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31169 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to the new way of enabling/disabling session/local storage. jorlow@chromium.org2009-11-051-1/+0
| | | | | | | | BUG=none TEST=|'localStorage' in window| should only be true iff --enable-local-storage is specified Review URL: http://codereview.chromium.org/335034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31082 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome changes to extract the code from V8Proxy that special-casesdarin@chromium.org2009-11-031-8/+0
| | | | | | | | | | | | | | | | | | | | | when scripts are allowed despite user preferences disabling them. Adds more accessors and comments to WebSecurityOrigin. Removes no longer necessary webkit_glue functions. Removes no longer necessary TemporaryGlue.h file. R=abarth BUG=none TEST=browser features like the new tab page and history view should still work when passing --disable-javascript to chrome. similarly, file and ftp directory listings should remain functional when that command line flag is specified. Review URL: http://codereview.chromium.org/351013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30797 0039d316-1c4b-4281-b951-d872f2087c98
* Ignore output to stdout that comes before we've started loading a test.ojan@chromium.org2009-10-291-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are tests that, for example, log errors to the console after calling notifyDone. In those cases, we'd get the following: TestDumpHere #EOF CONSOLE MESSAGE: ... NextTestDumpHere #EOF The console message would get lumped in with the next test. Now we get: #URL:LayoutTests/foo/bar.html TestDumpHere #EOF CONSOLE MESSAGE: ... #URL:LayoutTest/foo/baz.html NextTestDumpHere #EOF We only include the lines between URL and EOF in the test's actual output. All text between EOF and URL gets printed as a warning. Right now, that includes stacktraces from crashing tests. In a followon change, I'll make it so that we properly list crash stacktraces separately. See https://bugs.webkit.org/show_bug.cgi?id=30598 for one such test with this problem. Upstream doesn't see the flakiness we see here due to the following webkit bug: https://bugs.webkit.org/show_bug.cgi?id=30893. BUG=25355 Surprisingly, this passes on the try bots. So it just reduces flakiness. Review URL: http://codereview.chromium.org/315007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30489 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce WebScriptController for script related methods.mhm@chromium.org2009-10-231-1/+2
| | | | | | | | | | | Made it into a class with static methods. BUG=24602 TEST=Compiled Webkit/Chromium and Try Bot'd Review URL: http://codereview.chromium.org/308015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29912 0039d316-1c4b-4281-b951-d872f2087c98
* Allow <video> to read from a data URI. Data URI is now handledhclam@chromium.org2009-10-231-1/+4
| | | | | | | | | | | | | | by SimpleDataSource. Selection of data source is done by the existing factory method by calling to IsMediaFormatSupported. And each data source would determine if they support the mentioned scheme. BUG=24357 TEST=open a video with data:/ scheme. Review URL: http://codereview.chromium.org/284007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29848 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 29747 - Switch over to the new way of enabling/disabling ↵nsylvain@chromium.org2009-10-221-0/+1
| | | | | | | | | | | | | | | session/local storage. BUG=none TEST=|'localStorage' in window| should only be true iff enablelocalstorage is specified Review URL: http://codereview.chromium.org/293032 TBR=jorlow@chromium.org Review URL: http://codereview.chromium.org/315009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29754 0039d316-1c4b-4281-b951-d872f2087c98
* Switch over to the new way of enabling/disabling session/local storage.jorlow@chromium.org2009-10-221-1/+0
| | | | | | | | | | BUG=none TEST=|'localStorage' in window| should only be true iff --enable-local-storage is specified Review URL: http://codereview.chromium.org/293032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29747 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Call setIsActive() when changing focus in layout test mode.rohitrao@chromium.org2009-10-211-1/+5
| | | | | | | | | | | This change effectively reverts http://src.chromium.org/viewvc/chrome?view=rev&revision=25491 and fixes http://crbug.com/16018 in a different way. BUG=http://crbug.com/16018 BUG=http://crbug.com/21738 TEST=layout tests should still pass Review URL: http://codereview.chromium.org/258035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29644 0039d316-1c4b-4281-b951-d872f2087c98