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

Unified Diff: pkg/front_end/test/fasta/rasta/static.dart

Issue 2825063002: Move kernel baseline tests to front_end. (Closed)
Patch Set: Created 3 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: pkg/front_end/test/fasta/rasta/static.dart
diff --git a/pkg/front_end/test/fasta/rasta/static.dart b/pkg/front_end/test/fasta/rasta/static.dart
deleted file mode 100644
index a95c6e6369fee243708e9b9e0dbebfa338c25d8d..0000000000000000000000000000000000000000
--- a/pkg/front_end/test/fasta/rasta/static.dart
+++ /dev/null
@@ -1,88 +0,0 @@
-// Copyright (c) 2016, 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.md file.
-
-class Foo {
- static const staticConstant = 42;
- static var staticField = 42;
- static staticFunction() {}
-
- static get staticGetter => null;
- static set staticSetter(_) {}
-}
-
-use(x) {
- if (x == new DateTime.now().millisecondsSinceEpoch) throw "Shouldn't happen";
-}
-
-main() {
- try {
- Foo.staticConstant;
- use(Foo.staticConstant);
- Foo.staticField;
- use(Foo.staticField);
- Foo.staticFunction;
- use(Foo.staticFunction);
- Foo.staticGetter;
- use(Foo.staticGetter);
- Foo.staticSetter;
- use(Foo.staticSetter);
-
- Foo.staticConstant++;
- use(Foo.staticConstant++);
- Foo.staticField++;
- use(Foo.staticField++);
- Foo.staticFunction++;
- use(Foo.staticFunction++);
- Foo.staticGetter++;
- use(Foo.staticGetter++);
- Foo.staticSetter++;
- use(Foo.staticSetter++);
-
- ++Foo.staticConstant;
- use(++Foo.staticConstant);
- ++Foo.staticField;
- use(++Foo.staticField);
- ++Foo.staticFunction;
- use(++Foo.staticFunction);
- ++Foo.staticGetter;
- use(++Foo.staticGetter);
- ++Foo.staticSetter;
- use(++Foo.staticSetter);
-
- Foo.staticConstant();
- use(Foo.staticConstant());
- Foo.staticField();
- use(Foo.staticField());
- Foo.staticFunction();
- use(Foo.staticFunction());
- Foo.staticGetter();
- use(Foo.staticGetter());
- Foo.staticSetter();
- use(Foo.staticSetter());
-
- Foo.staticConstant = 87;
- use(Foo.staticConstant = 87);
- Foo.staticField = 87;
- use(Foo.staticField = 87);
- Foo.staticFunction = 87;
- use(Foo.staticFunction = 87);
- Foo.staticGetter = 87;
- use(Foo.staticGetter = 87);
- Foo.staticSetter = 87;
- use(Foo.staticSetter = 87);
-
- Foo.staticConstant ??= 87;
- use(Foo.staticConstant ??= 87);
- Foo.staticField ??= 87;
- use(Foo.staticField ??= 87);
- Foo.staticFunction ??= 87;
- use(Foo.staticFunction ??= 87);
- Foo.staticGetter ??= 87;
- use(Foo.staticGetter ??= 87);
- Foo.staticSetter ??= 87;
- use(Foo.staticSetter ??= 87);
- } on NoSuchMethodError {
- // Expected.
- }
-}

Powered by Google App Engine
This is Rietveld 408576698