2011-05-16 Robert Hogan Reviewed by Kenneth Rohde Christiansen. plugins/invalidate_rect.html fails on linux ports - Make the unix test netscape plugin recognize the onPaintEvent and windowedPlugin parameters. https://bugs.webkit.org/show_bug.cgi?id=54051 * DumpRenderTree/TestNetscapePlugIn/main.cpp: (handleEventX11): * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::displayInvalidatedRegion): * DumpRenderTree/qt/LayoutTestControllerQt.h: * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_handle_event): 2011-05-17 Tony Chang Reviewed by Ojan Vafai. [chromium] move Lucid 64 bit results into LayoutTests/platform/chromium-linux https://bugs.webkit.org/show_bug.cgi?id=60895 Update the tools to handle the move. Lucid 32 results now go in chromium-linux-x86 and the default platform on Linux is now x86_64. * Scripts/webkitpy/layout_tests/deduplicate_tests.py: Default to x86_64 * Scripts/webkitpy/layout_tests/deduplicate_tests_unittest.py: * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py: Default to Lucid * Scripts/webkitpy/layout_tests/port/base.py: ditto * Scripts/webkitpy/layout_tests/port/chromium_linux.py: Update directory fallback and default to Lucid 64 * Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py: * Scripts/webkitpy/layout_tests/port/test.py: Update tests to default to x86_64 * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py: Update bot names. * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py: Whitespace cleanup. 2011-05-17 Adam Roben Make run-api-tests work on Windows when there are spaces in the path Fixes REGRESSION (r86511): run-api-tests fails if there are spaces in the path to TestWebKitAPI.exe Reviewed by David Levin. * Scripts/run-api-tests: (runTestTool): Use the "direct object" form of system() to avoid having the path to TestWebKitAPI.exe be split by the shell. 2011-05-16 Ian Henderson Reviewed by Joseph Pecoraro. Page::goToItem doesn't work while loading is deferred https://bugs.webkit.org/show_bug.cgi?id=60412 Add setDefersLoading and goBack methods to LayoutTestController. We need to use goBack() instead of history.back() because the latter goes through NavigationScheduler, hence doesn't exhibit the bug. * DumpRenderTree/LayoutTestController.cpp: (goBackCallback): (setDefersLoadingCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::goBack): (LayoutTestController::setDefersLoading): * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::goBack): (LayoutTestController::setDefersLoading): * DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::goBack): (LayoutTestController::setDefersLoading): * DumpRenderTree/wx/LayoutTestControllerWx.cpp: (LayoutTestController::goBack): (LayoutTestController::setDefersLoading): 2011-05-16 Sam Weinig Reviewed by Anders Carlsson. TestWebKitAPI should build with clang if it can https://bugs.webkit.org/show_bug.cgi?id=60918 * TestWebKitAPI/Configurations/CompilerVersion.xcconfig: Update CompilerVersion.xcconfig to match others. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Add CompilerVersion.xcconfig to the project. * TestWebKitAPI/Tests/WebKit2/FailedLoad.cpp: (TestWebKitAPI::didFailProvisionalLoadWithErrorForFrame): * TestWebKitAPI/Tests/WebKit2/PageLoadDidChangeLocationWithinPageForFrame.cpp: (TestWebKitAPI::didSameDocumentNavigationForFrame): Add some casts to quiet warnings from clang. 2011-05-16 Dirk Pranke Reviewed by David Levin. add dpranke as a reviewer https://bugs.webkit.org/show_bug.cgi?id=60919 * Scripts/webkitpy/common/config/committers.py: 2011-05-16 Robert Hogan Reviewed by Anders Carlsson. [Gtk] plugins/get-url-notify-with-url-that-fails-to-load.html crashes on buildbot https://bugs.webkit.org/show_bug.cgi?id=60838 The unix test plugin needs to call the test's NPP_URLNotify rather than the browsers. * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_url_notify): 2011-05-16 Brent Fulgham Rubber-stamped by Adam Roben. Adding myself as a reviewer. * Scripts/webkitpy/common/config/committers.py: 2011-05-16 Sam Weinig Fix typo pointed out by Dave Levin. * TestWebKitAPI/PlatformUtilities.h: (TestWebKitAPI::Util::assertWKStringEqual): Strig -> String. 2011-05-16 Sam Weinig Reviewed by David Levin. Convert api tester over to using gtest expectations directly https://bugs.webkit.org/show_bug.cgi?id=60862 * TestWebKitAPI/PlatformUtilities.cpp: (TestWebKitAPI::Util::toSTD): * TestWebKitAPI/PlatformUtilities.h: (TestWebKitAPI::Util::assertWKStrigEqual): Add convenience macro to compare WK2 strings. Add some overloads of toSTD to make the implementation of the macro simpler. * TestWebKitAPI/Test.h: Remove TEST_ASSERT forwarder. [Test changes elided] 2011-05-16 David Kilzer C++ exceptions should not be enabled when building with llvm-gcc-4.2 Reviewed by Mark Rowe. * MiniBrowser/Configurations/Base.xcconfig: Fixed typo. * TestWebKitAPI/Configurations/Base.xcconfig: Ditto. * WebKitTestRunner/Configurations/Base.xcconfig: Ditto. 2011-05-16 Jon Lee Reviewed by Simon Fraser. Can't horizontally scroll iframes and overflow because wheel events are always accepted https://bugs.webkit.org/show_bug.cgi?id=60779 * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::InjectedBundlePage): Set new default method to nil. 2011-05-16 Ademar de Souza Reis Jr. Reviewed by Csaba Osztrogonác. [Qt] Tools.pro misses include(common.pri) https://bugs.webkit.org/show_bug.cgi?id=60883 It includes features.pri, which depends on common.pri (the build is not broken today with the default options, but this is the right thing to do). * Tools.pro: 2011-05-15 Dominic Cooney Unreviewed: adding myself to committers.py. * Scripts/webkitpy/common/config/committers.py: 2011-05-15 Daniel Bates Reviewed by Chris Jerdonek. svn-apply can't handle Git diff that only changes executable bit https://bugs.webkit.org/show_bug.cgi?id=60848 Fixes an issue where svn-{apply, unapply} fail to handle a Git diff for a file that only has an executable bit change. * Scripts/VCSUtils.pm: - Modified regex $chunkRangeRegEx to match chunk range with ending text, say: @@ -2,6 +2,18 @@ foo(). (parseDiff): Modified to count the number of text chunks in the diff. This should also help towards fixing . * Scripts/svn-apply: (patch): Only use standard patch tool if the patch is non-empty and for a text file (i.e. not a binary patch). * Scripts/svn-unapply: (patch): Ditto. * Scripts/webkitperl/VCSUtils_unittest/parseDiff.pl: - Updated expected results for test cases to account for numTextChunks. - Fixed malformed chunk range in test cases: "Git: simple", and "Git: Git diff followed by SVN diff". - Added test case "Git: file that only has an executable bit change". * Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl: - Updated expected results for test cases to account for numTextChunks. 2011-05-15 Sam Weinig Fix windows build. * TestWebKitAPI/win/main.cpp: (main): 2011-05-15 Sam Weinig Reviewed by David Levin. Make API tester more gtest friendly https://bugs.webkit.org/show_bug.cgi?id=60859 * Scripts/run-api-tests: Numerous changes: - Remove logic to run tests one at a time. - Remove logic to build up a list of tests, instead just pass --gtest_list_tests to the test runner and allow gtest to print it for us. - Forward stdout from the test tool to stdout, even in non-verbose runs. - Run test tool from the current working directory instead of the root webkit directory. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Move plist to be with other bundle sources. * TestWebKitAPI/TestsController.cpp: (TestWebKitAPI::TestsController::TestsController): (TestWebKitAPI::TestsController::run): * TestWebKitAPI/TestsController.h: * TestWebKitAPI/mac/main.mm: Simplify TestController down to a single run function. We should consider removing the class entirely at some point. 2011-05-15 Sheriff Bot Unreviewed, rolling out r86504. http://trac.webkit.org/changeset/86504 https://bugs.webkit.org/show_bug.cgi?id=60853 "Broke Qt EventSender in editing/selection tests" (Requested by mwenge on #webkit). * DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::WebPage::WebPage): (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting): (WebCore::DumpRenderTree::initJSObjects): * DumpRenderTree/qt/DumpRenderTreeQt.h: (WebCore::DumpRenderTree::eventSender): * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_set_window): (webkit_test_plugin_handle_event): 2011-05-12 Robert Hogan Reviewed by Benjamin Poulain. [Qt] fix http/tests/plugins/plugin-document-has-focus.html The support for this test added to the unix test plugin here may allow other platforms to pass it (nearly everyone skips it). On Qt it required a bit of trickiness with the page's EventSender object to get it working fully though, so only unskipping Qt here. https://bugs.webkit.org/show_bug.cgi?id=60722 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::WebPage::WebPage): (WebCore::WebPage::eventSender): (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::initJSObjects): (WebCore::DumpRenderTree::createWindow): * DumpRenderTree/qt/DumpRenderTreeQt.h: * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_set_window): (webkit_test_plugin_handle_event): 2011-05-14 Arno Renevier Reviewed by Martin Robinson. make run-gtk-tests executable https://bugs.webkit.org/show_bug.cgi?id=59278 * Scripts/run-gtk-tests: 2011-05-14 Anders Carlsson Reviewed by Kevin Decker. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load https://bugs.webkit.org/show_bug.cgi?id=60823 Add test that calls NPN_GetURLNotify on a URL that can't be loaded, and checks if NPP_URLNotify is called. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp: Added. (GetURLNotifyWithURLThatFailsToLoad::GetURLNotifyWithURLThatFailsToLoad): (GetURLNotifyWithURLThatFailsToLoad::NPP_New): (GetURLNotifyWithURLThatFailsToLoad::NPP_URLNotify): * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: 2011-05-14 Sheriff Bot Unreviewed, rolling out r86476. http://trac.webkit.org/changeset/86476 https://bugs.webkit.org/show_bug.cgi?id=60832 It made plugins/get-url-notify-with-url-that-fails-to- load.html crash on GTK (Requested by Ossy on #webkit). * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp: Removed. * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: 2011-05-13 Anders Carlsson Reviewed by Sam Weinig. NPP_URLNotify is not called if a URL passed to NPN_GetURLNotify fails to load https://bugs.webkit.org/show_bug.cgi?id=60823 Add test that calls NPN_GetURLNotify on a URL that can't be loaded, and checks if NPP_URLNotify is called. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLNotifyWithURLThatFailsToLoad.cpp: Added. (GetURLNotifyWithURLThatFailsToLoad::GetURLNotifyWithURLThatFailsToLoad): (GetURLNotifyWithURLThatFailsToLoad::NPP_New): (GetURLNotifyWithURLThatFailsToLoad::NPP_URLNotify): * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: 2011-05-13 Anders Carlsson Build fix. * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp: 2011-05-13 Anders Carlsson Reviewed by Sam Weinig. NPN_GetURL with a javascript: URL doesn't send back the result in the stream https://bugs.webkit.org/show_bug.cgi?id=60810 Add a test that calls NPN_GetURL on a javascript: URL and checks that it gets back the expected result. * DumpRenderTree/DumpRenderTree.gypi: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro: * GNUmakefile.am: Add files. * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp: * DumpRenderTree/TestNetscapePlugIn/PluginTest.h: Add new NPN and NPP wrappers and sort them according to the order they appear in npfunctions.h * DumpRenderTree/TestNetscapePlugIn/Tests/GetURLWithJavaScriptURL.cpp: Added. (GetURLWithJavaScriptURL::GetURLWithJavaScriptURL): (GetURLWithJavaScriptURL::NPP_New): (GetURLWithJavaScriptURL::NPP_NewStream): (GetURLWithJavaScriptURL::NPP_DestroyStream): (GetURLWithJavaScriptURL::NPP_WriteReady): (GetURLWithJavaScriptURL::NPP_Write): * DumpRenderTree/TestNetscapePlugIn/main.cpp: (NPP_NewStream): (NPP_WriteReady): (NPP_Write): (NPP_URLNotify): call the PluginTest NPP wrappers. 2011-05-13 Sheriff Bot Unreviewed, rolling out r86447. http://trac.webkit.org/changeset/86447 https://bugs.webkit.org/show_bug.cgi?id=60809 "Broke some uses of EventSender object on Qt" (Requested by mwenge on #webkit). * DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::WebPage::WebPage): (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::initJSObjects): (WebCore::DumpRenderTree::createWindow): * DumpRenderTree/qt/DumpRenderTreeQt.h: (WebCore::DumpRenderTree::eventSender): * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_set_window): (webkit_test_plugin_handle_event): 2011-05-13 Robert Hogan Reviewed by Benjamin Poulain. [Qt] fix http/tests/plugins/plugin-document-has-focus.html The support for this test added to the unix test plugin here may allow other platforms to pass it (nearly everyone skips it). On Qt it required a bit of trickiness with the page's EventSender object to get it working fully though, so only unskipping Qt here. https://bugs.webkit.org/show_bug.cgi?id=60722 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::WebPage::WebPage): (WebCore::WebPage::eventSender): (WebCore::DumpRenderTree::DumpRenderTree): (WebCore::DumpRenderTree::initJSObjects): (WebCore::DumpRenderTree::createWindow): * DumpRenderTree/qt/DumpRenderTreeQt.h: * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (webkit_test_plugin_new_instance): (webkit_test_plugin_set_window): (webkit_test_plugin_handle_event): 2011-05-13 Adam Roben Exclude the Leopard NRWT bot from the core builder set Fixes Leopard Intel Release (NRWT) shouldn't be a core builder Reviewed by Darin Adler. * Scripts/webkitpy/common/net/buildbot/buildbot.py: (BuildBot.__init__): Tighten up the Leopard regexp to only allow the non-NRWT Leopard bots in the core builder set. * Scripts/webkitpy/common/net/buildbot/buildbot_unittest.py: (BuildBotTest.test_builder_name_regexps): Updated to match the current set of builders and regexps. 2011-05-13 Adam Roben Group all the NRWT bots together This also gets the new NRWT bots out of the middle of Apple's bots. Since these new NRWT bots are experimental, it seems best not to clutter up the non-experimental bots with experimental ones. Fixes New "(NRWT)" bots are right in the middle of Apple's bots on build.webkit.org Reviewed by Dan Bernstein. * BuildSlaveSupport/build.webkit.org-config/config.json: Moved the "(NRWT)" bots next to the Chromium testers, which also use new-run-webkit-tests. 2011-05-13 Adam Roben Add a plugin test that dumps the plugin window's rect Part of the test for REGRESSION (r79167): Windowed plugins in Google Reader don't move when the article list is scrolled Reviewed by Dan Bernstein. * DumpRenderTree/TestNetscapePlugIn/Tests/win/DumpWindowRect.cpp: Added. (DumpWindowRect::DumpWindowRect): Just call up to the base class. (DumpWindowRect::performWindowGeometryTest): Find our window rect relative to the test harness window and log it. * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: Added DumpWindowRect. 2011-05-13 Adam Roben Move code required for most tests of plugin window geometry into a base class WebKit2's asynchronous plugin window positioning makes testing window geometry tricky. By having all the trickiness in a shared base class, writing new window geometry tests will be much easier. Fixes It's hard to write tests that check plugin window geometry Reviewed by Anders Carlsson. * DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowRegionIsSetToClipRect.cpp: (WindowRegionIsSetToClipRect::WindowRegionIsSetToClipRect): Changed to inherit from the new WindowGeometryTest base class. Most of the code from this class was moved to the new base class. (WindowRegionIsSetToClipRect::performWindowGeometryTest): Renamed from checkWindowRegion. This is called by the base class when it is safe to check the window's geometry. Note that the m_didCheckWindowRegion logic was removed completely; it has never been needed and was just vestigial code from an earlier version of this test. * DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: Added new WindowGeometryTest class. * DumpRenderTree/TestNetscapePlugIn/win/WindowGeometryTest.cpp: Added. Code came from WindowRegionIsSetToClipRect. (WindowGeometryTest::finishTest): This is the only change from WindowRegionIsSetToClipRect. We now call the new virtual performWindowGeometryTest function instead of checkWindowRegion. Subclasses can implement that function to perform their own tests. * DumpRenderTree/TestNetscapePlugIn/win/WindowGeometryTest.h: Added. 2011-05-13 Zoltan Herczeg Reviewed by Csaba Osztrogonác. Missing 2nd #EOF if WebProcess is killed. https://bugs.webkit.org/show_bug.cgi?id=60761 If the WebProcess is killed, only one #EOF is yielded by WebKitTestRunner. However, run-webkit-test wait for a second #EOF, which signals the finishing of pixel dump. Since this never happens, run-webkit-test waits forever. * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::dump): (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): * WebKitTestRunner/TestInvocation.h: 2011-05-13 Kristóf Kosztyó Reviewed by Csaba Osztrogonác. [NRWT] chromium-linux tests shouldn't run on other platforms https://bugs.webkit.org/show_bug.cgi?id=60162 Remove _tests_for_other_platforms defs because r82753 implemented it properly in the baseclass in webkit.py. * Scripts/webkitpy/layout_tests/port/gtk.py: * Scripts/webkitpy/layout_tests/port/qt.py: * Scripts/webkitpy/layout_tests/port/win.py: 2011-05-12 Ryuan Choi Reviewed by Antonio Gomes. [EFL] Remove unused option of EWeblauncher https://bugs.webkit.org/show_bug.cgi?id=60747 Remove sudo-workaround option. This option is not used and make other option wrong. * EWebLauncher/main.c: 2011-05-12 Lucas Forschler Reviewed by Stephanie Lewis. Fix config.json to address missing WK2 builder/tester config. Fix naming of machines (xserve not macpro) * BuildSlaveSupport/build.webkit.org-config/config.json: 2011-05-12 Lucas Forschler Reviewed by Stephanie Lewis. Add SnowLeopard Debug builder and Test bot. apple-xserve-8 = SL Debug Tester. apple-xserve-9 = SL Debug Builder. * BuildSlaveSupport/build.webkit.org-config/config.json: 2011-05-12 Adam Barth This patch disables sheriffbot's bug postings. He's just been way too spammy recently due to test flakiness. * Scripts/webkitpy/tool/commands/sheriffbot.py: * Scripts/webkitpy/tool/commands/sheriffbot_unittest.py: 2011-05-11 Brian Weinstein Reviewed by Anders Carlsson. After relaunching an unresponsive web process, web page stops responding to mouse movement https://bugs.webkit.org/show_bug.cgi?id=60669 This test follows the steps needed to reproduce this bug: 1) Hang the web process 2) While the web process is hung, move the mouse (so WebPageProxy thinks it is processing a mouse move event) 3) Kill and restart the WebProcess 4) Move the mouse We are testing that we receive mouse move events after the WebProcess has restarted. * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash.cpp: Added. (TestWebKitAPI::didFinishLoadForFrame): Set a flag that we finished loading. (TestWebKitAPI::processDidBecomeUnresponsive): Kill the web process once we become unresponsive. (TestWebKitAPI::processDidCrash): Reload the page when the process crashes, which restarts the web process. (TestWebKitAPI::setPageLoaderClient): (TestWebKitAPI::TEST): * TestWebKitAPI/Tests/WebKit2/MouseMoveAfterCrash_Bundle.cpp: Added. (TestWebKitAPI::MouseMoveAfterCrashTest::MouseMoveAfterCrashTest): (TestWebKitAPI::MouseMoveAfterCrashTest::didReceiveMessage): * TestWebKitAPI/Tests/WebKit2/mouse-move-listener.html: Added. * TestWebKitAPI/PlatformWebView.h: * TestWebKitAPI/mac/PlatformWebViewMac.mm: (TestWebKitAPI::PlatformWebView::simulateMouseMove): Sends the messages that simulate a mouse move. * TestWebKitAPI/win/PlatformWebViewWin.cpp: (TestWebKitAPI::PlatformWebView::simulateMouseMove): Ditto. Add new files. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/win/TestWebKitAPI.vcproj: * TestWebKitAPI/win/TestWebKitAPIInjectedBundle.vcproj: * TestWebKitAPI/win/copy-resources.cmd: 2011-05-12 Tomasz Morawski Reviewed by Antonio Gomes. [EFL] Added initialization/shutdown for ecore_file library https://bugs.webkit.org/show_bug.cgi?id=60457 Added initialization and shuthown for ecore_file library and replaced realpath function to ecore_file_realpath. * EWebLauncher/main.c: (quit): (findThemePath): (main): 2011-05-12 Young Han Lee Reviewed by Kenneth Rohde Christiansen. [Qt] Implement layoutTestController.layerTreeAsText() https://bugs.webkit.org/show_bug.cgi?id=60367 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::layerTreeAsText): * DumpRenderTree/qt/LayoutTestControllerQt.h: 2011-05-11 Eric Seidel Reviewed by David Levin. Teach validate-committer-lists how to validate committers bugzilla_email() https://bugs.webkit.org/show_bug.cgi?id=60651 It turns out we currently have 9 committers with invalid values for their bugzilla_email field (meaning we don't know what email is their bugzilla account). "Alexander Kellett" "Andre Boule" "Cameron McCormack" "Chris Petersen" "Eli Fidler" "Matt Lilek" "Pierre d'Herbemont" "Scott Violet" "Adam Treat" Most of those haven't committed in a very long time, so it's not suprising that we haven't noticed that their bugzilla emails are bogus. * Scripts/validate-committer-lists: * Scripts/webkitpy/common/net/bugzilla/bugzilla.py: * Scripts/webkitpy/common/net/bugzilla/bugzilla_unittest.py: 2011-05-11 Dmitry Lomov Reviewed by David Levin. https://bugs.webkit.org/show_bug.cgi?id=59561 Switch TestWebKitAPI to GTest Fixes Makefiles and WinCairo build as well * Makefile: * Scripts/build-api-tests: * Scripts/run-api-tests: * TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops: * TestWebKitAPI/Test.h: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/VectorBasic.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/TestsController.cpp: (TestWebKitAPI::TestsController::TestsController): (TestWebKitAPI::TestsController::dumpTestNames): (TestWebKitAPI::TestsController::runTestNamed): (TestWebKitAPI::TestsController::runAllTests): * TestWebKitAPI/TestsController.h: * TestWebKitAPI/mac/main.mm: (main): 2011-05-11 Eric Seidel Reviewed by Alexey Proskuryakov. Add Luke Macpherson to committers.py as a Contributor https://bugs.webkit.org/show_bug.cgi?id=60639 * Scripts/webkitpy/common/config/committers.py: 2011-05-11 Noam Rosenthal Reviewed by Kenneth Rohde Christiansen. [Texmap][Qt] Upstream texture-mapper changes from Qt's WebKit2 branch https://bugs.webkit.org/show_bug.cgi?id=60439 Patch 4/12: Update the build script to enable 3D rendering by default for Qt. * Scripts/build-webkit: 2011-05-11 Brian Weinstein Reviewed by Adam Roben. REGRESSION (r86161): WKPreferences API test failing on Windows https://bugs.webkit.org/show_bug.cgi?id=60658 * TestWebKitAPI/Tests/WebKit2/WKPreferences.cpp: (TestWebKitAPI::TEST): 2011-05-11 Alice Boxhall Reviewed by Ojan Vafai. Modify jsonresults_unittest.py to use a dict format for its test data, and modify jsonresults.py to flatten hierarchical directory structures in input JSON. https://bugs.webkit.org/show_bug.cgi?id=60521 First steps towards making the results JSON all hierarchical. * TestResultServer/model/jsonresults.py: * TestResultServer/model/jsonresults_unittest.py: 2011-05-11 Kevin Ollivier [wx] Build fix, adding new LayoutTestController method stubs. * DumpRenderTree/wx/LayoutTestControllerWx.cpp: (LayoutTestController::localStorageDiskUsageForOrigin): (LayoutTestController::applicationCacheDiskUsageForOrigin): 2011-05-11 Jessie Berlin Reviewed by Darin Adler. [WebKit2] exceededDatabaseQuota function on WKPageUIClient needs to provide information about the usage for both the origin overall and the database in question. https://bugs.webkit.org/show_bug.cgi?id=60573 * WebKitTestRunner/TestController.cpp: (WTR::exceededDatabaseQuota): 2011-05-10 Stephen White Reviewed by David Levin. Adding myself as a reviewer. https://bugs.webkit.org/show_bug.cgi?id=60587 * Scripts/webkitpy/common/config/committers.py: 2011-05-11 Eric Seidel Reviewed by Csaba Osztrogonác. queues.webkit.org should show 1000+ instead of 1000 when we hit the query limit https://bugs.webkit.org/show_bug.cgi?id=60614 AppEngine has a result limit of 1000. We hit that when trying to find out how many patches the style-queue (and other queues) have passed in the last 30 days. So lets display 1000+ instead of 1000 to avoid confusion. (Ossy was asking about this in #webkit tonight.) I also made the status pages show "never" instead of just "ago" when we haven't seen a pass or boot message in the last 1000 messages. * QueueStatusServer/handlers/queuestatus.py: * QueueStatusServer/templates/queuestatus.html: 2011-05-11 Adam Barth Reviewed by Eric Seidel. sheriffbot shouldn't spam bugs when it can't figure out who to blame https://bugs.webkit.org/show_bug.cgi?id=60613 This patch limits the number of bugs sheriffbot will spam to three. Ideally, we'd come up with some smarter huerstics, but hopefully this will cut down on the bugmail spam for slow bots. * Scripts/webkitpy/tool/commands/sheriffbot.py: 2011-05-10 Eric Seidel Reviewed by Adam Barth. EWS bots should be robust against test-webkitpy hangs https://bugs.webkit.org/show_bug.cgi?id=60579 Added a killAfterTimeout subroutine, which takes a child_pid and timeout, and will setup a watchdog process to kill that child after the timeout. killAfterTimeout will waitpid on the child. * EWSTools/start-queue.sh: 2011-05-10 MORITA Hajime Unreviewed, moved myself to the reviewers list. * Scripts/webkitpy/common/config/committers.py: 2011-05-10 Anton D'Auria Reviewed by David Levin. StorageTracker should report actual local storage usage on disk https://bugs.webkit.org/show_bug.cgi?id=60558 * DumpRenderTree/LayoutTestController.cpp: (localStorageDiskUsageForOriginCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::localStorageDiskUsageForOrigin): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::localStorageDiskUsageForOrigin): * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::localStorageDiskUsageForOrigin): * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::localStorageDiskUsageForOrigin): * DumpRenderTree/qt/LayoutTestControllerQt.h: * DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::localStorageDiskUsageForOrigin): 2011-05-10 Anton D'Auria Reviewed by Alexey Proskuryakov. Add ApplicationCache API to get disk usage per origin https://bugs.webkit.org/show_bug.cgi?id=57127 Added test that loads two frames with ~15Kb image, checks usage, deletes app cache, verifies usage is 0. * DumpRenderTree/LayoutTestController.cpp: (applicationCacheDiskUsageForOriginCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/chromium/LayoutTestController.cpp: Added stub. (LayoutTestController::LayoutTestController): (LayoutTestController::applicationCacheDiskUsageForOrigin): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: Added stub. (LayoutTestController::applicationCacheDiskUsageForOrigin): * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::applicationCacheDiskUsageForOrigin): * DumpRenderTree/qt/LayoutTestControllerQt.cpp: Added stub. (LayoutTestController::applicationCacheDiskUsageForOrigin): * DumpRenderTree/qt/LayoutTestControllerQt.h: * DumpRenderTree/win/LayoutTestControllerWin.cpp: Added stub. (LayoutTestController::applicationCacheDiskUsageForOrigin): 2011-05-10 Lucas De Marchi Unreviewed, adding Rafael Antognolli as a committer. * Scripts/webkitpy/common/config/committers.py: 2011-05-10 Chris Evans Reviewed by Adam Barth. Add WebCore::Setting to block displaying and/or running insecure content on secure pages https://bugs.webkit.org/show_bug.cgi?id=58378 * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::setAllowDisplayOfInsecureContent): (LayoutTestController::setAllowRunningOfInsecureContent): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/chromium/WebPreferences.cpp: (WebPreferences::reset): (WebPreferences::applyTo): * DumpRenderTree/chromium/WebPreferences.h: Add plumbing for new settings to Chromium DRT. 2011-05-10 Enrica Casucci Reviewed by Beth Dakin. Added my name to the reviewers list and removed my name from to committer-only list. * Scripts/webkitpy/common/config/committers.py: 2011-05-10 David Levin Reviewed by Shinichiro Hamaji. check-webkit-style shouldn't filter the errors using the modified lines for the xml and test expectations checkers. https://bugs.webkit.org/show_bug.cgi?id=60466 * Scripts/webkitpy/style/checker.py: (unrelated) style fix. * Scripts/webkitpy/style/checker_unittest.py: Remove the file_path check since that property was removed. * Scripts/webkitpy/style/checkers/test_expectations.py: Turn off the line filtering for errors. * Scripts/webkitpy/style/checkers/test_expectations_unittest.py: Add testing to verify that the line filtering is turned off. * Scripts/webkitpy/style/checkers/xml.py: Turn off the line filtering for errors and remove the unused file_path parameter. * Scripts/webkitpy/style/checkers/xml_unittest.py: Add testing to verify that the line filtering is turned off (and fix test_no_error). * Scripts/webkitpy/style/error_handlers.py: Added a way to turn off the filtering of errors based on the lines changed in the patch. * Scripts/webkitpy/style/error_handlers_unittest.py: Added a test for turning off the filtering. 2011-05-10 Adam Roben Update some plugin tests to work with WebKit2's asynchronous windowed plugin positioning on Windows Fixes REGRESSION (r85795): platform/win/plugins/window-geometry-initialized-before-set-window.html and platform/win/plugins/window-region-is-set-to-clip-rect.html failing on Windows 7 Release (WebKit2 Tests) Reviewed by Anders Carlsson. * DumpRenderTree/TestNetscapePlugIn/Tests/win/NPNInvalidateRectInvalidatesWindow.cpp: (NPNInvalidateRectInvalidatesWindow::NPP_SetWindow): Moved some code from here to the new WindowedPluginTest::testHarnessWindow function. * DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowGeometryInitializedBeforeSetWindow.cpp: (WindowGeometryInitializedBeforeSetWindow::NPP_SetWindow): Only check the window's size, not its position. In WebKit2, the position won't have been set yet, so we can't test it. But it turns out only the size mattered for , which this test was created for. * DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowRegionIsSetToClipRect.cpp: (WindowRegionIsSetToClipRect::WindowRegionIsSetToClipRect): Converted to be a WindowedPluginTest, and initialized new members. (WindowRegionIsSetToClipRect::startTest): Make our plugin window visible, and set things up to ensure we get a WM_WINDOWPOSCHANGED message about it becoming visible. (WindowRegionIsSetToClipRect::finishTest): Check that the window region is what we expect, then clean up and tell the test harness we're done. (WindowRegionIsSetToClipRect::checkWindowRegion): Moved code to check the window region here from NPP_SetWindow. Changed to use the fancy new log() function instead of pluginLog(). (WindowRegionIsSetToClipRect::showTestHarnessWindowIfNeeded): Show the test harness's window if it is hidden. This is needed to ensure we get a WM_WINDOWPOSCHANGED message when our own window becomes visible. (WindowRegionIsSetToClipRect::hideTestHarnessWindowIfNeeded): Hide the test harness's window if it was hidden at the start of the test. (WindowRegionIsSetToClipRect::wndProc): When our timer fires, tell the UI process to paint. This should cause our window to become visible and our window region to get set. When we get a WM_WINDOWPOSCHANGED message, we can finally finish the test. (WindowRegionIsSetToClipRect::NPP_GetValue): Return our script object. (WindowRegionIsSetToClipRect::ScriptObject::hasMethod): We only have one method: "startTest". (WindowRegionIsSetToClipRect::ScriptObject::invoke): Call through to the PluginTest object. * DumpRenderTree/TestNetscapePlugIn/win/WindowedPluginTest.cpp: (WindowedPluginTest::testHarnessWindow): * DumpRenderTree/TestNetscapePlugIn/win/WindowedPluginTest.h: Added this helper function. Code came from NPNInvalidateRectInvalidatesWindow. 2011-05-10 Csaba Osztrogonác Reviewed by Kenneth Rohde Christiansen. [Qt] Add new qt-4.8 platform for layout testing https://bugs.webkit.org/show_bug.cgi?id=60544 * Scripts/old-run-webkit-tests: * Scripts/webkitdirs.pm: 2011-05-09 Sheriff Bot Unreviewed, rolling out r86108. http://trac.webkit.org/changeset/86108 https://bugs.webkit.org/show_bug.cgi?id=60533 Broke makefile based builds and Cairo (Requested by weinig on #webkit). * Scripts/build-api-tests: * Scripts/run-api-tests: * TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops: * TestWebKitAPI/Test.h: (TestWebKitAPI::Test::~Test): (TestWebKitAPI::Test::name): (TestWebKitAPI::Test::Register::Register): (TestWebKitAPI::Test::Register::create): (TestWebKitAPI::Test::Test): * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/VectorBasic.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/TestsController.cpp: (TestWebKitAPI::TestsController::TestsController): (TestWebKitAPI::TestsController::dumpTestNames): (TestWebKitAPI::TestsController::runTestNamed): (TestWebKitAPI::TestsController::testFailed): (TestWebKitAPI::TestsController::registerCreateTestFunction): * TestWebKitAPI/TestsController.h: * TestWebKitAPI/mac/main.mm: (main): 2011-05-09 Hayato Ito Reviewed by Ojan Vafai. Skip reftests if pixel tests are disabled. https://bugs.webkit.org/show_bug.cgi?id=59078 * Scripts/webkitpy/layout_tests/layout_package/manager.py: * Scripts/webkitpy/layout_tests/layout_package/single_test_runner.py: * Scripts/webkitpy/layout_tests/layout_package/worker.py: * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: 2011-05-09 Chang Shu Reviewed by Kenneth Rohde Christiansen. [Qt] DumpRenderTreeQt needs an implementation of unmarkText https://bugs.webkit.org/show_bug.cgi?id=60499 The implementation is similar to gtk. * DumpRenderTree/qt/TextInputControllerQt.cpp: (TextInputController::unmarkText): * DumpRenderTree/qt/TextInputControllerQt.h: 2011-05-09 James Robinson Reviewed by Eric Seidel. [chromium] Teach new-run-webkit-tests to follow symlinks when trying to determine the arch of DumpRenderTree on linux https://bugs.webkit.org/show_bug.cgi?id=60520 * Scripts/webkitpy/layout_tests/port/chromium_linux.py: 2011-05-09 Dmitry Lomov Reviewed by Sam Weinig. Switch TestWebKitAPI to GTest https://bugs.webkit.org/show_bug.cgi?id=59561 * Scripts/build-api-tests: * Scripts/run-api-tests: * TestWebKitAPI/Configurations/TestWebKitAPICommon.vsprops: * TestWebKitAPI/Test.h: * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WTF/VectorBasic.cpp: (TestWebKitAPI::TEST): * TestWebKitAPI/TestsController.cpp: (TestWebKitAPI::TestsController::TestsController): (TestWebKitAPI::TestsController::dumpTestNames): (TestWebKitAPI::TestsController::runTestNamed): (TestWebKitAPI::TestsController::runAllTests): * TestWebKitAPI/TestsController.h: * TestWebKitAPI/mac/main.mm: (main): 2011-05-09 Igor Oliveira Reviewed by Andreas Kling. [Qt] DRT eventSender.addTouchPoint method is not setting the start position https://bugs.webkit.org/show_bug.cgi?id=60487 When adding a new touch point, the start position of this point needs to be set. * DumpRenderTree/qt/EventSenderQt.cpp: (EventSender::addTouchPoint): 2011-05-09 Robert Hogan Reviewed by Adam Roben. https://bugs.webkit.org/show_bug.cgi?id=57137 Unskip plugins/embed-prefers-plugins-for-images.html Add image/png mime-type to test netscape plugin on Unix. * DumpRenderTree/unix/TestNetscapePlugin/TestNetscapePlugin.cpp: (NP_GetMIMEDescription): 2011-05-09 Alice Boxhall Reviewed by Ojan Vafai. Pull jsonresults_unittest test cases out into separate test methods. https://bugs.webkit.org/show_bug.cgi?id=60418 * TestResultServer/model/jsonresults_unittest.py: 2011-05-09 Mahesh Kulkarni Reviewed by Andreas Kling. [Qt] fix fast/dom/Geolocation/window-close-crash.html https://bugs.webkit.org/show_bug.cgi?id=60458 Update all pages with Mock position/error/permission. * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::setGeolocationPermission): (LayoutTestController::setMockGeolocationError): (LayoutTestController::setMockGeolocationPosition): 2011-05-09 Shishir Agrawal Reviewed by Tony Gentilcore. Implement Page Visibility API. https://bugs.webkit.org/show_bug.cgi?id=54181 * DumpRenderTree/LayoutTestController.cpp: (setPageVisibilityCallback): (resetPageVisibilityCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: (LayoutTestController::setPageVisibility): (LayoutTestController::resetPageVisibility): * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::resetPageVisibility): (LayoutTestController::setPageVisibility): * DumpRenderTree/chromium/LayoutTestController.h: 2011-05-07 Adam Barth Reviewed by Eric Seidel. Testing EWS spins on patches with a large number of failures https://bugs.webkit.org/show_bug.cgi?id=60441 In cases where the tree has a small number of persistent failures but a patch has a large number of failures, we weren't believing any results. That lead to us retrying the patch forever while we waited for trustworthy results that would never come. This patch loosens the semantics of unexpected_failures to return a subset (rather than the exact set) of unexpected failures. In the case where the tree has a bounded number of failures and the patch has an unbounded number of failures, we can accurately compute such a subset and reject the patch. * Scripts/webkitpy/tool/bot/expectedfailures.py: * Scripts/webkitpy/tool/bot/expectedfailures_unittest.py: * Scripts/webkitpy/tool/bot/patchanalysistask.py: * Scripts/webkitpy/tool/commands/earlywarningsystem.py: * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 2011-05-07 Joe Mason Reviewed by Daniel Bates. FrameLoader::isProcessingUserGesture is wrong in dispatchWillPerformClientRedirect https://bugs.webkit.org/show_bug.cgi?id=52211 Dump isUserProcessingGesture in willPerformClientRedirect so that the layout tests can be extended. (For the Mac and Chromium ports - other ports don't support dumping user gestures in DRT.) * DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::willPerformClientRedirect): (WebViewHost::didStartProvisionalLoad): * DumpRenderTree/mac/FrameLoadDelegate.mm: (-[FrameLoadDelegate webView:willPerformClientRedirectToURL:delay:fireDate:forFrame:]): 2011-05-07 Daniel Bates Attempt to fix the build; remove some more references to isTiger(), which was removed in changeset 86007 (bug #60438). * Scripts/old-run-webkit-tests: - Removed reference to isTiger() from openDumpTool(), captureSavedCrashLog(), and file local variable. 2011-05-07 Pratik Solanki Reviewed by Darin Adler. Remove references to Tiger in scripts https://bugs.webkit.org/show_bug.cgi?id=60438 Remove isTiger() and all of the code that depends on it. * Scripts/build-webkit: * Scripts/ensure-valid-python: * Scripts/gdb-safari: * Scripts/webkitdirs.pm: 2011-05-06 David Grogan Reviewed by Eric Seidel. update link to message about mac 64bit git binaries https://bugs.webkit.org/show_bug.cgi?id=60411 The original message implied (correctly, at-the-time) that http://code.google.com/p/git-osx-installer/ doesn't provide 64-bit binaries. The new message notes that they do. This might prevent someone else from spending a few minutes confused. * Scripts/webkitpy/common/checkout/scm/git.py: 2011-05-06 Dirk Pranke Reviewed by Ojan Vafai. new-run-webkit-tests: crashes in race with crashing DRT https://bugs.webkit.org/show_bug.cgi?id=60238 This fixes a race where if we wrote the URL to DRT and DRT crashed immediately, we could get a broken pipe error back during the write() and not handle it correctly, causing NRWT to also crash. * Scripts/webkitpy/layout_tests/port/server_process.py: * Scripts/webkitpy/layout_tests/port/webkit.py: 2011-05-06 Adam Barth Reviewed by Eric Seidel. Add a --skip-integrationtests mode to test-webkitpy https://bugs.webkit.org/show_bug.cgi?id=60354 These two test suites account for 2/3 of test-webkitpy's running time because they're not actually unit tests. They're integration tests. This patch adds the ability to skip integration tests by passing a command line argument to test-webkitpy. The buildbots will continue to run these integration tests to make sure they don't regress. This option is for use by developers when working on parts of the code that are well-covered by unit tests. * Scripts/webkitpy/common/system/file_lock_integrationtest.py: Copied from Tools/Scripts/webkitpy/common/system/file_lock_unittest.py. * Scripts/webkitpy/common/system/file_lock_unittest.py: Removed. * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: Copied from Tools/Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py. * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py: Removed. * Scripts/webkitpy/test/main.py: 2011-05-06 Adam Barth Reviewed by Eric Seidel. The results.zip generated by the Chromium EWS are too big https://bugs.webkit.org/show_bug.cgi?id=60352 Currently results.zip created by the Chromium EWS bot contain roughly 1000 tests that we expect to fail. These test results are not helpful to contributors. There are several approaches to solving this problem: 1) We could be more selective about which files to include in the zip. 2) We could ask new-run-webkit-tests not to generate results for expected failures. 3) We could ask new-run-webkit-tests not to run tests that we expect to fail. This patch takes approach (3). Currently, we're ignoring the outcome of failing tests anyway, so there's not much point in actually running them. As a side benefit, this will speed up the test run by about 6%. In the future, we might revisit this decision and choose another approach. * Scripts/webkitpy/common/config/ports.py: * Scripts/webkitpy/common/config/ports_unittest.py: 2011-05-06 Gabor Rapcsanyi Reviewed by Csaba Osztrogonác. [Qt] Use qt-arm platform instead of qt-linux on ARM platform. * Scripts/old-run-webkit-tests: 2011-05-06 Adam Barth Reviewed by Ojan Vafai. Add an option to NRWT to skip failing tests https://bugs.webkit.org/show_bug.cgi?id=60295 This option is similar to the way old-run-webkit-tests works. We're planning to use this option on the testing EWS bots because they don't use information from failing tests yet. * Scripts/webkitpy/layout_tests/layout_package/manager.py: * Scripts/webkitpy/layout_tests/run_webkit_tests.py: * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py: 2011-05-04 Philippe Normand Reviewed by Dimitri Glazkov. Implement LayoutTestController::pseudoShadowId() https://bugs.webkit.org/show_bug.cgi?id=60034 shadowPseudoId support in the various LayoutTestController implementations. * DumpRenderTree/LayoutTestController.cpp: (shadowPseudoIdCallback): (LayoutTestController::staticFunctions): * DumpRenderTree/LayoutTestController.h: * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::shadowPseudoId): * DumpRenderTree/chromium/LayoutTestController.h: * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: (LayoutTestController::shadowPseudoId): * DumpRenderTree/mac/LayoutTestControllerMac.mm: (LayoutTestController::shadowPseudoId): * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::shadowPseudoId): * DumpRenderTree/qt/LayoutTestControllerQt.h: * DumpRenderTree/win/LayoutTestControllerWin.cpp: (LayoutTestController::shadowPseudoId): * DumpRenderTree/wx/LayoutTestControllerWx.cpp: (LayoutTestController::shadowPseudoId): * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: (WTR::LayoutTestController::shadowPseudoId): * WebKitTestRunner/InjectedBundle/LayoutTestController.h: 2011-05-06 Adam Barth EWS can't reject patches https://bugs.webkit.org/show_bug.cgi?id=60345 We're supposed to use patch.id() for the attachment ID, silly. * Scripts/webkitpy/tool/commands/earlywarningsystem.py: * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 2011-05-05 Steve Lacey Reviewed by Ojan Vafai. Fix generation of results html file by passing relative path to scm methods. Generate diff images for results html file. https://bugs.webkit.org/show_bug.cgi?id=60086 * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py: * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py: 2011-05-05 Andy Estes Reviewed by Daniel Bates. update-webkit should handle Internal using a different VCS than OpenSource. https://bugs.webkit.org/show_bug.cgi?id=60310 isGit() and isSVN() cache their results, so Internal will always be updated using the VCS commands used for OpenSource. If Internal uses a different VCS, this will fail. Fix this by calling isGitDirectory() and isSVNDirectory() instead, which do not cache their results. * Scripts/update-webkit: 2011-05-05 Dirk Pranke Reviewed by Ojan Vafai. nrwt: revamp integration tests incl. tests for servers https://bugs.webkit.org/show_bug.cgi?id=59985 This change adds the ability to run "integration tests" that depend on (and affect) the local environment on your machine. These tests can be run manually by invoking python on the test file in question and passing the '-i' flag, but are not run automatically as part of test-webkitpy. Integration tests are identified by being methods named as "integration_test_*" instead of "test_*", and we use a custom TestLoader instead of the default one provided by unittest. This change also adds a protected "_default_to_apache" method to the port object so we can do the right thing when starting and stopping web servers with less mechanism. * Scripts/webkitpy/layout_tests/port/base.py: * Scripts/webkitpy/layout_tests/port/chromium_linux_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_mac_unittest.py: * Scripts/webkitpy/layout_tests/port/chromium_win_unittest.py: * Scripts/webkitpy/layout_tests/port/mac_unittest.py: * Scripts/webkitpy/layout_tests/port/port_testcase.py: 2011-05-05 Adam Roben Robustify DRT's pixel-dumping code against semi-random alpha channel values on Windows DRT generates a pixel dump on Windows using the WM_PRINT message. This message (just like most of GDI) doesn't write anything meaningful into the alpha channel. In some cases, the alpha channel will even get filled with zeros (like when ::GradientFill is used). To safeguard against this, we fill the alpha channel with constant full opacity after the WM_PRINT message is handled to ensure we end up with an opaque image. (Note that we can't just ignore the alpha channel when creating the PNG; Mac's pixel results have an alpha channel, and we want to be able to compare Mac and Windows pixel results, so Windows pixel results need an alpha channel, too.) Fixes draws-gradient.html's pixel results can't be correctly generated due to alpha channel weirdness Reviewed by Sam Weinig. * DumpRenderTree/win/PixelDumpSupportWin.cpp: (makeAlphaChannelOpaque): Added this helper function to fill a bitmap's alpha channel with constant full opacity. (createBitmapContextFromWebView): Make the bitmap's alpha channel opaque before wrapping it in a CGContext or cairo_surface. 2011-05-05 Adam Roben Add support for layoutTestController.dumpAsText(true) to WebKitTestRunner Passing true tells the test harness to dump pixels even though we're not dumping a render tree. Fixes Calling layoutTestController.dumpAsText(true) in WebKitTestRunner doesn't result in pixel results being generated Reviewed by Sam Weinig. * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: Added dumpPixels argument to dumpAsText. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::dump): Updated for dumpAsText change. * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: (WTR::LayoutTestController::dumpAsText): Store the dumpPixels argument. * WebKitTestRunner/InjectedBundle/LayoutTestController.h: Updated for IDL change. * WebKitTestRunner/win/InjectedBundle.vcproj: Added .idl files as a convenience for Windows developers. 2011-05-05 Dirk Pranke Reviewed by Ojan Vafai. new-run-webkit-tests: merge os, version fields in test config https://bugs.webkit.org/show_bug.cgi?id=60004 This change removes the 'o/s' field from the TestConfiguration object, and changes the 'MAC', 'WIN', and 'LINUX' modifiers in the expectations file to macros that expand to the version names for each platform. This means that you can once again put any subset of the operating system versions on a single line, e.g.: BUGX LEOPARD XP LINUX : fast/html/foo.html = FAIL This change will break any existing test_expectations.txt file that uses the "OS-VERSION" macros, which are no longer needed. It turns out they were never needed, as just VERSION by itself was sufficient. The test_expectations.txt file should be updated accordingly prior to landing this change. * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py: * Scripts/webkitpy/layout_tests/layout_package/test_expectations_unittest.py: * Scripts/webkitpy/layout_tests/port/base.py: 2011-05-05 Tony Chang Reviewed by Adam Barth. [chromium] switch from Lucida to free fonts for Hindi and Thai https://bugs.webkit.org/show_bug.cgi?id=60287 The fonts are provided by the ttf-thai-tlwg and ttf-indic-fonts packages on Lucid. There are actually multiple Thai fonts in the package, so I just picked one. * DumpRenderTree/chromium/TestShellGtk.cpp: (setupFontconfig): 2011-05-05 Tony Chang Reviewed by Ojan Vafai. [chromium] google-chrome-64 builds should now fallback to chromium-linux-x86_64 results https://bugs.webkit.org/show_bug.cgi?id=60290 It used to be that google-chrome-32 was hardy32, google-chrome-64 was hardy64, chromium-linux was hardy32 and chromium-linux-x86_64 was lucid64. Because of that, google-chrome-64 used to skip the chromium-linux-x86_64 results since they were more incorrect. Now that we're switching to lucid for google-chrome, we want google-chrome-64 to fall back to chromium-linux-x86_64. * Scripts/webkitpy/layout_tests/port/google_chrome.py: 2011-05-05 Dirk Pranke Reviewed by Ojan Vafai. new-run-webkit-tests: merge TestExpectations, TestExpectationsFile classes https://bugs.webkit.org/show_bug.cgi?id=60002 * Scripts/webkitpy/layout_tests/layout_package/manager.py: * Scripts/webkitpy/layout_tests/layout_package/printing.py: * Scripts/webkitpy/layout_tests/layout_package/result_summary.py: * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py: * Scripts/webkitpy/layout_tests/layout_package/test_expectations_unittest.py: * Scripts/webkitpy/style/checkers/test_expectations.py: 2011-05-05 Eric Seidel Reviewed by Adam Barth. commit-queue should reject patches which fail ewses https://bugs.webkit.org/show_bug.cgi?id=47534 * Scripts/webkitpy/common/net/bugzilla/bugzilla.py: * Scripts/webkitpy/tool/commands/earlywarningsystem.py: * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: 2011-05-05 Chang Shu Reviewed by Andreas Kling. [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors https://bugs.webkit.org/show_bug.cgi?id=59638 1. Call QGraphicsWKView constructor with pageGroupRef. 2. Disable setFontFamily calls as it breaks Qt test fonts. * WebKitTestRunner/TestController.cpp: (WTR::TestController::resetStateToConsistentValues): * WebKitTestRunner/qt/PlatformWebViewQt.cpp: (WTR::WebView::WebView): (WTR::PlatformWebView::PlatformWebView): 2011-05-05 Joseph Pecoraro Reviewed by David Kilzer. Add --only-webkit option to build-webkit https://bugs.webkit.org/show_bug.cgi?id=60245 * Scripts/build-webkit: If --only-webkit was specified just build the WebKit project, and not its dependencies. 2011-05-05 Jeff Miller Reviewed by Darin Adler. Add didNotHandleWheelEvent callback to WKPageUIClient https://bugs.webkit.org/show_bug.cgi?id=60203 * MiniBrowser/gtk/BrowserWindow.c: (browserWindowUIClientInit): Stub out didNotHandleWheelEvent callback. * MiniBrowser/mac/BrowserWindowController.m: (-[BrowserWindowController awakeFromNib]): Stub out didNotHandleWheelEvent callback. * MiniBrowser/win/BrowserView.cpp: (BrowserView::create): Stub out didNotHandleWheelEvent callback. * WebKitTestRunner/TestController.cpp: (WTR::TestController::createOtherPage): Stub out didNotHandleWheelEvent callback. (WTR::TestController::initialize): Stub out didNotHandleWheelEvent callback. 2011-05-04 Eric Seidel Reviewed by Adam Barth. Add more missing imports from scm refactor https://bugs.webkit.org/show_bug.cgi?id=60239 * Scripts/webkitpy/common/checkout/scm/git.py: * Scripts/webkitpy/common/checkout/scm/svn.py: 2011-05-04 Eric Seidel Reviewed by Adam Barth. sheriff-bot is having more exception trouble https://bugs.webkit.org/show_bug.cgi?id=60233 A webpage-forced build was causing SB to throw an exception. We've long had this bug, but we just didn't notice it until now. In debugging this I found we fetch an absurd amount of data now that we use buildbot's json (instead of xmlrpc), so I added the filter=1 parameter to reduce it a little. That required me to handle the case where filter=1 would strip result=0 in some cases (it's unclear why it does that). * Scripts/webkitpy/common/net/buildbot/buildbot.py: * Scripts/webkitpy/common/net/buildbot/buildbot_unittest.py: 2011-05-04 Cris Neckar Unreviewed, Adding Cris Neckar as a committer * Scripts/webkitpy/common/config/committers.py: 2011-05-04 Siddharth Mathur Reviewed by Laszlo Gombos. [Qt][Wk2][Symbian] Capabilities for Qt MiniBrowser and QtWebProcess on Symbian https://bugs.webkit.org/show_bug.cgi?id=59462 * MiniBrowser/qt/MiniBrowser.pro: Add Symbian OS capabilities to executable. Also enable data paging. 2011-05-04 Eric Seidel Reviewed by Adam Barth. The testing EWS bots should upload layout-test-results.zip to bugs after failures https://bugs.webkit.org/show_bug.cgi?id=60223 This required sharing a bit of code between the commit-queue (which already knew how to do this) and the new EWS testing bots. In the process I also cleaned up EWS testing a little and removed some dead code from the commit-queue. * Scripts/webkitpy/common/config/committervalidator.py: * Scripts/webkitpy/tool/commands/earlywarningsystem.py: * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: * Scripts/webkitpy/tool/commands/queues.py: * Scripts/webkitpy/tool/commands/queues_unittest.py: 2011-05-04 James Kozianski Reviewed by Eric Seidel. Add method to make a Port able to retrieve TestOutputSets from its builders. https://bugs.webkit.org/show_bug.cgi?id=58211 This will be used in the new rebaseline script - TestOutputs are potential new baselines. * Scripts/webkitpy/common/config/urls.py: * Scripts/webkitpy/layout_tests/port/base.py: * Scripts/webkitpy/layout_tests/port/chromium.py: * Scripts/webkitpy/layout_tests/port/factory.py: * Scripts/webkitpy/layout_tests/port/webkit.py: 2011-05-04 Eric Seidel Reviewed by Ojan Vafai. sheriff-bot can't parse results.html https://bugs.webkit.org/show_bug.cgi?id=60196 The problem was that the NRWT bots are currently core and so sheriff-bot was trying to diagnose failures on them. It was trying to parse their results.html file and BeautifulSoup was throwing an exception. It seems our version of BeautifulSoup was quite old and unable to handle