Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 378113003: Modifications to layout test framework so that it can work with browser_tests. (Closed)

Created:
6 years, 5 months ago by ivandavid
Modified:
6 years, 5 months ago
CC:
blink-reviews, Dan Beam
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Modifications to layout test framework so that it can work with browsertests. This is for end to end testing for print preview. BUG=388517 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178486

Patch Set 1 #

Patch Set 2 : Undid accidental changes to layout_test_runner.py. Added some comments in browser_test.py. #

Patch Set 3 : Fixed merge problems, now the CL is consistent with what is currently in origin/master. #

Patch Set 4 : Refactored browser_test.py by removing all the platform specific ports and created a class that cre… #

Total comments: 23

Patch Set 5 : Removed metaclass code. Fixed whitespace issues. Moved most of the browser_test_driver.py code to driver.py. #

Patch Set 6 : Code works with Mac and Windows now. #

Patch Set 7 : Removed test results directory function as it can just be passed in. #

Patch Set 8 : Layout test framework removes the temp directory that the browser test created. #

Total comments: 8

Patch Set 9 : Ignoring errors when deleting temp dir created by the browser test. #

Patch Set 10 : Removed get_port_class_name() override. #

Total comments: 19

Patch Set 11 : BrowserTestPortOverrides inherits from object. Fixed deadline issues. Moved _read_stdin_path. #

Total comments: 4

Patch Set 12 : Added unit tests for the driver and the port. Rewrote BrowserTestDriver.start() to be testable. #

Total comments: 1

Patch Set 13 : Removed the test_uses_apache from BrowserTestWinPort. #

Patch Set 14 : New patchset to recommit code. #

Patch Set 15 : Fixed browser test driver unittests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -29 lines) Patch
M Tools/Scripts/webkitpy/layout_tests/port/base.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A + Tools/Scripts/webkitpy/layout_tests/port/browser_test.py View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +37 lines, -16 lines 0 comments Download
A Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +95 lines, -0 lines 0 comments Download
A Tools/Scripts/webkitpy/layout_tests/port/browser_test_driver_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +66 lines, -0 lines 0 comments Download
A Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +87 lines, -0 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/driver.py View 1 2 3 4 5 6 7 8 9 10 4 chunks +6 lines, -3 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/driver_unittest.py View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/port/factory.py View 1 2 3 4 1 chunk +14 lines, -5 lines 0 comments Download
M Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
ivandavid
6 years, 5 months ago (2014-07-09 01:36:39 UTC) #1
Dan Beam
i'll defer to dpranke@ here (-dbeam@)
6 years, 5 months ago (2014-07-09 22:19:15 UTC) #2
ivandavid
I fixed some of the mistakes I made when merging that caused some code to ...
6 years, 5 months ago (2014-07-10 22:39:10 UTC) #3
Dirk Pranke
This looks like it's on the right track. 1) Please update the change description with ...
6 years, 5 months ago (2014-07-10 23:37:13 UTC) #4
ivandavid
https://codereview.chromium.org/378113003/diff/120001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/120001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode39 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:39: return self._driver_class()(self, worker_number, pixel_tests=self.get_option('pixel_tests'), no_timeout=no_timeout) On 2014/07/10 23:37:13, Dirk ...
6 years, 5 months ago (2014-07-16 21:29:01 UTC) #5
Dirk Pranke
getting close ... https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode71 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:71: return self._build_path_with_configuration(configuration, self.driver_name()) Do you actually ...
6 years, 5 months ago (2014-07-16 23:37:20 UTC) #6
ivandavid
https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode71 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:71: return self._build_path_with_configuration(configuration, self.driver_name()) On 2014/07/16 23:37:20, Dirk Pranke wrote: ...
6 years, 5 months ago (2014-07-16 23:53:52 UTC) #7
Dirk Pranke
https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode71 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:71: return self._build_path_with_configuration(configuration, self.driver_name()) On 2014/07/16 23:53:52, ivandavid wrote: > ...
6 years, 5 months ago (2014-07-16 23:59:31 UTC) #8
Dirk Pranke
https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode62 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:62: return linux.LinuxPort.determine_full_port_name(host, options, port_name) Odd, one of my comments ...
6 years, 5 months ago (2014-07-17 00:03:07 UTC) #9
ivandavid
https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/260001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode62 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:62: return linux.LinuxPort.determine_full_port_name(host, options, port_name) On 2014/07/17 00:03:06, Dirk Pranke ...
6 years, 5 months ago (2014-07-17 00:18:09 UTC) #10
Dirk Pranke
Just a couple of nits now, and one real quibble about how you are using ...
6 years, 5 months ago (2014-07-17 00:31:16 UTC) #11
ivandavid
https://codereview.chromium.org/378113003/diff/300001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test.py (right): https://codereview.chromium.org/378113003/diff/300001/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py#newcode13 Tools/Scripts/webkitpy/layout_tests/port/browser_test.py:13: # * Neither the Google name nor the names ...
6 years, 5 months ago (2014-07-17 03:04:48 UTC) #12
Dirk Pranke
at this point it basically looks good. 1) See my comments about your pylint problem; ...
6 years, 5 months ago (2014-07-17 21:20:13 UTC) #13
ivandavid
I wrote some tests for each of the ports. I also wrote one for the ...
6 years, 5 months ago (2014-07-18 04:24:59 UTC) #14
Dirk Pranke
lgtm. let's give this a shot! https://codereview.chromium.org/378113003/diff/360001/Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py File Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py (right): https://codereview.chromium.org/378113003/diff/360001/Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py#newcode61 Tools/Scripts/webkitpy/layout_tests/port/browser_test_unittest.py:61: self.assertFalse(self.make_port().uses_apache()) test_uses_apache() has ...
6 years, 5 months ago (2014-07-18 16:43:14 UTC) #15
ivandavid
The CQ bit was checked by ivandavid@chromium.org
6 years, 5 months ago (2014-07-18 19:20:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivandavid@chromium.org/378113003/380001
6 years, 5 months ago (2014-07-18 19:21:00 UTC) #17
commit-bot: I haz the power
Change committed as 178486
6 years, 5 months ago (2014-07-18 20:31:02 UTC) #18
abarth-chromium
This CL is on the blamelist for a bunch of different LayoutTest failures on the ...
6 years, 5 months ago (2014-07-18 22:30:33 UTC) #19
blink-reviews
Go for it. On Fri, Jul 18, 2014 at 3:30 PM, <abarth@chromium.org> wrote: > This ...
6 years, 5 months ago (2014-07-18 22:36:52 UTC) #20
abarth-chromium
A revert of this CL has been created in https://codereview.chromium.org/398543005/ by abarth@chromium.org. The reason for ...
6 years, 5 months ago (2014-07-18 22:37:35 UTC) #21
ivandavid
The CQ bit was checked by ivandavid@chromium.org
6 years, 5 months ago (2014-07-19 00:43:38 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivandavid@chromium.org/378113003/430001
6 years, 5 months ago (2014-07-19 00:44:13 UTC) #23
Dirk Pranke
6 years, 5 months ago (2014-07-19 00:47:44 UTC) #24
On 2014/07/19 00:44:13, I haz the power (commit-bot) wrote:
> CQ is trying da patch. Follow status at
> 
https://chromium-status.appspot.com/cq/ivandavid@chromium.org/378113003/430001

I don't think you can just re-open and re-commit this (I think the patch might
fail). I could be wrong.

General practice would be to upload a new patch explaining that you're
re-landing something, and either wait for me to review it, or at least TBR me if
you had a reasonable belief that I'd be fine with this (which you do).

Powered by Google App Engine
This is Rietveld 408576698