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

Unified Diff: tests/language/accessor_conflict_import_prefixed2_test.dart

Issue 1653833002: Add shared tests demonstrating bugs #25624, #25625, and #25626. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/language/accessor_conflict_import_prefixed2_test.dart
diff --git a/tests/language/accessor_conflict_import_prefixed2_test.dart b/tests/language/accessor_conflict_import_prefixed2_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..88ab758cdb679d652e884e32dd2b310304683dc8
--- /dev/null
+++ b/tests/language/accessor_conflict_import_prefixed2_test.dart
@@ -0,0 +1,18 @@
+// 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.
+
+// Verify that a getter and its corresponding setter can be imported from two
+// different files. In this test the setter is imported first.
+
+import "package:expect/expect.dart";
+
+import "accessor_conflict_setter.dart" as p;
+import "accessor_conflict_getter.dart" as p;
+
+main() {
+ p.getValue = 123;
+ Expect.equals(p.x, 123);
+ p.x = 456;
+ Expect.equals(p.setValue, 456);
+}
« no previous file with comments | « tests/language/accessor_conflict_import2_test.dart ('k') | tests/language/accessor_conflict_import_prefixed_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698