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

Unified Diff: test/codegen/lib/convert/utf85_test.dart

Issue 1965563003: Update dart:convert and dart:core Uri. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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: test/codegen/lib/convert/utf85_test.dart
diff --git a/test/codegen/language/abstract_syntax_test.dart b/test/codegen/lib/convert/utf85_test.dart
similarity index 52%
copy from test/codegen/language/abstract_syntax_test.dart
copy to test/codegen/lib/convert/utf85_test.dart
index 875b203c45a444fa4a1a3acd3033b70debbbabe0..3b5edc0528cff71e853bf0a1cb7f047103045982 100644
--- a/test/codegen/language/abstract_syntax_test.dart
+++ b/test/codegen/lib/convert/utf85_test.dart
@@ -2,19 +2,14 @@
// 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.
+library utf8_test;
import "package:expect/expect.dart";
+import 'dart:convert';
main() {
- var b = new B();
- Expect.equals(42, b.foo());
-}
-
-class A {
- foo(); /// 00: static type warning
- static bar(); /// 01: compile-time error
-}
-
-class B extends A {
- foo() => 42;
- bar() => 87;
+ for (int i = 0; i <= 0x10FFFF; i++) {
+ if (i == UNICODE_BOM_CHARACTER_RUNE) continue;
+ Expect.equals(i,
+ UTF8.decode(UTF8.encode(new String.fromCharCode(i))).runes.first);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698