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

Issue 11929022: Small bugfix in test_suite.dart (Closed)

Created:
7 years, 11 months ago by kustermann
Modified:
7 years, 11 months ago
Reviewers:
ricow1, ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Small bugfix in test_suite.dart Committed: https://code.google.com/p/dart/source/detail?r=17702

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M tools/testing/dart/test_suite.dart View 1 2 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
kustermann
I'm not sure if this is the right approach, what do you think?
7 years, 11 months ago (2013-01-18 14:15:00 UTC) #1
ricow1
lgtm https://codereview.chromium.org/11929022/diff/1/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/11929022/diff/1/tools/testing/dart/test_suite.dart#newcode976 tools/testing/dart/test_suite.dart:976: if (serverList.length >= 2) { why not just ...
7 years, 11 months ago (2013-01-23 14:40:32 UTC) #2
kustermann
PTAL. I've changed it now a bit. If we list the tests we probably still ...
7 years, 11 months ago (2013-01-23 17:25:08 UTC) #3
ricow1
LGTM https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_suite.dart#newcode979 tools/testing/dart/test_suite.dart:979: serverPort = serverList[0].port; this is probably slightly messing ...
7 years, 11 months ago (2013-01-24 14:06:14 UTC) #4
ahe
DBC https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_suite.dart File tools/testing/dart/test_suite.dart (right): https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_suite.dart#newcode976 tools/testing/dart/test_suite.dart:976: var serverPort = "PORT"; It is kinda hard ...
7 years, 11 months ago (2013-01-25 12:40:23 UTC) #5
kustermann
7 years, 11 months ago (2013-01-28 11:20:54 UTC) #6
https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_su...
File tools/testing/dart/test_suite.dart (right):

https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_su...
tools/testing/dart/test_suite.dart:976: var serverPort = "PORT";
On 2013/01/25 12:40:23, ahe wrote:
> It is kinda hard to understand how this works. Could you explain how this
> prevents servers from starting?

This doesn't prevent servers from starting. In tools/test.dart we check if
'--list' was passed. If so, we don't start http servers.

The issue is, that currently if we try to run
"tools/test.py .... --list html"
for example, test.dart crashes, because it tries to access
serverList[0]/serverList[1], but serverList is empty (since no http servers were
started).

The CL now replaces the port numbers with the symbolic names
"PORT/CROSS_ORIGIN_PORT" in case no http servers were started.

https://codereview.chromium.org/11929022/diff/5001/tools/testing/dart/test_su...
tools/testing/dart/test_suite.dart:979: serverPort = serverList[0].port;
On 2013/01/24 14:06:14, ricow1 wrote:
> this is probably slightly messing up types, what about:
> serverPort = serverList[0].port.toString();

Done.

Powered by Google App Engine
This is Rietveld 408576698