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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/SpreadArgumentTest.dart

Issue 16564002: Don't use 'interface' in test files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/SpreadArgumentTest.dart
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/SpreadArgumentTest.dart b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/SpreadArgumentTest.dart
deleted file mode 100644
index 3187878b9b0abd46ef80537ec7b9b6417f4db9ac..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/SpreadArgumentTest.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011, 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.
-
-class A {
- A() {}
- bar(a, b, c) {
- assert(a == 10);
- assert(b == 11);
- assert(c == 12);
- return 0;
- }
-}
-
-class SpreadArgumentTest extends A {
- SpreadArgumentTest() : super() {}
-
- int bar(a, b, c) {
- assert(a == 0);
- assert(b == 1);
- assert(c == 2);
- return 1;
- }
-
- void superBar(mode) {
- if (mode == 0) {
- return super.bar(10, 11, ... [12]);
- } else {
- return super.bar(...[10, 11, 12]);
- }
- }
-
- static void main(args) {
- var test = new SpreadArgumentTest();
- var a = [1, 2];
- var b = [0, 1, 2];
- var returnValue = test.bar(0, ...a);
- assert(returnValue == 1);
- returnValue = test.bar(... b);
- assert(returnValue == 1);
- returnValue = test.superBar(0);
- assert(returnValue == 0);
- returnValue = test.superBar(1);
- assert(returnValue == 0);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698