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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/backend/js/JsClosureExprOptTest.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/JsClosureExprOptTest.java
diff --git a/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsClosureExprOptTest.java b/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsClosureExprOptTest.java
deleted file mode 100644
index fa6107048ce193815895b13951c8f179a2320c3f..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/backend/js/JsClosureExprOptTest.java
+++ /dev/null
@@ -1,97 +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 closure optimizations.
- */
-public class JsClosureExprOptTest extends ExprOptTest {
- public void testClosureOpt() throws IOException {
- String js = compileSingleUnit(getName(), "A");
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_0", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind0_2"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_1", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind0_3"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_2", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind0_4"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_3", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind0_5"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_4", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind("));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_5", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind1_2"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_6", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind2_2"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_7", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind3_2"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_8", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind("));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_9", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind1_3"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_A", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind2_4"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_B", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind3_5"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_C", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind("));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_D", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind("));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_E", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind1_3"));
- assertTrue(findMarkerAtOccurrence.contains("this"));
- }
-
- {
- String findMarkerAtOccurrence = findMarkerAtOccurrence(js, "_fn_F", ";", 1);
- assertTrue(findMarkerAtOccurrence.contains("$bind2_3"));
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698