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

Unified Diff: tests/compiler/dart2js/interop_anonymous_unreachable_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/interop_anonymous_unreachable_test.dart
diff --git a/tests/compiler/dart2js/interop_anonymous_unreachable_test.dart b/tests/compiler/dart2js/interop_anonymous_unreachable_test.dart
index 3f382059772247abb9abeab45eef227cbe4ece3d..c278eb56de89c2ca6de7611f0bccba391808d222 100644
--- a/tests/compiler/dart2js/interop_anonymous_unreachable_test.dart
+++ b/tests/compiler/dart2js/interop_anonymous_unreachable_test.dart
@@ -9,11 +9,11 @@ import 'dart:async';
import 'package:test/test.dart';
import 'compiler_helper.dart';
-
main() {
test("unreachable code doesn't crash the compiler", () async {
// This test is a regression for Issue #24974
- String generated = await compile("""
+ String generated = await compile(
+ """
import 'package:js/js.dart';
@JS() @anonymous
@@ -21,7 +21,8 @@ main() {
external factory UniqueLongNameForTesting_A();
}
main() {}
- """, returnAll: true);
+ """,
+ returnAll: true);
// the code should not be included in the output either.
expect(generated, isNot(contains("UniqueLongNameForTesting_A")));
@@ -83,8 +84,7 @@ main() {
test('tree-shake when using flag', () async {
String generated = await compile(program,
- trustJSInteropTypeAnnotations: true,
- returnAll: true);
+ trustJSInteropTypeAnnotations: true, returnAll: true);
expect(generated.contains("UniqueLongNameForTesting_A"), isTrue);
expect(generated.contains("UniqueLongNameForTesting_D"), isTrue);
@@ -126,8 +126,7 @@ main() {
test('allocation effect of dynamic excludes native types [flag]', () async {
// Trusting types doesn't make a difference.
String generated = await compile(program,
- trustJSInteropTypeAnnotations: true,
- returnAll: true);
+ trustJSInteropTypeAnnotations: true, returnAll: true);
expect(generated.contains("UniqueLongNameForTesting_A"), isTrue);
expect(generated.contains("UniqueLongNameForTesting_B"), isTrue);
expect(generated.contains("HTMLAudioElement"), isFalse);
« no previous file with comments | « tests/compiler/dart2js/interceptor_test.dart ('k') | tests/compiler/dart2js/interpolation_folding_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698