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

Unified Diff: dart/compiler/javatests/com/google/dart/compiler/common/NameTestCase.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/common/NameTestCase.java
diff --git a/dart/compiler/javatests/com/google/dart/compiler/common/NameTestCase.java b/dart/compiler/javatests/com/google/dart/compiler/common/NameTestCase.java
deleted file mode 100644
index a0da65bdc6da615043420cdfe158fbfc80974ba0..0000000000000000000000000000000000000000
--- a/dart/compiler/javatests/com/google/dart/compiler/common/NameTestCase.java
+++ /dev/null
@@ -1,37 +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.common;
-
-import junit.framework.TestCase;
-
-abstract class NameTestCase extends TestCase {
- protected static final char[] _AM = "am".toCharArray();
- protected static char[] _EMPTY = "".toCharArray();
-
- /**
- * Google favorite: "Îñţérñåţîöñåļîžåţîờñ". Using modified
- * UTF-8 encoding, this 20 character string is 40 bytes long. So it must be
- * shrunk by appending a byte array. This string contains characters that
- * expand to 1, 2, and 3 bytes, thus covering all the cases in modified UTF-8.
- */
- protected static char[] _HIGHCHARS = ("\u00ce\u00f1\u0163\u00e9r"
- + "\u00f1\u00e5\u0163\u00ee\u00f6\u00f1\u00e5\u013c\u00ee\u017e"
- + "\u00e5\u0163\u00ee\u1edd\u00f1").toCharArray();
-
- protected static char[] _NAME = "name".toCharArray();
-
- protected static final char[][] INPUTS = {_AM, _EMPTY, _HIGHCHARS, _NAME};
- protected static final int NUM_INPUTS = INPUTS.length;
-
- protected static void assertNotEquals(Object expected, Object actual) {
- if ((expected == null) != (actual == null)) {
- return;
- }
- if (expected != null && !expected.equals(actual)) {
- return;
- }
- fail("expected not equals:<" + expected + "> was:<" + actual + ">");
- }
-}

Powered by Google App Engine
This is Rietveld 408576698