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

Unified Diff: pkg/front_end/test/fasta/accessors.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
« no previous file with comments | « pkg/front_end/lib/src/fasta/vm.dart ('k') | pkg/front_end/test/fasta/accessors.dart.direct.expect » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/test/fasta/accessors.dart
diff --git a/pkg/front_end/test/fasta/accessors.dart b/pkg/front_end/test/fasta/accessors.dart
deleted file mode 100644
index 453e61fdd577df707b24ba630c0cb4af66d3e9c8..0000000000000000000000000000000000000000
--- a/pkg/front_end/test/fasta/accessors.dart
+++ /dev/null
@@ -1,48 +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 file.
-
-void set onlySetter(value) {
- print("onlySetter called with $value.");
-}
-
-class C {
- void set onlySetter(value) {
- print("C.onlySetter called with $value.");
- }
-
- testC() {
- try {
- print(onlySetter);
- throw "No error thrown";
- } on NoSuchMethodError catch (e) {
- print("Expected error: $e");
- }
- onlySetter = "hest";
- }
-
- testD() {
- print(onlySetter);
- onlySetter = "hest";
- }
-}
-
-class D extends C {
- String get onlySetter() => "D.onlySetter called.";
-
- void set onlySetter(value) {
- print("D.onlySetter called with $value.");
- }
-}
-
-main() {
- try {
- print(onlySetter);
- throw "No error thrown";
- } on NoSuchMethodError catch (e) {
- print("Expected error: $e");
- }
- onlySetter = "fisk";
- new C().testC();
- new D().testD();
-}
« no previous file with comments | « pkg/front_end/lib/src/fasta/vm.dart ('k') | pkg/front_end/test/fasta/accessors.dart.direct.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698