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

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

Issue 1576093003: cpsir unittests: move all unittests into individual files and test runners. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
deleted file mode 100644
index bb196169d0d0817b16791a5dd777e39123de4b8c..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js/js_backend_cps_ir_supercall_test.dart
+++ /dev/null
@@ -1,94 +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 of interceptors.
-
-library supercall_test;
-
-import 'js_backend_cps_ir.dart';
-
-const List<TestEntry> tests = const [
- const TestEntry("""
-class Base {
- m(x) {
- print(x+1);
- }
-}
-class Sub extends Base {
- m(x) => super.m(x+10);
-}
-main() {
- new Sub().m(100);
-}""",
-r"""
-function() {
- var v0;
- V.Sub$();
- v0 = H.S(100 + 10 + 1);
- if (typeof dartPrint == "function")
- dartPrint(v0);
- else if (typeof console == "object" && typeof console.log != "undefined")
- console.log(v0);
- else if (!(typeof window == "object")) {
- if (!(typeof print == "function"))
- throw "Unable to print message: " + String(v0);
- print(v0);
- }
-}"""),
-
- // Reenable when we support compiling functions that
- // need interceptor calling convention.
-// const TestEntry.forMethod('function(Sub#+)', """
-// class Base {
-// m(x) {
-// print(x+1000);
-// }
-// operator+(x) => m(x+10);
-// }
-// class Sub extends Base {
-// m(x) => super.m(x+100);
-// operator+(x) => super + (x+1);
-// }
-// main() {
-// new Sub() + 10000;
-// }""",
-// r"""
-// function(x) {
-// var v0, v1, v2;
-// v0 = 1;
-// v1 = J.getInterceptor$ns(x).$add(x, v0);
-// v2 = this;
-// return V.Base.prototype.$add.call(null, v2, v1);
-// }"""),
-
-const TestEntry("""
-class Base {
- var field = 123;
-}
-class Sub extends Base {
- m(x) => x + super.field;
-}
-main() {
- print(new Sub().m(10));
-}""",
-r"""
-function() {
- var v0 = H.S(10 + V.Sub$().field);
- if (typeof dartPrint == "function")
- dartPrint(v0);
- else if (typeof console == "object" && typeof console.log != "undefined")
- console.log(v0);
- else if (!(typeof window == "object")) {
- if (!(typeof print == "function"))
- throw "Unable to print message: " + String(v0);
- print(v0);
- }
-}"""),
-
-
-];
-
-void main() {
- runTests(tests);
-}
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir_runtime_types_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698