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

Issue 8565006: tools/test.dart: Enable // DartOptions= lines in Dart test runner. (Closed)

Created:
9 years, 1 month ago by Bill Hesse
Modified:
9 years, 1 month ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

tools/test.dart: Enable // DartOptions= lines in Dart test runner. BUG= TEST=tools/test.dart Committed: https://code.google.com/p/dart/source/detail?r=1503

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add filename to exception. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -8 lines) Patch
M tests/corelib/test_config.dart View 1 2 chunks +18 lines, -4 lines 0 comments Download
M tests/standalone/test_config.dart View 1 2 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Bill Hesse
http://codereview.chromium.org/8565006/diff/1/tests/corelib/test_config.dart File tests/corelib/test_config.dart (right): http://codereview.chromium.org/8565006/diff/1/tests/corelib/test_config.dart#newcode109 tests/corelib/test_config.dart:109: throw new Exception('More than one "// DartOptions=" line in ...
9 years, 1 month ago (2011-11-14 11:58:11 UTC) #1
Mads Ager (google)
9 years, 1 month ago (2011-11-14 12:03:55 UTC) #2
lgtm

http://codereview.chromium.org/8565006/diff/1/tests/corelib/test_config.dart
File tests/corelib/test_config.dart (right):

http://codereview.chromium.org/8565006/diff/1/tests/corelib/test_config.dart#...
tests/corelib/test_config.dart:109: throw new Exception('More than one "//
DartOptions=" line in test');
On 2011/11/14 11:58:12, Bill Hesse wrote:
> add "... in test $filename".
> 
> Perhaps this should not throw, but just print the error, and continue?

I think throwing is fine. The test will not behave as the author expects and we
should make that clear. Either the test should fail with this error message or
we should throw.

Powered by Google App Engine
This is Rietveld 408576698