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

Issue 10911083: Moved assertion test from VM tests to language. Since it fails with (Closed)

Created:
8 years, 3 months ago by Tom Ball
Modified:
8 years, 3 months ago
Reviewers:
Kasper Lund, kasperl, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Moved assertion test from VM tests to language. Since it fails with dart2js, filed issue 4929 and disabled the test. Committed: https://code.google.com/p/dart/source/detail?r=11851

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -30 lines) Patch
D runtime/tests/vm/dart/assert_with_type_test_or_cast_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
A + tests/language/assert_with_type_test_or_cast_test.dart View 2 chunks +4 lines, -3 lines 1 comment Download
M tests/language/language_dart2js.status View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Tom Ball
In fixing a problem with the VM parser skipping assert statements with generic types, I ...
8 years, 3 months ago (2012-09-04 23:48:36 UTC) #1
siva
lgtm
8 years, 3 months ago (2012-09-04 23:58:09 UTC) #2
kasperl
LGTM (except for the .dart suffix in the status file). http://codereview.chromium.org/10911083/diff/1/tests/language/assert_with_type_test_or_cast_test.dart File tests/language/assert_with_type_test_or_cast_test.dart (right): http://codereview.chromium.org/10911083/diff/1/tests/language/assert_with_type_test_or_cast_test.dart#newcode11 ...
8 years, 3 months ago (2012-09-05 05:41:28 UTC) #3
Tom Ball
8 years, 3 months ago (2012-09-05 16:06:48 UTC) #4
On 2012/09/05 05:41:28, kasperl wrote:
> LGTM (except for the .dart suffix in the status file).

Shiva fixed that in a following change (thanks!).

>
http://codereview.chromium.org/10911083/diff/1/tests/language/assert_with_typ...
> File tests/language/assert_with_type_test_or_cast_test.dart (right):
> 
>
http://codereview.chromium.org/10911083/diff/1/tests/language/assert_with_typ...
> tests/language/assert_with_type_test_or_cast_test.dart:11: // VMOptions=
> It is somewhat painful to see these VMOptions comments appear in language
tests
> (I'm sure we still have a bunch of them in other files). Wouldn't our test
> coverage for this file in checked mode be enough?

Are languages tests run both in checked and unchecked modes?  The problem this
test checks in the VM only shows up in unchecked mode, as generic types in
assertion statements weren't skipped completely.  In dart2js, though, the test
found an error that shows up in checked mode.  If tests are run in both modes,
I'll happily remove the options.

Powered by Google App Engine
This is Rietveld 408576698