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

Unified Diff: tests/compiler/dart2js/sourcemaps/invokes_test_file.dart

Issue 1934883002: Refactor unittests (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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: tests/compiler/dart2js/sourcemaps/invokes_test_file.dart
diff --git a/tests/compiler/dart2js/sourcemaps/invokes_test_file.dart b/tests/compiler/dart2js/sourcemaps/invokes_test_file.dart
deleted file mode 100644
index 91670bcdffa5da4f7d7898afb6848790506cc0a7..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js/sourcemaps/invokes_test_file.dart
+++ /dev/null
@@ -1,127 +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.
-
-// Test file for testing source mappings of invocations.
-
-var counter = 0;
-
-main(args) {
- counter++;
- invokes(args);
- return counter;
-}
-
-invokes(parameter) {
- counter++;
- toplevelFunction();
- toplevelField();
- toplevelFinalField();
- toplevelConstField();
- toplevelGetter();
- C.staticFunction();
- C.staticField();
- C.staticFinalField();
- C.staticConstField();
- C.staticGetter();
-
- var localVariable = () {
- counter++;
- };
- localFunction() {
- counter++;
- }
-
- parameter();
- localVariable();
- localFunction();
- (parameter)();
-
- parameter.dynamicInvoke();
- new C(parameter).instanceInvokes();
-}
-
-toplevelFunction() {
- counter++;
-}
-
-var toplevelField = () {
- counter++;
-};
-
-final toplevelFinalField = toplevelFunction;
-
-const toplevelConstField = toplevelFunction;
-
-get toplevelGetter => () {
- counter++;
-};
-
-typedef F();
-
-class B {
- B(parameter);
-
- superMethod() {
- counter++;
- }
-
- var superField = () {
- counter++;
- };
-
- get superGetter => () {
- counter++;
- };
-
-}
-
-class C<T> extends B {
- C(parameter) : super(parameter);
-
- static staticFunction() {
- counter++;
- }
-
- static var staticField = () {
- counter++;
- };
-
- static final staticFinalField = staticFunction;
-
- static const staticConstField = staticFunction;
-
- static get staticGetter => () {
- counter++;
- };
-
- instanceMethod() {
- counter++;
- }
-
- var instanceField = () {
- counter++;
- };
-
- get instanceGetter => () {
- counter++;
- };
-
- instanceInvokes() {
- instanceMethod();
- this.instanceMethod();
- instanceField();
- this.instanceField();
- instanceGetter();
- this.instanceGetter();
-
- super.superMethod();
- super.superField();
- super.superGetter();
-
- C();
- dynamic();
- F();
- T();
- }
-}

Powered by Google App Engine
This is Rietveld 408576698