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

Issue 9621015: Multitest annotations now accept multiple annotations on one line. (Closed)

Created:
8 years, 9 months ago by zundel
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, dart-vm-team_google.com, dart-c-team_google.com
Visibility:
Public.

Description

Multitest annotations now accept multiple annotations on one line. Many times a test case involves a static type warning for the static analyzer and a dynamic type error for the VM or dart compiled to JS, but not always. Thus, this change introduces the annotations as allowing multiple outcomes for a test. Committed: https://code.google.com/p/dart/source/detail?r=5191

Patch Set 1 #

Total comments: 10

Patch Set 2 : none outcome is now empty set #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -20 lines) Patch
M tests/language/language.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/language/src/TypeVariableBounds2Test.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M tests/language/src/TypeVariableBoundsTest.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/testing/dart/multitest.dart View 1 5 chunks +18 lines, -7 lines 4 comments Download
M tools/testing/dart/test_runner.dart View 1 1 chunk +6 lines, -3 lines 0 comments Download
M tools/testing/dart/test_suite.dart View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
zundel
Hi Bill, The VM and static analyzer encounter interference when trying to evaluate a test ...
8 years, 9 months ago (2012-03-07 20:30:39 UTC) #1
regis
LGTM, but I will let Bill review the test harness code, since I am not ...
8 years, 9 months ago (2012-03-07 23:38:31 UTC) #2
Bill Hesse
Would it be better to just add a new single error type, rather than shifting ...
8 years, 9 months ago (2012-03-08 10:21:48 UTC) #3
zundel
https://chromiumcodereview.appspot.com/9621015/diff/1/tests/language/src/TypeVariableBoundsTest.dart File tests/language/src/TypeVariableBoundsTest.dart (right): https://chromiumcodereview.appspot.com/9621015/diff/1/tests/language/src/TypeVariableBoundsTest.dart#newcode31 tests/language/src/TypeVariableBoundsTest.dart:31: <String> /// 02: static type error On 2012/03/07 23:38:31, ...
8 years, 9 months ago (2012-03-08 13:18:00 UTC) #4
zundel
To answer the 'add a new status' question, we did consider that, but though it ...
8 years, 9 months ago (2012-03-08 13:19:05 UTC) #5
Bill Hesse
LGTM. https://chromiumcodereview.appspot.com/9621015/diff/7001/tools/testing/dart/multitest.dart File tools/testing/dart/multitest.dart (right): https://chromiumcodereview.appspot.com/9621015/diff/7001/tools/testing/dart/multitest.dart#newcode101 tools/testing/dart/multitest.dart:101: nextOutcome = nextOutcome.trim(); Expect(nextOutcome != '')? Is it ...
8 years, 9 months ago (2012-03-08 13:52:57 UTC) #6
zundel
8 years, 9 months ago (2012-03-09 00:34:22 UTC) #7
https://chromiumcodereview.appspot.com/9621015/diff/7001/tools/testing/dart/m...
File tools/testing/dart/multitest.dart (right):

https://chromiumcodereview.appspot.com/9621015/diff/7001/tools/testing/dart/m...
tools/testing/dart/multitest.dart:101: nextOutcome = nextOutcome.trim();
The value in the comment has to match a constrained set of values (test is
'validMulittestOutcomes' below).  I am removing '' from the list.

On 2012/03/08 13:52:57, Bill Hesse wrote:
> Expect(nextOutcome != '')?
> Is it illegal to have a multiline comment without an error?
> if not, we will get '' in the set?

Powered by Google App Engine
This is Rietveld 408576698