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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart

Issue 8817020: Fixes for JUnit tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart
index 3091566c84c83b04e00870682aed6db01741ba8a..42fec0a8835e61e09a74a0eb0428d86cda43ffb8 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/testConstantExprOpt.dart
@@ -9,16 +9,14 @@ class Foo {
class A {
static final int C1 = 10 + C2 * 2; // 20
static final int C2 = 5;
- static final List<int> ARRAY = [1];
- static final int C3 = C2 + foo();
- static final Foo C4 = const Foo();
+ static final Foo C3 = const Foo();
static int foo() { return 1; }
}
class Main {
static void main() {
- int _marker_0, _marker_1, _marker_2, _marker_3, _marker_4;
- Foo _marker_5;
+ int _marker_0, _marker_1, _marker_2;
+ Foo _marker_3;
final int x = 50;
@@ -28,11 +26,7 @@ class Main {
_marker_2 = 5 + A.C2;
- _marker_3 = 5 + A.ARRAY[0];
-
- _marker_4 = A.C3;
-
- _marker_5 = A.C4;
+ _marker_3 = A.C3;
}
}

Powered by Google App Engine
This is Rietveld 408576698