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

Unified Diff: tests/compiler/dart2js_extra/locate_single_element_1_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/compiler/dart2js_extra/locate_single_element_1_test.dart
diff --git a/tests/compiler/dart2js_extra/locate_single_element_1_test.dart b/tests/compiler/dart2js_extra/locate_single_element_1_test.dart
index 5fe6e857ef2c8d63438d2ed661dc49293da189e1..4291fe0629bc77d5465036cc96f635562fd87959 100644
--- a/tests/compiler/dart2js_extra/locate_single_element_1_test.dart
+++ b/tests/compiler/dart2js_extra/locate_single_element_1_test.dart
@@ -7,23 +7,25 @@
import 'package:expect/expect.dart';
class T {
- foo() => 'T.foo'; // This is the single element.
+ foo() => 'T.foo'; // This is the single element.
}
class C implements T {
// There is a warning that C does not implement 'foo'.
}
-@NoInline() @AssumeDynamic()
-assumeT(x) { // returns inferred subtype(T).
+@NoInline()
+@AssumeDynamic()
+assumeT(x) {
+ // returns inferred subtype(T).
if (x is T) return x;
throw "Not T";
}
var log = [];
demo() {
- log.add(new T()); // T is created.
- var a = assumeT(new C()); // C is created.
+ log.add(new T()); // T is created.
+ var a = assumeT(new C()); // C is created.
// The call "a.foo()" should be a NoSuchMethodError, but a bug in
// locateSingleElement used to lead to T.foo being inlined. There is a single
« no previous file with comments | « tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart ('k') | tests/compiler/dart2js_extra/logical_or_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698