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

Unified Diff: tests/corelib/string_base_vm_test.dart

Issue 11035057: Hide internal details of VM string implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « tests/corelib/corelib.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/string_base_vm_test.dart
diff --git a/tests/corelib/string_base_vm_test.dart b/tests/corelib/string_base_vm_test.dart
index 8d86120905db2019d4ec12aaccee6a4d78a26b06..87d3a53764578c6f72f4f9614e7af3e74bafde64 100644
--- a/tests/corelib/string_base_vm_test.dart
+++ b/tests/corelib/string_base_vm_test.dart
@@ -1,11 +1,9 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, 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.
// Dart test program for testing class 'StringBase' (currently VM specific).
#library("StringBaseTest.dart");
-#import("dart:coreimpl");
-
class StringBaseTest {
@@ -14,13 +12,6 @@ class StringBaseTest {
toString() {
return "StringBase Tester";
}
- static testSubstringMatches() {
- Expect.equals(true, "Hello".substringMatches(0, "Hello"));
- Expect.equals(true, "Hello World".substringMatches(0, "Hello"));
- Expect.equals(false, "My Hello World".substringMatches(0, "Hello"));
- Expect.equals(true, "My Hello World".substringMatches(6, "lo W"));
- Expect.equals(false, "Hello".substringMatches(0, "low"));
- }
static testInterpolation() {
var answer = 40 + 2;
@@ -42,10 +33,6 @@ class StringBaseTest {
a[i] = s.charCodeAt(i);
ga.add(s.charCodeAt(i));
}
- String s2 = StringBase.createFromCharCodes(a);
- Expect.equals(s, s2);
- String s3 = StringBase.createFromCharCodes(ga);
- Expect.equals(s, s3);
try {
String s4 = new String.fromCharCodes([0.0]);
} on ArgumentError catch (ex) {
@@ -82,7 +69,6 @@ class StringBaseTest {
}
static void testMain() {
- testSubstringMatches();
testInterpolation();
testCreation();
testSubstring();
« no previous file with comments | « tests/corelib/corelib.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698