2012-02-29 Dirk Pranke nrwt: make --print trace work with virtual tests https://bugs.webkit.org/show_bug.cgi?id=79952 Reviewed by Adam Barth. * Scripts/webkitpy/layout_tests/views/printing.py: (Printer._print_test_trace): (Printer._print_baseline): 2012-02-28 Brian Weinstein WebKit2: didNewFirstVisuallyNonEmptyLayout should be sent to injected bundle https://bugs.webkit.org/show_bug.cgi?id=79849 Reviewed by Beth Dakin. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::InjectedBundlePage): Add an entry to the struct. 2012-02-29 Lucas Forschler Removed unused Apple buildslaves from the master configuration https://bugs.webkit.org/show_bug.cgi?id=79925 Reviewed by Stephanie Lewis. * BuildSlaveSupport/build.webkit.org-config/config.json: 2012-02-29 Dirk Pranke nrwt: implement simple 'virtual test suite' support https://bugs.webkit.org/show_bug.cgi?id=79737 Reviewed by Adam Barth. Add very basic support for 'virtual test suites' to NRWT: a virtual suite is a directory that may contain new baselines, contains a pointer to a "base" directory of tests, and an optional list of command line arguments to pass to DRT; it gives us a way to run all of the tests in a given directory multiple times with multiple (potentially differing) sets of results and baselines. This patch implements the support needed for this feature, and some basic tests, but no actual port will use the feature yet. This is probably the simplest implementation possible - the list of virtual suites will be hard-coded into the port's implementation. One can imagine a more data-driven approach where the suite instructions are stored in a manifest file either in LayoutTests (all suites in one file), or per-port, or per-directory. If this feature ends up being useful we should probably add something like that so people don't have to hunt around in the code to add suites. * Scripts/webkitpy/layout_tests/port/base.py: (Port.__init__): (Port.expected_filename): (Port.tests): (Port): (Port._real_tests): (Port._driver_class): (Port.virtual_test_suites): (Port.virtual_suite): (Port.virtual_suite.VirtualTestSuite): (Port.virtual_suite.VirtualTestSuite.__init__): (Port.virtual_suite.VirtualTestSuite.__repr__): (Port.populated_virtual_test_suites): (Port._virtual_tests): (Port.lookup_virtual_test_base): (Port.lookup_virtual_test_args): * Scripts/webkitpy/layout_tests/port/base_unittest.py: (PortTest.test_find_with_skipped_directories): * Scripts/webkitpy/layout_tests/port/driver.py: (DriverInput.__init__): (DriverProxy.run_test): * Scripts/webkitpy/layout_tests/port/test.py: (TestPort.virtual_test_suites): (TestDriver.run_test): * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py: (MainTest.test_all): (MainTest.test_virtual): 2012-02-29 Dirk Pranke nrwt: support more than two drivers in DriverProxy https://bugs.webkit.org/show_bug.cgi?id=79736 Reviewed by Adam Barth. Now that we can support per-test command lines for Drivers, modify DriverProxy to keep a map of running drivers for each needed command-line; this will allow us to transparently maintain a pool of appropriately configured DRTs without having to constantly start and stop them. Note that this potentially raises a garbage collection problem - the number of running DRTs will grow with the number of different sets of command line args. For now this is no worse than the current code - if you're running with pixel tests, you will only need one DRT per worker, and if you aren't, you'll need two (one for text-only tests, and one for reftests). An alternative would be to only ever have one running driver, and restart the driver as the command line changes, but this might (?) slow down execution in the text-only case - we should benchmark this because it would be simpler and possibly allow us to eliminate DriverProxy altogether. * Scripts/webkitpy/layout_tests/port/driver.py: (DriverProxy.__init__): (DriverProxy): (DriverProxy._make_driver): (DriverProxy.run_test): (DriverProxy.has_crashed): (DriverProxy.stop): (DriverProxy.cmd_line): (DriverProxy._cmd_line_as_key): 2012-02-29 Adrienne Walker Unreviewed, add myself as a reviewer * Scripts/webkitpy/common/config/committers.py: 2012-02-29 Greg Billock Add more tests for web intents https://bugs.webkit.org/show_bug.cgi?id=79527 Reviewed by Adam Barth. * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::sendWebIntentResponse): * DumpRenderTree/chromium/LayoutTestController.h: (LayoutTestController): * DumpRenderTree/chromium/WebViewHost.h: (WebViewHost): (WebViewHost::currentIntentRequest): 2012-02-29 Dirk Pranke nrwt: port/Driver needs to support per-test command line args https://bugs.webkit.org/show_bug.cgi?id=79733 Reviewed by Adam Barth. As part of removing the 'gpu' configurations and adding support for 'virtual test suites', the Driver classes need to support per-test command lines (since different tests will need to be run with different command line options). The per-test args are not yet used, so this change should have no visible effects and need no additional testing. * Scripts/webkitpy/layout_tests/port/base.py: (Port.driver_cmd_line): * Scripts/webkitpy/layout_tests/port/chromium.py: (ChromiumDriver.cmd_line): (ChromiumDriver._start): (ChromiumDriver.start): * Scripts/webkitpy/layout_tests/port/chromium_unittest.py: (ChromiumDriverTest.test_two_drivers.MockDriver.cmd_line): (ChromiumDriverTest): (ChromiumDriverTest.test_two_drivers): * Scripts/webkitpy/layout_tests/port/driver.py: (Driver.cmd_line): (DriverProxy.__init__): (DriverProxy.start): (DriverProxy.cmd_line): * Scripts/webkitpy/layout_tests/port/driver_unittest.py: (DriverTest.test_virtual_driver_methods): * Scripts/webkitpy/layout_tests/port/gtk.py: (GtkDriver.cmd_line): * Scripts/webkitpy/layout_tests/port/mock_drt.py: * Scripts/webkitpy/layout_tests/port/test.py: (TestPort._path_to_driver): (TestDriver.cmd_line): (TestDriver.start): * Scripts/webkitpy/layout_tests/port/webkit.py: (WebKitDriver.cmd_line): (WebKitDriver._start): (WebKitDriver.run_test): (WebKitDriver.start): * Scripts/webkitpy/layout_tests/port/webkit_unittest.py: (WebKitDriverTest.test_no_timeout): * Scripts/webkitpy/performance_tests/perftestsrunner.py: (PerfTestsRunner._run_tests_set): * Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py: (test_run_test_pause_before_testing): 2012-02-29 Dirk Pranke perftestsrunner can call printer.write() after printer.cleanup() https://bugs.webkit.org/show_bug.cgi?id=79872 Reviewed by Ryosuke Niwa. This patch fixes a unittest that was incorrectly calling PerfTestsRunner.run() twice (which led to a weird state in the printer object). * Scripts/webkitpy/performance_tests/perftestsrunner_unittest.py: (MainTest.test_run_with_upload_json): 2012-02-29 Balazs Kelemen [Qt][WK2] WebKitTestRunner should use 480x360 sized view for W3C SVG tests https://bugs.webkit.org/show_bug.cgi?id=76546 Reviewed by Simon Hausmann. Revert the workaround introduced in r107868 and reintroduce the qml binding so we can test the code path that we are more interested in. The reason that it did not work before is that we don't have an active platform window which we now workaround by propagating the resize through QWindowSystemInterface. * WebKitTestRunner/qt/PlatformWebViewQt.cpp: (WTR::WrapperWindow::handleStatusChanged): (WTR::PlatformWebView::resizeTo): 2012-02-29 Gabor Rapcsanyi [GTK] Small fix for cross compilation to not generate gtkdoc. Rubber-stamped by Csaba Osztrogonác. * Scripts/webkitdirs.pm: (isCrossCompilation): 2012-02-28 Lucas Forschler Fix a typo in config.json linx -> linux * BuildSlaveSupport/build.webkit.org-config/config.json: 2012-02-28 Mahesh Kulkarni [Qt] Allow read/write to the WebView.url property https://bugs.webkit.org/show_bug.cgi?id=77554 Reviewed by Tor Arne Vestbø. Fix MiniBrowser to use WebView.url property and remove WebView.load usage. * MiniBrowser/qt/qml/BrowserWindow.qml: 2012-02-28 Dan Winship [GTK] make tests explicitly request GSettingsBackendMemory https://bugs.webkit.org/show_bug.cgi?id=79788 Reviewed by Martin Robinson. Explicitly request the fallback memory-based GSettings backend; if other backends are available then we don't want to use them, because they would make tests depend on the user's preferences. And if other backends aren't available, we don't need glib to print a warning about that fact. * Scripts/webkitpy/layout_tests/port/gtk.py: (GtkPort.setup_environ_for_server): 2012-02-28 Sheriff Bot Unreviewed, rolling out r109110. http://trac.webkit.org/changeset/109110 https://bugs.webkit.org/show_bug.cgi?id=79806 webkitpy makes it too easy to add wkb.ug URLs to ChangeLogs (Requested by aroben on #webkit). * Scripts/webkitpy/common/checkout/changelog.py: (parse_bug_id): (parse_bug_id_from_changelog): * Scripts/webkitpy/common/checkout/changelog_unittest.py: * Scripts/webkitpy/common/config/urls.py: 2012-02-28 Adam Roben Add my new email address Fixes Adam Roben's email address in webkitpy is soon to be incorrect Reviewed by Anders Carlsson. * Scripts/webkitpy/common/config/committers.py: 2012-02-28 Adam Roben Teach webkitpy about wkb.ug URLs Fixes webkit-patch can't find bug numbers from ChangeLog entries that use wkb.ug URLs Reviewed by Anders Carlsson. * Scripts/webkitpy/common/checkout/changelog.py: (parse_bug_id): (parse_bug_id_from_changelog): Fall back to the tiny URL format if neither the short nor long URL formats work. * Scripts/webkitpy/common/checkout/changelog_unittest.py: (ChangeLogTest.test_parse_bug_id_from_changelog): Added tests for the above changes. * Scripts/webkitpy/common/config/urls.py: Added bug_url_tiny, which can be used to match wkb.ug URLs. 2012-02-28 János Badics [Qt] build-webkit does not detect the number of CPUs https://bugs.webkit.org/show_bug.cgi?id=76445 Based on Seo Sanghyeon's work (modification: Automatically determine the number of CPUs for make only if -j make argument haven't already been specified.) Reviewed by Csaba Osztrogonác. * Scripts/webkitdirs.pm: (buildQMakeProjects): 2012-02-28 Kent Tamura Update a pattern for forms files of watchlist https://bugs.webkit.org/show_bug.cgi?id=79767 Reviewed by Kentaro Hara. * Scripts/webkitpy/common/config/watchlist: Catches the following files with the "Forms" pattern. - HTMLDatListElement.* - HTMLKeygenElement.* - HTMLLegendElement.* - HTMLOutputElement.* - FormAssociatedElement.* - SliderThumbElement.* - TextControlInnerElements.* - RenderFileUploadControl.* 2012-02-27 Sheriff Bot Unreviewed, rolling out r109041. http://trac.webkit.org/changeset/109041 https://bugs.webkit.org/show_bug.cgi?id=79741 Broke Chromium Win build (Requested by bashi on #webkit). * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): * DumpRenderTree/chromium/LayoutTestController.h: (LayoutTestController): * DumpRenderTree/chromium/WebViewHost.h: 2012-02-27 James Robinson [chromium] Remove media tests from ChromiumGpu configurations https://bugs.webkit.org/show_bug.cgi?id=79720 Reviewed by Adam Barth. We no longer need to run the media/ tests in both GPU and non-GPU configurations since we can exercise the GPU composited playback path via tests in the compositing/ directory. * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: (_default_tests_paths): * Scripts/webkitpy/layout_tests/port/chromium_gpu_unittest.py: (ChromiumGpuTest.test_default_tests_paths): (ChromiumGpuTest.test_test_files): 2012-02-27 Dirk Pranke nrwt: log multiline stderr/crash output properly https://bugs.webkit.org/show_bug.cgi?id=79722 Reviewed by Adam Barth. This cleans up some nits in the log output to make things slightly easier to read (every line gets timestamped, etc.). Also tweaks the log message for pixel hash mismatches. * Scripts/webkitpy/layout_tests/controllers/single_test_runner.py: (SingleTestRunner._handle_error): (SingleTestRunner._compare_image): 2012-02-27 Ryosuke Niwa Touch the master.cfg to force a reconfig. * BuildSlaveSupport/build.webkit.org-config/master.cfg: (BuildAndTestLeaksFactory): (NewBuildAndTestFactory): 2012-02-27 Jacky Jiang [BlackBerry] Upstream BlackBerry API web page related files https://bugs.webkit.org/show_bug.cgi?id=74380 Reviewed by Antonio Gomes. Adapt to the removing of WebPage::mainFrame(), use DumpRenderTreeSupport::corePage() and its mainFrame() instead. No new tests as this patch doesn't change behavior. * DumpRenderTree/blackberry/DumpRenderTree.cpp: (BlackBerry::WebKit::DumpRenderTree::resetToConsistentStateBeforeTesting): (BlackBerry::WebKit::DumpRenderTree::runTests): 2012-02-27 Ryosuke Niwa Add Windows and Linux Chromium perf bots https://bugs.webkit.org/show_bug.cgi?id=79418 Reviewed by Tony Chang. Add Chromium Win and Linux perf bots. Also replace Chromium Mac by the dedicated perf bot slave (uses the same hardware). * BuildSlaveSupport/build.webkit.org-config/config.json: 2012-02-27 Xianzhu Wang Undefined variable 'current' when running chromium_android.py https://bugs.webkit.org/show_bug.cgi?id=79696 Reviewed by Adam Barth. * Scripts/webkitpy/layout_tests/port/chromium_android.py: (ChromiumAndroidDriver._read_prompt): 2012-02-27 Greg Billock Add more tests for web intents https://bugs.webkit.org/show_bug.cgi?id=79527 Reviewed by Adam Barth. * DumpRenderTree/chromium/LayoutTestController.cpp: (LayoutTestController::LayoutTestController): (LayoutTestController::sendWebIntentResponse): * DumpRenderTree/chromium/LayoutTestController.h: (LayoutTestController): * DumpRenderTree/chromium/WebViewHost.h: (WebViewHost): (WebViewHost::currentIntentRequest): 2012-02-27 Xianzhu Wang Chromium-Android layout test script: the adb shell prompt is not always '# ' https://bugs.webkit.org/show_bug.cgi?id=79506 Reviewed by Adam Barth. * Scripts/webkitpy/layout_tests/port/chromium_android.py: (ChromiumAndroidDriver._start): (ChromiumAndroidDriver._read_prompt): 2012-02-27 Dan Bernstein Added a test for REGRESSION (WebKit2): Non-activating links sometimes don’t work https://bugs.webkit.org/show_bug.cgi?id=79607 Reviewed by Adele Peterson. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Added new files. * TestWebKitAPI/Tests/mac/AcceptsFirstMouse.mm: Added. (TestWebKitAPI::AcceptsFirstMouse::url): (TestWebKitAPI::AcceptsFirstMouse::didLoadURL): (TestWebKitAPI::AcceptsFirstMouse::runTest): (TestWebKitAPI::TEST_F): * TestWebKitAPI/Tests/mac/acceptsFirstMouse.html: Added. 2012-02-27 Carlos Garcia Campos Unreviewed. Fix make distcheck. * GNUmakefile.am: Fix typo. 2012-02-27 Tor Arne Vestbø [Qt] Use USE() macro instead of ENABLE() for using the Qt image decoder Reviewed by Kenneth Rohde Christiansen.. * qmake/mkspecs/features/features.prf: 2012-02-27 Hao Zheng Add a ChromiumGpuAndroid port. https://bugs.webkit.org/show_bug.cgi?id=79628 Reviewed by Adam Barth. Android does have a gpu port, so revert r107697. * Scripts/webkitpy/layout_tests/port/chromium_android.py: (ChromiumAndroidPort.__init__): * Scripts/webkitpy/layout_tests/port/chromium_gpu.py: (ChromiumGpuAndroidPort): (ChromiumGpuAndroidPort.__init__): (ChromiumGpuAndroidPort.baseline_search_path): (ChromiumGpuAndroidPort.default_child_processes): (ChromiumGpuAndroidPort.tests): * Scripts/webkitpy/layout_tests/port/factory.py: (PortFactory): 2012-02-25 Gyuyoung Kim Change Build bot with BuildAndTest bot for EFL port. https://bugs.webkit.org/show_bug.cgi?id=77518 Reviewed by Ryosuke Niwa. EFL build bot starts to support layout test. * BuildSlaveSupport/build.webkit.org-config/config.json: * BuildSlaveSupport/built-product-archive: (archiveBuiltProduct): (extractBuiltProduct): * BuildSlaveSupport/test-result-archive: (archiveTestResults): * Scripts/webkitdirs.pm: Enable SHARED_CORE option when ENABLE_DRT is enable in EFL port. (generateBuildSystemFromCMakeProject): 2012-02-24 Darin Fisher Add watchlist for ChromiumPlatformApi matching Source/Platform/chromium/public/ Reviewed by James Robinson. * Scripts/webkitpy/common/config/watchlist: 2012-02-24 Dirk Pranke webkitpy: changelog_unittest test_fuzzy_reviewer_match is slow https://bugs.webkit.org/show_bug.cgi?id=79258 Reviewed by Ryosuke Niwa. Split the fuzzy matching into separate functions so that they can be sharded and run in parallel. Also, fix a bug in the svn_blame_regexp that was causing us to require ChangeLog lines to have at least one space after the author, making the code require trailing whitespace in the changelog in some places (this was making my life harder because I have my text editor set to strip trailing whitespace in python files, and that was causing test_parse_log_entries_from_changelog() to fail when the whitespace on line 275 was removed). * Scripts/webkitpy/common/checkout/changelog.py: (ChangeLog): * Scripts/webkitpy/common/checkout/changelog_unittest.py: (test_fuzzy_reviewer_match__none): (test_fuzzy_reviewer_match_adam_barth): (test_fuzzy_reviewer_match_darin_adler_et_al): (test_fuzzy_reviewer_match_dimitri_glazkov): (test_fuzzy_reviewer_match_george_staikos): (test_fuzzy_reviewer_match_mark_rowe): 2012-02-24 Dirk Pranke webkitpy: committers_unittest fuzzy matching is really slow https://bugs.webkit.org/show_bug.cgi?id=79179 Reviewed by Ryosuke Niwa. Break the fuzzy matching tests into individual routines for each contributor so that the intent is a little clearer, so that it's easier to test individual names (and identify duplicate tests), and so that we can eventually run them in parallel. Also, mark most of them as 'integration' tests so that they can be skipped if we want to go fast (we leave a few as regular tests for functional coverage). * Scripts/webkitpy/common/config/committers_unittest.py: (CommittersTest): (CommittersTest.test_contributors_by_fuzzy_match): (CommittersTest.integration_test_contributors__none): (CommittersTest.integration_test_contributors__none_2): (CommittersTest.integration_test_contributors__none_3): (CommittersTest.integration_test_contributors_ada_chan): (CommittersTest.integration_test_contributors_adele_peterson): (CommittersTest.integration_test_contributors_alexey_proskuryakov): (CommittersTest.integration_test_contributors_alice_liu): (CommittersTest.integration_test_contributors_alp_toker): (CommittersTest.integration_test_contributors_anders_carlsson): (CommittersTest.integration_test_contributors_antti_koivisto): (CommittersTest.integration_test_contributors_beth_dakin): (CommittersTest.integration_test_contributors_brady_eidson): (CommittersTest.integration_test_contributors_cameron_zwarich): (CommittersTest.integration_test_contributors_chris_blumenberg): (CommittersTest.integration_test_contributors_dan_bernstein): (CommittersTest.integration_test_contributors_dan_bernstein_2): (CommittersTest.integration_test_contributors_darin_adler): (CommittersTest.integration_test_contributors_david_harrison): (CommittersTest.integration_test_contributors_david_harrison_2): (CommittersTest.integration_test_contributors_david_hyatt): (CommittersTest.integration_test_contributors_david_kilzer): (CommittersTest.integration_test_contributors_don_melton): (CommittersTest.integration_test_contributors_eric_seidel): (CommittersTest.integration_test_contributors_geoffrey_garen): (CommittersTest.integration_test_contributors_greg_bolsinga): (CommittersTest.integration_test_contributors_holger_freyther): (CommittersTest.integration_test_contributors_jon_sullivan): (CommittersTest.integration_test_contributors_jon_honeycutt): (CommittersTest.integration_test_contributors_joseph_pecoraro): (CommittersTest.integration_test_contributors_ken_kocienda): (CommittersTest.integration_test_contributors_kenneth_russell): (CommittersTest.integration_test_contributors_kevin_decker): (CommittersTest.integration_test_contributors_kevin_mccullough): (CommittersTest.integration_test_contributors_lars_knoll): (CommittersTest.integration_test_contributors_lars_weintraub): (CommittersTest.integration_test_contributors_maciej_stachowiak): (CommittersTest.integration_test_contributors_mark_rowe): (CommittersTest.integration_test_contributors_nikolas_zimmermann): (CommittersTest.integration_test_contributors_oliver_hunt): (CommittersTest.integration_test_contributors_rniwa): (CommittersTest.disabled_integration_test_contributors_simon_fraser): (CommittersTest.integration_test_contributors_steve_falkenburg): (CommittersTest.integration_test_contributors_sam_weinig): (CommittersTest.integration_test_contributors_tim_omernick): (CommittersTest.integration_test_contributors_timothy_hatcher): (CommittersTest.integration_test_contributors_tor_arne_vestbo): (CommittersTest.integration_test_contributors_vicki_murley): (CommittersTest.integration_test_contributors_zack_rusin): 2012-02-24 Dirk Pranke webkitpy: should autoinstall coverage https://bugs.webkit.org/show_bug.cgi?id=79535 Reviewed by Eric Seidel. We should automatically print the coverage report after the run, too. * Scripts/webkitpy/test/main.py: (Tester._run_tests): * Scripts/webkitpy/thirdparty/__init__.py: (AutoinstallImportHook.find_module): (AutoinstallImportHook._install_coverage): 2012-02-24 Pablo Flouret Fix copypasta in build-webkit's --vibration option description https://bugs.webkit.org/show_bug.cgi?id=79528 Reviewed by Andreas Kling. * Scripts/build-webkit: 2012-02-24 Antonio Gomes Adding myself to ScrollingCoordinator watchlist https://bugs.webkit.org/show_bug.cgi?id=79525 Reviewed by Rob Buis. * Scripts/webkitpy/common/config/watchlist: 2012-02-24 Darin Fisher Update watchlist for ChromiumPublicApi to include Platform/chromium/public/ Reviewed by Adam Barth. * Scripts/webkitpy/common/config/watchlist: 2012-02-24 Dirk Pranke webkitpy: config_unittest is sensitive to other tests that might've already run https://bugs.webkit.org/show_bug.cgi?id=79382 Reviewed by Adam Barth. If another test runs prior to config_unittest and pokes the cached configuration, the first test in config_unittest might fail; the tearDown() will then allow subsequent tests to pass. Clearing the configuration prior to each test makes things slightly slower but safer. * Scripts/webkitpy/layout_tests/port/config_unittest.py: (ConfigTest.setUp): 2012-02-24 David Kilzer Use xcrun to find compiler paths for Generate Derived Sources build phase script Reviewed by Dan Bernstein. * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: (Generate Derived Sources): Use xcrun to find the path to the compiler since that works on both iOS and OS X. 2012-02-24 James Robinson Create a watchlist for ScrollingCoordinator changes https://bugs.webkit.org/show_bug.cgi?id=79511 Reviewed by Anders Carlsson. * Scripts/webkitpy/common/config/watchlist: 2012-02-24 Grzegorz Czajkowski [EFL][DRT] Implement setValueForUser and setAutofilled. https://bugs.webkit.org/show_bug.cgi?id=79237 Reviewed by Andreas Kling. Adds missing implementation setValueForUser and setAutofilled to EFL's LayoutTestController. Those implementations are related with input fields and allow to pass following tests: fast/forms/onchange-setvalueforuser.html fast/forms/input-autofilled.html fast/forms/reset-autofilled.html * DumpRenderTree/efl/LayoutTestControllerEfl.cpp: (LayoutTestController::setValueForUser): (LayoutTestController::setAutofilled): 2012-02-24 Zoltan Horvath [Qt] Allow to use WebCore imagedecoders https://bugs.webkit.org/show_bug.cgi?id=32410 Add ENABLE_QT_IMAGE_DECODER macro, it's enabled by default. Reviewed by Simon Hausmann. * qmake/mkspecs/features/features.prf: 2012-02-24 Balazs Kelemen [Qt] Add Qt5 way to force 96 DPI for tests https://bugs.webkit.org/show_bug.cgi?id=79364 Reviewed by Simon Hausmann. * DumpRenderTree/qt/main.cpp: (main): * WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp: (WTR::activateFonts): 2012-02-24 Carlos Garcia Campos [GTK] MiniBrowser should reload the view then the reload button is clicked https://bugs.webkit.org/show_bug.cgi?id=79472 Reviewed by Philippe Normand. * MiniBrowser/gtk/BrowserWindow.c: (reloadCallback): Call webkit_web_view_reload(). (browser_window_init): Connect reload item clicked even to reloadCallback instead of activateUriEntryCallback. 2012-02-24 Kentaro Hara Add performance tests for DOM attribute getters and setters https://bugs.webkit.org/show_bug.cgi?id=79208 Reviewed by Ryosuke Niwa. We want to allow perf tests to output info messages that do not affect the test results. To accomplish this, this patch modifies perftestsrunner.py so that it ignores a line that starts from "Info:". * Scripts/webkitpy/performance_tests/perftestsrunner.py: (PerfTestsRunner): 2012-02-24 Andrew Lo [BlackBerry] Enable requestAnimationFrame https://bugs.webkit.org/show_bug.cgi?id=79408 Enable requestAnimationFrame for BlackBerry. Reviewed by Rob Buis. * Scripts/build-webkit: 2012-02-24 Adam Barth style-queue tries to apply the patch twice https://bugs.webkit.org/show_bug.cgi?id=79459 Reviewed by Eric Seidel. Previously, we applied the patch using both apply-patch and check-style. This patch introduces a check-style-local to mirror the apply-watchlist-local, which operates on the current working diff. This patch also cleans up some other bugs I found by running the queue locally for a while. The queue still prints out a slightly less-than-ideal message on the bugs when it find an error, but it's ok for now. We'll need to iterate a bit. * Scripts/webkitpy/tool/bot/stylequeuetask.py: (StyleQueueTask.validate): (StyleQueueTask._check_style): * Scripts/webkitpy/tool/commands/download.py: (CheckStyleLocal): * Scripts/webkitpy/tool/commands/earlywarningsystem_unittest.py: (EarlyWarningSytemTest._default_expected_stderr): (EarlyWarningSytemTest._test_testing_ews): * Scripts/webkitpy/tool/commands/queues.py: (AbstractReviewQueue.handle_script_error): (StyleQueue.review_patch): * Scripts/webkitpy/tool/commands/queues_unittest.py: * Scripts/webkitpy/tool/commands/queuestest.py: (QueuesTest.assert_queue_outputs): 2012-02-23 Adam Barth should_proceed_with_work_item is unused and can be removed https://bugs.webkit.org/show_bug.cgi?id=79416 Reviewed by Eric Seidel. We used to use this function to check whether the tree is red. Now, we don't use external measures of whether to proceed with work items. Instead, we analyze them with the idea in mind that the tree might be red. * Scripts/webkitpy/tool/bot/queueengine.py: (QueueEngineDelegate.next_work_item): (QueueEngine.run): * Scripts/webkitpy/tool/bot/queueengine_unittest.py: (LoggingDelegate): (LoggingDelegate.next_work_item): (RaisingDelegate.process_work_item): (QueueEngineTest.test_terminating_error): * Scripts/webkitpy/tool/commands/earlywarningsystem.py: (AbstractEarlyWarningSystem.__init__): * Scripts/webkitpy/tool/commands/queues.py: (AbstractQueue.next_work_item): (FeederQueue.next_work_item): (CommitQueue.next_work_item): (AbstractReviewQueue.next_work_item): (StyleQueue.__init__): * Scripts/webkitpy/tool/commands/queues_unittest.py: (FeederQueueTest.test_feeder_queue): (CommitQueueTest.test_commit_queue): (test_commit_queue_failure): (test_commit_queue_failure_with_failing_tests): (test_rollout): (test_rollout_lands): (StyleQueueTest.test_style_queue_with_style_exception): (test_style_queue_with_watch_list_exception): * Scripts/webkitpy/tool/commands/queuestest.py: (QueuesTest.assert_queue_outputs): * Scripts/webkitpy/tool/commands/sheriffbot.py: (SheriffBot.next_work_item): 2012-02-23 Adrienne Walker Unreviewed, add Stephen Chenney to committers.py as a contributor. * Scripts/webkitpy/common/config/committers.py: 2012-02-23 Adam Barth style-queue logs bogus messages to the QueueStatusServer https://bugs.webkit.org/show_bug.cgi?id=79424 Reviewed by Eric Seidel. Copy/paste error. * Scripts/webkitpy/tool/bot/stylequeuetask.py: (StyleQueueTask._check_style): (StyleQueueTask._apply_watch_list): * Scripts/webkitpy/tool/commands/queues_unittest.py: 2012-02-23 Eric Seidel Use self._filesystem in more places in the SCM classes https://bugs.webkit.org/show_bug.cgi?id=79415 Reviewed by Adam Barth. * Scripts/webkitpy/common/checkout/scm/detection_unittest.py: (SCMDetectorTest.test_detect_scm_system): * Scripts/webkitpy/common/checkout/scm/git.py: (Git.find_checkout_root): (Git.to_object_name): * Scripts/webkitpy/common/checkout/scm/scm.py: (SCM.__init__): (SCM.in_working_directory): * Scripts/webkitpy/common/checkout/scm/svn.py: (SVN.find_uuid): (SVN.find_checkout_root): 2012-02-23 Sheriff Bot Unreviewed, rolling out r108685. http://trac.webkit.org/changeset/108685 https://bugs.webkit.org/show_bug.cgi?id=79414 Broke Chromium builds (Requested by enne on #webkit). * qmake/mkspecs/features/features.prf: 2012-02-23 Adam Barth style-queue shouldn't spam bugs if it fails to update its working copy https://bugs.webkit.org/show_bug.cgi?id=79412 Reviewed by Eric Seidel. This patch moves style-queue over to the new PatchAnalysisTask infrastructure, which is smarter about retrying patches when update fails. * Scripts/webkitpy/common/system/executive_mock.py: (MockExecutive.run_and_throw_if_fail): * Scripts/webkitpy/tool/bot/earlywarningsystemtask.py: * Scripts/webkitpy/tool/bot/patchanalysistask.py: (UnableToApplyPatch): (UnableToApplyPatch.__init__): (PatchAnalysisTask.__init__): * Scripts/webkitpy/tool/bot/stylequeuetask.py: Added. (StyleQueueTaskDelegate): (StyleQueueTaskDelegate.parent_command): (StyleQueueTask): (StyleQueueTask.validate): (StyleQueueTask._check_style): (StyleQueueTask._apply_watch_list): (StyleQueueTask.run): * Scripts/webkitpy/tool/commands/earlywarningsystem.py: * Scripts/webkitpy/tool/commands/queues.py: (StyleQueue): (StyleQueue.should_proceed_with_work_item): (StyleQueue.review_patch): (StyleQueue.run_command): (StyleQueue.command_passed): (StyleQueue.command_failed): (StyleQueue.expected_failures): (StyleQueue.refetch_patch): * Scripts/webkitpy/tool/commands/queues_unittest.py: (StyleQueueTest.test_style_queue_with_style_exception): (test_style_queue_with_watch_list_exception): 2012-02-23 Zoltan Horvath [Qt] Allow to use WebCore imagedecoders https://bugs.webkit.org/show_bug.cgi?id=32410 Add ENABLE_QT_IMAGE_DECODER macro, it's enabled by default. Reviewed by Simon Hausmann. * qmake/mkspecs/features/features.prf: 2012-02-23 Eric Seidel Remove old broken find_checkout_root tests now that find_checkout_root is gone https://bugs.webkit.org/show_bug.cgi?id=79405 Reviewed by Adam Barth. * Scripts/webkitpy/common/checkout/scm/detection_unittest.py: Added. (SCMDetectorTest): (SCMDetectorTest.test_find_checkout_root): * Scripts/webkitpy/common/checkout/scm/scm_unittest.py: (SVNTestRepository.tear_down): 2012-02-23 Michael Brüning [Qt][WK2] Implement proxy authentication dialog. https://bugs.webkit.org/show_bug.cgi?id=79350 Reviewed by Simon Hausmann. * MiniBrowser/qt/MiniBrowser.qrc: * MiniBrowser/qt/qml/BrowserWindow.qml: * MiniBrowser/qt/qml/ProxyAuthenticationDialog.qml: Added. 2012-02-23 Kevin Ollivier [wx] Build fix, add recently added source dirs. * waf/build/settings.py: 2012-02-23 Simon Hausmann [Qt] Add support for touch cancellation https://bugs.webkit.org/show_bug.cgi?id=79348 Reviewed by Kenneth Rohde Christiansen. Added straight-forward touch cancellation event sending to Qt WK1 DRT and WK2 WTR. * DumpRenderTree/qt/EventSenderQt.cpp: (EventSender::touchCancel): (EventSender::cancelTouchPoint): * DumpRenderTree/qt/EventSenderQt.h: (EventSender): * WebKitTestRunner/EventSenderProxy.h: (EventSenderProxy): * WebKitTestRunner/InjectedBundle/Bindings/EventSendingController.idl: * WebKitTestRunner/InjectedBundle/EventSendingController.cpp: (WTR::EventSendingController::touchCancel): (WTR): (WTR::EventSendingController::cancelTouchPoint): * WebKitTestRunner/InjectedBundle/EventSendingController.h: (EventSendingController): * WebKitTestRunner/TestController.cpp: (WTR::TestController::didReceiveSynchronousMessageFromInjectedBundle): * WebKitTestRunner/qt/EventSenderProxyQt.cpp: (WTR::EventSenderProxy::touchCancel): (WTR): (WTR::EventSenderProxy::cancelTouchPoint): 2012-02-23 Sheriff Bot Unreviewed, rolling out r108626. http://trac.webkit.org/changeset/108626 https://bugs.webkit.org/show_bug.cgi?id=79370 broke qt-wk2 bot, somehow the workaround does not work on the bot (Requested by Ossy on #webkit). * WebKitTestRunner/qt/PlatformWebViewQt.cpp: (WTR::WrapperWindow::handleStatusChanged): (WTR::PlatformWebView::resizeTo): 2012-02-23 ChangSeok Oh [GTK] DRT doesn't support scheduleAsynchronousKeyDown. https://bugs.webkit.org/show_bug.cgi?id=78481 Reviewed by Gustavo Noronha Silva. Extracted shareable code from keyDownCallback and then added createKeyPressEvent to create gdk press key event. Added sendKeyDown and sendAsynchronousKeyDown to evaluate keyDown event directly and asynchronously. Eventually, sendAsynchronousKeyDown calls sendKeyDown. * DumpRenderTree/gtk/EventSender.cpp: (scheduleAsynchronousClickCallback): (createKeyPressEvent): (sendKeyDown): (keyDownCallback): (sendAsynchronousKeyDown): (scheduleAsynchronousKeyDownCallback): 2012-02-23 Balazs Kelemen [Qt][WK2] WebKitTestRunner should use 480x360 sized view for W3C SVG tests https://bugs.webkit.org/show_bug.cgi?id=76546 Reviewed by Simon Hausmann. Co-authored with Simon Hausmann. Revert the workaround introduced in r107868 and reintroduce the qml binding so we can test the code path that we are more interested in. The reason that it did not work before is that we don't have an active platform window which we now workaround by propagating the resize through QWindowSystemInterface. * WebKitTestRunner/qt/PlatformWebViewQt.cpp: (WTR::WrapperWindow::handleStatusChanged): (WTR::PlatformWebView::resizeTo): 2012-02-23 Sheriff Bot Unreviewed, rolling out r108577. http://trac.webkit.org/changeset/108577 https://bugs.webkit.org/show_bug.cgi?id=79359 It doesn't work as expected (Requested by Ossy on #webkit). * DumpRenderTree/qt/EventSenderQt.cpp: (EventSender::postEvent): * DumpRenderTree/qt/EventSenderQt.h: (EventSender): 2012-02-23 Philippe Normand [GTK] FullScreen signals https://bugs.webkit.org/show_bug.cgi?id=76181 Reviewed by Martin Robinson. Use the two new entering/leaving fullscreen signals to hide/show the tool bar, the status bar and ask the user's permission before entering fullscreen. * GtkLauncher/main.c: (webViewFullscreenMessageWindowClose): (webViewWindowStateEvent): (hide_widget): (show_widget): (webViewEnteringFullScreen): (webViewLeavingFullScreen): (createBrowser): (createWindow): 2012-02-22 Dongwoo Im [EFL] Fix to launch the EWebLauncher using the script, run-launcher. https://bugs.webkit.org/show_bug.cgi?id=79076 Reviewed by Andreas Kling. * Scripts/webkitdirs.pm: Fix the path of libewebkit.so. (builtDylibPathForName): 2012-02-22 Allan Sandfeld Jensen [Qt] Add eventSender.gestureTap https://bugs.webkit.org/show_bug.cgi?id=66173 Reviewed by Kenneth Rohde Christiansen. * DumpRenderTree/qt/EventSenderQt.cpp: (EventSender::gestureTap): * DumpRenderTree/qt/EventSenderQt.h: 2012-02-22 Brady Eidson and https://bugs.webkit.org/show_bug.cgi?id=79279 Synchronous ShouldGoToBackForwardListItem causes lots of WebProcess hangs Reviewed by Anders Carlsson. Update our tools to the new form of the PageLoadClient. * MiniBrowser/mac/BrowserWindowController.m: (-[BrowserWindowController awakeFromNib]): * WebKitTestRunner/TestController.cpp: (WTR::TestController::initialize): 2012-02-22 Daniel Bates new-run-webkit-tests shouldn't restore Safari state on Lion when showing results https://bugs.webkit.org/show_bug.cgi?id=79277 Reviewed by Adam Barth. Pass command line argument no-saved-state to run-safari to disable Safari state restoration for the session on OS 10.7. * Scripts/webkitpy/layout_tests/port/mac.py: (MacPort.show_results_html_file): * Scripts/webkitpy/layout_tests/port/mac_unittest.py: (test_show_results_html_file): 2012-02-22 Kalev Lember Explicitly include unistd.h in TestNetscapePlugIn for GCC 4.7 https://bugs.webkit.org/show_bug.cgi?id=77759 Reviewed by Tony Chang. Fixes build with gcc 4.7. r100432 added the include only for ANDROID; this changes the ifdef to also cover other unix platforms. On Fedora 17 the gcc 4.7 compiler no longer implicitly includes unistd.h from standard headers and other unix platforms are likely to get gcc 4.7 as well in the future. * DumpRenderTree/TestNetscapePlugIn/PluginTest.cpp: 2012-02-22 Philippe Normand Unreviewed, rolling out r108522. http://trac.webkit.org/changeset/108522 https://bugs.webkit.org/show_bug.cgi?id=76181 Broke 4 fullscreen tests on GTK. * GtkLauncher/main.c: (createBrowser): (createWindow): 2012-02-20 Philippe Normand [GTK] FullScreen signals https://bugs.webkit.org/show_bug.cgi?id=76181 Reviewed by Martin Robinson. Use the two new entering/leaving fullscreen signals to hide/show the tool bar, the status bar and ask the user's permission before entering fullscreen. * GtkLauncher/main.c: (webViewFullscreenMessageWindowClose): (webViewWindowStateEvent): (hide_widget): (show_widget): (webViewEnteringFullScreen): (webViewLeavingFullScreen): (createBrowser): (createWindow): 2012-02-22 Rob Flack Update Linux ChromiumOS builders in flakiness dashboard. https://bugs.webkit.org/show_bug.cgi?id=79238 Reviewed by Ojan Vafai. * TestResultServer/static-dashboards/builders.js: 2012-02-22 Dirk Pranke webkitpy: test_function_length_check_definition_huge_lines is slow https://bugs.webkit.org/show_bug.cgi?id=79185 Reviewed by Adam Barth. This test takes ~3 seconds to run, apparently because we're running a test on a 10,000 line function :). Dropping the function length to 640 still exercises the code path and provides a 10x speedup. * Scripts/webkitpy/style/checkers/cpp_unittest.py: (CppStyleTest): (CheckForFunctionLengthsTest.test_function_length_check_definition_huge_lines): 2012-02-22 Dirk Pranke webkitpy: speed up FileLockTest.test_lock_lifecycle https://bugs.webkit.org/show_bug.cgi?id=79189 Reviewed by Adam Barth. The unit test had a second lock trying to acquire a lock already held, and a hard-coded timeout of one second. I have changed the timeouts to a tenth of a second (which is probably still fine) and changed the hard-spin on the lock to a slow-spin every hundredth of a second. * Scripts/webkitpy/common/system/file_lock.py: (FileLock.acquire_lock): * Scripts/webkitpy/common/system/file_lock_integrationtest.py: (FileLockTest.setUp): (FileLockTest.test_stuck_lock): 2012-02-22 Gabor Rapcsanyi build-webkit should use environment variable at number of CPU detection on all platform https://bugs.webkit.org/show_bug.cgi?id=79227 Reviewed by Martin Robinson. * Scripts/webkitdirs.pm: (determineNumberOfCPUs): 2012-02-22 Mihnea Ovidenie [Qt] REGRESSION(r108108): It made 3 fast/repaint tests fail https://bugs.webkit.org/show_bug.cgi?id=78960 Reviewed by Csaba Osztrogonác. * DumpRenderTree/qt/LayoutTestControllerQt.cpp: (LayoutTestController::overridePreference): 2012-02-22 Hao Zheng [chromium] Build WebKit with MEDIA_STREAM disabled. https://bugs.webkit.org/show_bug.cgi?id=79214 Reviewed by Kent Tamura. * DumpRenderTree/chromium/WebUserMediaClientMock.cpp: * DumpRenderTree/chromium/WebUserMediaClientMock.h: * DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::createMediaPlayer): * DumpRenderTree/chromium/WebViewHost.h: (WebViewHost): 2012-02-22 Zeno Albisser [Qt][WK2][Mac] WebKitTestRunner does not build with clang. https://bugs.webkit.org/show_bug.cgi?id=79124 WebKitTestRunnerPrefix.h should also be included when building with clang. Reviewed by Kenneth Rohde Christiansen. * WebKitTestRunner/Target.pri: 2012-02-20 Roland Steiner