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

Unified Diff: tests/language/top_level_getter_no_setter2_test.dart

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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 | « tests/language/top_level_getter_no_setter1_test.dart ('k') | tests/language/toplevel_collision1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/top_level_getter_no_setter2_test.dart
diff --git a/tests/language/top_level_getter_no_setter2_test.dart b/tests/language/top_level_getter_no_setter2_test.dart
index 0bc1406a2432a67c88e3eb22d606dd74b062e5ec..ad8375271dce240683ef97302d07aa79adff55d9 100644
--- a/tests/language/top_level_getter_no_setter2_test.dart
+++ b/tests/language/top_level_getter_no_setter2_test.dart
@@ -6,16 +6,15 @@ import 'package:expect/expect.dart';
bool getter_visited = false;
-final int getter = (){
+final int getter = () {
getter_visited = true;
}();
class Class {
-
method() {
try {
getter++; //# 01: static type warning
- } on NoSuchMethodError catch(e) {
+ } on NoSuchMethodError catch (e) {
Expect.isTrue(getter_visited); //# 01: continued
return;
}
@@ -25,4 +24,4 @@ class Class {
main() {
new Class().method();
-}
+}
« no previous file with comments | « tests/language/top_level_getter_no_setter1_test.dart ('k') | tests/language/toplevel_collision1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698