|
|
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
Total comments: 22
Total comments: 1
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
|
Total messages: 10 (0 generated)
|