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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_basic.dart

Issue 810183003: Split js_backend_cps_ir tests into multiple test units. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/compiler/dart2js/js_backend_cps_ir_basic.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_basic.dart b/tests/compiler/dart2js/js_backend_cps_ir_basic.dart
deleted file mode 100644
index d10d2c2365a6ab84a588045675d4ddae812838fc..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js/js_backend_cps_ir_basic.dart
+++ /dev/null
@@ -1,103 +0,0 @@
-// Copyright (c) 2014, 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.
-
-// Tests for basic functionality.
-
-library basic_tests;
-
-import 'js_backend_cps_ir_test.dart';
-
-const List<TestEntry> tests = const [
- const TestEntry("""
-foo(a, [b = "b"]) => b;
-bar(a, {b: "b", c: "c"}) => c;
-main() {
- foo(0);
- foo(0, 1);
- bar(0);
- bar(0, b: 1);
- bar(0, c: 1);
- bar(0, b: 1, c: 2);
-}
-""",
-"""
-function() {
- V.foo(0, "b");
- V.foo(0, 1);
- V.bar(0, "b", "c");
- V.bar(0, 1, "c");
- V.bar(0, "b", 1);
- V.bar(0, 1, 2);
- return null;
-}"""),
- const TestEntry(
- """
-foo(a) {
- return a;
-}
-main() {
- var a = 10;
- var b = 1;
- var t;
- t = a;
- a = b;
- b = t;
- print(a);
- print(b);
- print(b);
- print(foo(a));
-}
- """,
- """
-function() {
- var a, b;
- a = 10;
- b = 1;
- P.print(b);
- P.print(a);
- P.print(a);
- P.print(V.foo(b));
- return null;
-}"""),
- const TestEntry(
- """
-foo() { return 42; }
-main() { return foo(); }
- """,
- """function() {
- return V.foo();
-}"""),
- const TestEntry("main() {}"),
- const TestEntry("main() { return 42; }"),
- const TestEntry("main() { return; }", """
-function() {
- return null;
-}"""),
- // Constructor invocation
- const TestEntry("""
-main() {
- print(new Set());
- print(new Set.from([1, 2, 3]));
-}""", r"""
-function() {
- P.print(P.Set_Set());
- P.print(P.Set_Set$from([1, 2, 3]));
- return null;
-}"""),
- // Call synthetic constructor.
- const TestEntry("""
-class C {}
-main() {
- print(new C());
-}"""),
- // Method invocation
- const TestEntry("""
-main() {
- print(new DateTime.now().isBefore(new DateTime.now()));
-}""", r"""
-function() {
- P.print(P.DateTime$now().isBefore$1(P.DateTime$now()));
- return null;
-}"""),
-];
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698