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

Unified Diff: tests/language/src/CharEscapeTest.dart

Issue 9149005: split out vm-specific tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: keeping test closer to original Created 8 years, 11 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: tests/language/src/CharEscapeTest.dart
diff --git a/tests/language/src/CharEscapeTest.dart b/tests/language/src/CharEscapeTest.dart
index 18a0f471a470a5d20a5fc628180c58194d455144..7003f5e22e0f9eb6e134523c6fbae3971ba7e267 100644
--- a/tests/language/src/CharEscapeTest.dart
+++ b/tests/language/src/CharEscapeTest.dart
@@ -2,6 +2,10 @@
// 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 for reading escape sequences in string literals
+// This test only includes characters representable with 2 bytes so that even
+// a dart implementation with the JS exemption is
+// expected to pass them. See CharEscapeVMTest for the tests that a
+// fully spec compliant implementation is expected to pass.
class CharEscapeTest {
static testMain() {
@@ -364,28 +368,6 @@ class CharEscapeTest {
Expect.equals("\u{0FFFF}", new String.fromCharCodes([0xFFFF]));
Expect.equals("\u{00FFFF}", new String.fromCharCodes([0xFFFF]));
- var v10000 = "\u{10000}";
- var v010000 = "\u{010000}";
- Expect.equals(1, v10000.length);
- Expect.equals(1, v010000.length);
- Expect.equals("\u{10000}", new String.fromCharCodes([0x10000]));
- Expect.equals("\u{010000}", new String.fromCharCodes([0x10000]));
-
- var v1FFFF = "\u{1FFFF}";
- var v01FFFF = "\u{01FFFF}";
- Expect.equals(1, v1FFFF.length);
- Expect.equals(1, v01FFFF.length);
- Expect.equals("\u{1FFFF}", new String.fromCharCodes([0x1FFFF]));
- Expect.equals("\u{01FFFF}", new String.fromCharCodes([0x1FFFF]));
-
- var v105555 = "\u{105555}";
- Expect.equals(1, v105555.length);
- Expect.equals("\u{105555}", new String.fromCharCodes([0x105555]));
-
- var v10FFFF = "\u{10FFFF}";
- Expect.equals(1, v10FFFF.length);
- Expect.equals("\u{10FFFF}", new String.fromCharCodes([0x10FFFF]));
-
var bs = "\b";
Expect.isTrue(bs != "b");
Expect.equals(1, bs.length);

Powered by Google App Engine
This is Rietveld 408576698