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

Unified Diff: pkg/front_end/test/fasta/expressions.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 years, 8 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: pkg/front_end/test/fasta/expressions.dart
diff --git a/pkg/front_end/test/fasta/expressions.dart b/pkg/front_end/test/fasta/expressions.dart
deleted file mode 100644
index 9b1f55d0ec0a53d3c551f5fdaecfaaaaf7e3b2f0..0000000000000000000000000000000000000000
--- a/pkg/front_end/test/fasta/expressions.dart
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2016, 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.
-
-foo({fisk}) {
- print(fisk);
-}
-
-caller(f) {
- f();
-}
-
-main() {
- int i = 0;
- print(i == 1 ? "bad" : "good");
- print("$i");
- print("'$i'");
- print(" '${i}' ");
- print(" '${i}' '${i}'");
- print(" '$i' '${i}'");
- print("foo" "bar");
- print(" '${i}' '${i}'" " '$i' '${i}'");
- try {
- throw "fisk";
- } on String catch (e, s) {
- print(e);
- if (s != null) print(s);
- }
- for(;false;) {}
- var list = ["Hello, World!"];
- print(list[i]);
- list[i] = "Hello, Brave New World!";
- print(list[i]);
- i = 87;
- print(-i);
- print(~i);
- print(!(i == 42));
- print(--i);
- print(++i);
- print(i--);
- print(i++);
- print(new Object());
- print(const Object());
- print((new List<String>(2)).runtimeType);
- foo(fisk: "Blorp gulp");
- f() {
- print("f was called");
- }
- caller(f);
- caller(() {
- print("<anon> was called");
- });
- g([message]) {
- print(message);
- }
- g("Hello, World");
- caller(([x]) {
- print("<anon> was called with $x");
- });
- h({message}) {
- print(message);
- }
- h(message: "Hello, World");
- caller(({x}) {
- print("<anon> was called with $x");
- });
- print((int).toString());
- print(int);
- print(int..toString());
- try {
- print(int?.toString());
- throw "Shouldn't work";
- } on NoSuchMethodError catch (e) {
- print("As expected: $e");
- }
- print(int.parse("42"));
-}
« no previous file with comments | « pkg/front_end/test/fasta/default_values.dart.outline.expect ('k') | pkg/front_end/test/fasta/expressions.dart.dartk.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698