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

Unified Diff: tests/try/poi/forget_element_assertion.dart

Issue 2232273004: Delete site/try (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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/try/poi/forget_element_assertion.dart
diff --git a/tests/try/poi/forget_element_assertion.dart b/tests/try/poi/forget_element_assertion.dart
deleted file mode 100644
index a825532cd00e15e47e28808c3d1f454ff1b2f6f9..0000000000000000000000000000000000000000
--- a/tests/try/poi/forget_element_assertion.dart
+++ /dev/null
@@ -1,64 +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 that dart2js doesn't support metadata on local elements.
-// Remove this file when dart2js support such features.
-library trydart.forget_element_assertion;
-
-import '../../compiler/dart2js/mock_compiler.dart' show
- compilerFor;
-
-import 'compiler_test_case.dart';
-
-class FailingTestCase extends CompilerTestCase {
- FailingTestCase.intermediate(String source, int errorCount, Uri scriptUri)
- : super.init(
- source, scriptUri,
- compilerFor(source, scriptUri, expectedErrors: errorCount));
-
- FailingTestCase(String source, int errorCount)
- : this.intermediate(source, errorCount, customUri('main.dart'));
-
- Future run() {
- return compile().then((_) {
- print("Failed as expected.");
- }).catchError((error, stackTrace) {
- print(
- "\n\n\n***\n\n\n"
- "The compiler didn't fail when compiling:\n $source\n\n"
- "Please adjust assumptions in "
- "tests/try/poi/forget_element_assertion.dart\n\n"
- );
- print("$error\n$stackTrace");
- throw "Please update assumptions in this file.";
- });
- }
-}
-
-List<FailingTestCase> assertUnimplementedLocalMetadata() {
- return <FailingTestCase>[
-
- // This tests that the compiler doesn't accept metadata on local
- // functions. If this feature is implemented, please convert this test to
- // a positive test in forget_element_test.dart. For example:
- //
- // new ForgetElementTestCase(
- // 'main() { @Constant() foo() {}; return foo(); } $CONSTANT_CLASS',
- // metadataCount: 1),
- new FailingTestCase(
- 'main() { @Constant() foo() {}; return foo(); } $CONSTANT_CLASS',
- 1),
-
- // This tests that the compiler doesn't accept metadata on local
- // variables. If this feature is implemented, please convert this test to
- // a positive test in forget_element_test.dart. For example:
- //
- // new ForgetElementTestCase(
- // 'main() { @Constant() var x; return x; } $CONSTANT_CLASS',
- // metadataCount: 1),
- new FailingTestCase(
- 'main() { @Constant() var x; return x; } $CONSTANT_CLASS',
- 1),
- ];
-}

Powered by Google App Engine
This is Rietveld 408576698