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

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

Issue 9353015: Remove dartc optimizing backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix minor test issues Created 8 years, 10 months 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: dart/compiler/javatests/com/google/dart/compiler/backend/js/JsConstExprOptTest.java
diff --git a/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsConstExprOptTest.java b/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsConstExprOptTest.java
deleted file mode 100644
index d2dce4973fd983b369140bf19d4fab1514f166d7..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsConstExprOptTest.java
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-package com.google.dart.compiler.backend.js;
-
-import java.io.IOException;
-
-/**
- * Tests for binary expression optimizations.
- */
-public class JsConstExprOptTest extends ExprOptTest {
-
- public void testConstantExprOpt() throws IOException {
- String js = compileSingleUnit(getName());
-
- {
- String marker = findMarkerAtOccurrence(js, "_marker_0", "[\\n;]", 2);
- assertEquals("_marker_0 = 50 * 2", marker);
- }
-
- {
- String marker = findMarkerAtOccurrence(js, "_marker_1", "[\\n;]", 2);
- assertEquals("_marker_1 = 10 + 5 * 2 + 5", marker);
- }
-
- {
- String marker = findMarkerAtOccurrence(js, "_marker_2", "[\\n;]", 2);
- assertEquals("_marker_2 = 5 + 5", marker);
- }
-
- // Can't bind constants that instantiate objects.
- {
- String marker = findMarkerAtOccurrence(js, "_marker_3", "[\\n;]", 2);
- assertEquals("_marker_3 = Test_app4a54ba$A$Dart.C3$getter()", marker);
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698