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

Issue 24789003: Fix test failure expectations and update status files. (Closed)

Created:
7 years, 2 months ago by regis
Modified:
7 years, 2 months ago
Reviewers:
ahe, gbracha, hausner, Ivan Posva
CC:
reviews_dartlang.org, kustermann
Visibility:
Public.

Description

Fix test failure expectations and update status files. R=hausner@google.com Committed: https://code.google.com/p/dart/source/detail?r=27976

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -21 lines) Patch
M tests/language/bad_constructor_test.dart View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M tests/language/getter_no_setter_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/illegal_invocation_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/instantiate_type_variable_test.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/language/language_analyzer.status View 1 2 3 chunks +0 lines, -6 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 4 chunks +7 lines, -2 lines 0 comments Download
M tests/language/library_ambiguous_test.dart View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M tests/lib/lib.status View 1 2 2 chunks +1 line, -1 line 0 comments Download
M tests/lib/mirrors/library_metadata2_test.dart View 1 2 1 chunk +3 lines, -2 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
regis
7 years, 2 months ago (2013-09-26 20:17:25 UTC) #1
Ivan Posva
Generally looks good to me. -Ivan https://codereview.chromium.org/24789003/diff/1/tests/language/bad_constructor_test.dart File tests/language/bad_constructor_test.dart (right): https://codereview.chromium.org/24789003/diff/1/tests/language/bad_constructor_test.dart#newcode8 tests/language/bad_constructor_test.dart:8: static A() { ...
7 years, 2 months ago (2013-09-26 20:58:53 UTC) #2
hausner
Essentially the same questions as Ivan has. Otherwise lgtm. https://codereview.chromium.org/24789003/diff/4001/tests/language/bad_constructor_test.dart File tests/language/bad_constructor_test.dart (right): https://codereview.chromium.org/24789003/diff/4001/tests/language/bad_constructor_test.dart#newcode8 tests/language/bad_constructor_test.dart:8: ...
7 years, 2 months ago (2013-09-26 21:36:05 UTC) #3
regis
Thanks, PTAL. -- Regis https://codereview.chromium.org/24789003/diff/1/tests/language/bad_constructor_test.dart File tests/language/bad_constructor_test.dart (right): https://codereview.chromium.org/24789003/diff/1/tests/language/bad_constructor_test.dart#newcode8 tests/language/bad_constructor_test.dart:8: static A() { } /// ...
7 years, 2 months ago (2013-09-26 22:12:26 UTC) #4
hausner
lgtm
7 years, 2 months ago (2013-09-26 22:16:34 UTC) #5
regis
Committed patchset #3 manually as r27976 (presubmit successful).
7 years, 2 months ago (2013-09-26 22:19:08 UTC) #6
ahe
https://codereview.chromium.org/24789003/diff/11001/tests/lib/mirrors/library_metadata2_test.dart File tests/lib/mirrors/library_metadata2_test.dart (right): https://codereview.chromium.org/24789003/diff/11001/tests/lib/mirrors/library_metadata2_test.dart#newcode14 tests/lib/mirrors/library_metadata2_test.dart:14: // runtime error here. Please revert this change, it ...
7 years, 2 months ago (2013-10-08 14:24:30 UTC) #7
Ivan Posva
7 years, 2 months ago (2013-10-09 06:57:01 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/24789003/diff/11001/tests/lib/mirrors/library...
File tests/lib/mirrors/library_metadata2_test.dart (right):

https://codereview.chromium.org/24789003/diff/11001/tests/lib/mirrors/library...
tests/lib/mirrors/library_metadata2_test.dart:14: // runtime error here.
On 2013/10/08 14:24:30, ahe wrote:
> Please revert this change, it is not correct.
> 
> Also, please don't just change tests without asking the original authors of a
> test for input. Chances are you make mistakes when you do so.
> 
> The specification says:
> 
> "Metadata consists of a series of annotations, each of which begin with the
> character @, followed a constant expression that starts with an identifier."
>
(https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h....)
> 
> "It is a compile-time error if evaluation of a compile-time constant would
raise
> an exception."
>
(https://www.dartlang.org/docs/spec/latest/dart-language-specification.html#h....)

We consulted with Gilad on this before changing the test. Please discuss this
with him. But as far as we could tell this leads to a compile-time error during
the access of the metadata which is intercepted by the mirror system and
communicated to the user as a runtime error.

Thanks,
-Ivan

Powered by Google App Engine
This is Rietveld 408576698