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

Issue 10909240: Support for pixel layout tests. (Closed)

Created:
8 years, 3 months ago by gram
Modified:
8 years, 3 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support for pixel layout tests. Committed: https://code.google.com/p/dart/source/detail?r=12655

Patch Set 1 #

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Patch Set 4 : #

Total comments: 40

Patch Set 5 : #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+821 lines, -730 lines) Patch
M utils/testrunner/configuration.dart View 1 2 3 4 4 chunks +8 lines, -4 lines 0 comments Download
M utils/testrunner/dart_wrap_task.dart View 1 2 3 4 2 chunks +110 lines, -427 lines 4 comments Download
M utils/testrunner/drt_task.dart View 1 2 3 4 1 chunk +1 line, -207 lines 0 comments Download
M utils/testrunner/html_wrap_task.dart View 1 2 3 4 2 chunks +37 lines, -33 lines 0 comments Download
A utils/testrunner/layout_test_controller.dart View 1 2 3 4 1 chunk +284 lines, -0 lines 6 comments Download
A utils/testrunner/layout_test_runner.dart View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
M utils/testrunner/options.dart View 1 2 3 4 3 chunks +9 lines, -5 lines 0 comments Download
M utils/testrunner/pipeline_task.dart View 1 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
A utils/testrunner/standard_test_runner.dart View 1 2 3 4 1 chunk +278 lines, -0 lines 0 comments Download
M utils/testrunner/testrunner.dart View 1 2 3 4 2 chunks +13 lines, -39 lines 0 comments Download
M utils/testrunner/utils.dart View 1 2 3 4 1 chunk +16 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gram
8 years, 3 months ago (2012-09-14 18:12:06 UTC) #1
Siggi Cherem (dart-lang)
just some general high-level comments so far https://chromiumcodereview.appspot.com/10909240/diff/11/utils/testrunner/dart_wrap_task.dart File utils/testrunner/dart_wrap_task.dart (right): https://chromiumcodereview.appspot.com/10909240/diff/11/utils/testrunner/dart_wrap_task.dart#newcode27 utils/testrunner/dart_wrap_task.dart:27: // wrapped ...
8 years, 3 months ago (2012-09-14 20:01:23 UTC) #2
gram
Okay, I have a significant refactoring done now; should be much better. On 2012/09/14 20:01:23, ...
8 years, 3 months ago (2012-09-17 20:33:39 UTC) #3
gram
PTAL, it is working now. I removed the HTTP server stuff and will add that ...
8 years, 3 months ago (2012-09-19 23:24:38 UTC) #4
Siggi Cherem (dart-lang)
moving the runtime file out makes things so much better. Thanks! https://chromiumcodereview.appspot.com/10909240/diff/8001/utils/testrunner/dart_wrap_task.dart File utils/testrunner/dart_wrap_task.dart (right): ...
8 years, 3 months ago (2012-09-20 17:37:27 UTC) #5
gram
ptal https://chromiumcodereview.appspot.com/10909240/diff/8001/utils/testrunner/dart_wrap_task.dart File utils/testrunner/dart_wrap_task.dart (right): https://chromiumcodereview.appspot.com/10909240/diff/8001/utils/testrunner/dart_wrap_task.dart#newcode71 utils/testrunner/dart_wrap_task.dart:71: if (config.runInBrowser) { On 2012/09/20 17:37:27, sigmund wrote: ...
8 years, 3 months ago (2012-09-20 18:58:03 UTC) #6
Siggi Cherem (dart-lang)
lgtm! Pulling the conditionals before building the ouput made the code a lot easier to ...
8 years, 3 months ago (2012-09-20 19:56:27 UTC) #7
gram
8 years, 3 months ago (2012-09-20 20:08:17 UTC) #8
https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/da...
File utils/testrunner/dart_wrap_task.dart (right):

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/da...
utils/testrunner/dart_wrap_task.dart:25: var libDirectory =  runnerDirectory;
On 2012/09/20 19:56:27, sigmund wrote:
> nit: seems you don't need the local variable anymore, there is only one use on
> each branch. OW, remove extra space (there seem to be 2)

Done.

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/da...
utils/testrunner/dart_wrap_task.dart:122: """
On 2012/09/20 19:56:27, sigmund wrote:
> nit: I prefer putting this on the previous line.

Done.

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/la...
File utils/testrunner/layout_test_controller.dart (right):

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/la...
utils/testrunner/layout_test_controller.dart:175: if (lines[j] != stdout[i+j]) {
On 2012/09/20 19:56:27, sigmund wrote:
> nit: spaces around + (here and next line)

Done.

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/la...
utils/testrunner/layout_test_controller.dart:264: for (var j = 0; j < len; j++)
{
On 2012/09/20 19:56:27, sigmund wrote:
> seems like this loop and the one in the other onExit are very similar, can
they
> be pull out into a reusable function? (bool compareLists(List a, List b)?)


We're comparing items at different offsets, so a plain compareLists wouldn't
work; we'd need to pass base offsets or make a copy of the list that is not
zero-based. I don't think it is really worth it.

https://chromiumcodereview.appspot.com/10909240/diff/8005/utils/testrunner/la...
utils/testrunner/layout_test_controller.dart:265: if (bytes[j] != stdout[pos+j])
{
On 2012/09/20 19:56:27, sigmund wrote:
> ditto and next line

Done.

Powered by Google App Engine
This is Rietveld 408576698