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

Unified Diff: test/codegen/misc.dart

Issue 1988503002: Move generated files to gen/. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Revise. 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
« no previous file with comments | « test/codegen/methods.dart ('k') | test/codegen/names.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/misc.dart
diff --git a/test/codegen/misc.dart b/test/codegen/misc.dart
deleted file mode 100644
index 2110a5e2832cdbf796e13741e5696288761f4649..0000000000000000000000000000000000000000
--- a/test/codegen/misc.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2015, 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.
-
-
-// Codegen dependency order test
-const UNINITIALIZED = const _Uninitialized();
-class _Uninitialized { const _Uninitialized(); }
-
-class Generic<T> {
- Type get type => Generic;
- // type parameter type literals
- m() => print(T);
-}
-
-// super ==
-// https://github.com/dart-lang/dev_compiler/issues/226
-class Base {
- int x = 1, y = 2;
- operator==(obj) {
- return obj is Base && obj.x == x && obj.y == y;
- }
-}
-class Derived {
- int z = 3;
- operator==(obj) {
- return obj is Derived && obj.z == z && super == obj;
- }
-}
-
-// string escape tests
-// https://github.com/dart-lang/dev_compiler/issues/227
-bool _isWhitespace(String ch) =>
- ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t';
-
-const expr = 'foo';
-const _escapeMap = const {
- '\n': r'\n',
- '\r': r'\r',
- '\f': r'\f',
- '\b': r'\b',
- '\t': r'\t',
- '\v': r'\v',
- '\x7F': r'\x7F', // delete
- '\${${expr}}': ''
-};
-
-
-main() {
- // Number literals in call expressions.
- print(1.toString());
- print(1.0.toString());
- print(1.1.toString());
-
- // Type literals, #184
- dynamic x = 42;
- print(x == dynamic);
- print(x == Generic);
-
- // Should be Generic<dynamic>
- print(new Generic<int>().type);
-
- print(new Derived() == new Derived()); // true
-
- new Generic<int>().m();
-}
« no previous file with comments | « test/codegen/methods.dart ('k') | test/codegen/names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698