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

Unified Diff: pkg/fasta/test/accessors.dart.direct.expect

Issue 2631613003: Add Fasta tests. (Closed)
Patch Set: Created 3 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: pkg/fasta/test/accessors.dart.direct.expect
diff --git a/pkg/fasta/test/accessors.dart.direct.expect b/pkg/fasta/test/accessors.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..04b2ad4952f27627862cd32e32d774c050c7dd32
--- /dev/null
+++ b/pkg/fasta/test/accessors.dart.direct.expect
@@ -0,0 +1,51 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+class C extends core::Object {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ set onlySetter(dynamic value) → void {
+ core::print("C.onlySetter called with ${value}.");
+ }
+ method testC() → dynamic {
+ try {
+ core::print(this.onlySetter);
+ throw "No error thrown";
+ }
+ on core::NoSuchMethodError catch(dynamic e) {
+ core::print("Expected error: ${e}");
+ }
+ this.onlySetter = "hest";
+ }
+ method testD() → dynamic {
+ core::print(this.onlySetter);
+ this.onlySetter = "hest";
+ }
+}
+class D extends self::C {
+ constructor •() → void
+ : super self::C::•()
+ ;
+ set onlySetter(dynamic value) → void {
+ core::print("D.onlySetter called with ${value}.");
+ }
+ get onlySetter() → core::String
+ return "D.onlySetter called.";
+}
+static set onlySetter(dynamic value) → void {
+ core::print("onlySetter called with ${value}.");
+}
+static method main() → dynamic {
+ try {
+ core::print(throw new core::NoSuchMethodError::•(null, #onlySetter, <dynamic>[], <dynamic, dynamic>{}, null));
+ throw "No error thrown";
+ }
+ on core::NoSuchMethodError catch(dynamic e) {
+ core::print("Expected error: ${e}");
+ }
+ self::onlySetter = "fisk";
+ new self::C::•().testC();
+ new self::D::•().testD();
+}

Powered by Google App Engine
This is Rietveld 408576698