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

Issue 8431016: fix some tests (Closed)

Created:
9 years, 1 month ago by jimhug
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Visibility:
Public.

Description

Most of these tests appear to be relying on checking code that will never be run. My model of dart is that these tests may not happen - unless compiled with a special --compile_all flag - and that we should fix the tests by adding some small amount of code to ensure that the broken code is reached. I have some more detailed notes on a few of the tests which have different issues. With these changes, the vm and dartc both still pass all tests (except for some confusing behavior in dartc on ThirdTest). However, these tests should match the expected semantics of dart more closely and allow for greater flexibility in deciding exactly when correctness must be verified. Note: We still need to add a separate test for the --compile_all flag that will test the mode where we insist on compiling/checking all input code. Committed: https://code.google.com/p/dart/source/detail?r=1055

Patch Set 1 #

Total comments: 22

Patch Set 2 : prereviewed #

Total comments: 1

Patch Set 3 : review comments #

Patch Set 4 : update status as dartc is now happy with fixed test #

Patch Set 5 : passing tests for vm,dartc #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -6 lines) Patch
M tests/language/language.status View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/language/src/ConstructorRedirect1NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/ConstructorRedirect2NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/ConstructorRedirect3NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/ConstructorRedirect4NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/ConstructorRedirect5NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/Library2NegativeTest.dart View 1 2 1 chunk +1 line, -1 line 1 comment Download
M tests/language/src/OverrideFieldMethod1NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideFieldMethod2NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideFieldMethod3NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideFieldMethod4NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideFieldMethod5NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideFieldMethod6NegativeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/OverrideMethodWithFieldTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/ThirdTest.dart View 2 chunks +3 lines, -3 lines 1 comment Download
M tests/language/src/TypeVariableScopeTest.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/src/libraryE.dart View 1 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 10 (0 generated)
jimhug
Hi Kasper, I'd appreciate it if you could take a look at these proposed test ...
9 years, 1 month ago (2011-10-31 23:36:31 UTC) #1
ngeoffray
Nice catches Jim/Frog :) These are really corner cases of the language, and I hope ...
9 years, 1 month ago (2011-11-01 08:17:34 UTC) #2
kasperl
http://codereview.chromium.org/8431016/diff/1/tests/language/src/Library2NegativeTest.dart File tests/language/src/Library2NegativeTest.dart (right): http://codereview.chromium.org/8431016/diff/1/tests/language/src/Library2NegativeTest.dart#newcode11 tests/language/src/Library2NegativeTest.dart:11: #import("library2.dart"); On 2011/10/31 23:36:31, jimhug wrote: > This seems ...
9 years, 1 month ago (2011-11-01 11:11:28 UTC) #3
jimhug
Thanks for your feedback! It looks like there may be some open questions around the ...
9 years, 1 month ago (2011-11-01 15:07:10 UTC) #4
ngeoffray
I'm fine with keeping the print, as well as being as flexible as we want ...
9 years, 1 month ago (2011-11-01 15:18:31 UTC) #5
jimhug
PTAL I think this addresses your comments.
9 years, 1 month ago (2011-11-01 15:25:07 UTC) #6
ngeoffray
LGTM
9 years, 1 month ago (2011-11-01 15:25:50 UTC) #7
jimhug
On 2011/11/01 15:25:50, ngeoffray wrote: > LGTM Thanks! I'm running tests now using this command ...
9 years, 1 month ago (2011-11-01 15:35:17 UTC) #8
ngeoffray
On 2011/11/01 15:35:17, jimhug wrote: > On 2011/11/01 15:25:50, ngeoffray wrote: > > LGTM > ...
9 years, 1 month ago (2011-11-01 15:56:01 UTC) #9
Ivan Posva
8 years, 11 months ago (2012-01-11 01:10:03 UTC) #10
Some of these fixes are broken or seem very unmotivated. We will fix them back.

-Ivan

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/Library2...
File tests/language/src/Library2NegativeTest.dart (right):

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/Library2...
tests/language/src/Library2NegativeTest.dart:10: #import("library2.dart");
Why was this test changed? This was carefully crafted to not complain about
library3.dart, but about library4.dart and its import.

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/ThirdTes...
File tests/language/src/ThirdTest.dart (right):

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/ThirdTes...
tests/language/src/ThirdTest.dart:6: class A {
Why was this test changed?

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/libraryE...
File tests/language/src/libraryE.dart (right):

http://codereview.chromium.org/8431016/diff/10019/tests/language/src/libraryE...
tests/language/src/libraryE.dart:10: var fooE = fooC;
This is not correct. The two libraries do already collide on top-level names.

Powered by Google App Engine
This is Rietveld 408576698