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

Unified Diff: tests/corelib_2/core_runtime_types_test.dart

Issue 2986503002: Migrate test block 4 to Dart 2.0. (Closed)
Patch Set: Merge with head Created 3 years, 5 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_2/core_runtime_types_static_test.dart ('k') | tests/corelib_2/corelib_2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib_2/core_runtime_types_test.dart
diff --git a/tests/corelib_strong/core_runtime_types_test.dart b/tests/corelib_2/core_runtime_types_test.dart
similarity index 96%
rename from tests/corelib_strong/core_runtime_types_test.dart
rename to tests/corelib_2/core_runtime_types_test.dart
index 2da72f7b8703c8611d066675774e06c50fa0490b..4c8a649c0b5282ca44858899ae3f53e16726172f 100644
--- a/tests/corelib_strong/core_runtime_types_test.dart
+++ b/tests/corelib_2/core_runtime_types_test.dart
@@ -203,12 +203,6 @@ class CoreRuntimeTypesTest {
assertTypeError(() {
s[null];
});
- assertTypeError(() {
- s['hello'];
- });
- assertTypeError(() {
- s[0] = 'x';
- });
}
// TODO(jimhug): Fill out full set of string methods.
@@ -225,26 +219,13 @@ class CoreRuntimeTypesTest {
assertEquals(s.contains('cd', 3), false);
assertEquals(s.indexOf('cd', 2), 2);
assertEquals(s.indexOf('cd', 3), -1);
-
- assertTypeError(() {
- s.startsWith(1);
- });
- assertTypeError(() {
- s.endsWith(1);
- });
}
static testListOperators() {
var a = [1, 2, 3, 4];
assertEquals(a[0], 1);
- assertTypeError(() {
- a['0'];
- });
a[0] = 42;
assertEquals(a[0], 42);
- assertTypeError(() {
- a['0'] = 99;
- });
assertEquals(a.length, 4);
}
« no previous file with comments | « tests/corelib_2/core_runtime_types_static_test.dart ('k') | tests/corelib_2/corelib_2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698