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

Unified Diff: tests/compiler/dart2js_extra/js_array_index_error_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/js_array_index_error_test.dart
diff --git a/tests/compiler/dart2js_extra/js_array_index_error_test.dart b/tests/compiler/dart2js_extra/js_array_index_error_test.dart
index 9cfc87395cb196186832f95b359db3ae9c7e2233..798c758e719a9a1e88b28bfbb225826a50395876 100644
--- a/tests/compiler/dart2js_extra/js_array_index_error_test.dart
+++ b/tests/compiler/dart2js_extra/js_array_index_error_test.dart
@@ -5,13 +5,12 @@
// Test that optimized JSArray indexers enerate the same error as dyncamically
// dispatched calls.
-
import 'package:expect/expect.dart';
-@NoInline() @AssumeDynamic()
+@NoInline()
+@AssumeDynamic()
confuse(x) => x;
-
Error getError(action(), name, part) {
try {
action();
@@ -35,7 +34,6 @@ indexErrorContainsIndex() {
Expect.equals('$e1'.length + 9, '$e3'.length);
}
-
compare(name, fault1(), fault2(), fault3()) {
var e1 = getError(fault1, name, 'fault1');
var e2 = getError(fault2, name, 'fault2');
@@ -94,8 +92,8 @@ constantIndexHugeEmpty() {
return [a[HUGE], a[1], a[2]];
}
- compare('constant index on empty list with huge index',
- fault1, fault2, fault3);
+ compare(
+ 'constant index on empty list with huge index', fault1, fault2, fault3);
}
constantIndexNonempty() {
@@ -137,8 +135,8 @@ constantIndexHugeNonempty() {
return [a[HUGE], a[1], a[2]];
}
- compare('constant index on non-empty list with huge index',
- fault1, fault2, fault3);
+ compare('constant index on non-empty list with huge index', fault1, fault2,
+ fault3);
}
constantIndexSetEmpty() {
@@ -195,7 +193,6 @@ constantIndexSetNonempty() {
compare('constant index-set on non-empty list', fault1, fault2, fault3);
}
-
variableIndexEmpty(index, qualifier) {
// Single dynamic receiver indexing might go via one-shot interceptor that
// might have an accelerated path.
@@ -235,8 +232,8 @@ variableIndexNonempty(index, qualifier) {
return [a[index], a[1], a[2]];
}
- compare('variable index on non-empty list $qualifier',
- fault1, fault2, fault3);
+ compare(
+ 'variable index on non-empty list $qualifier', fault1, fault2, fault3);
}
variableIndexSetEmpty(index, qualifier) {
@@ -265,8 +262,8 @@ variableIndexSetEmpty(index, qualifier) {
return a;
}
- compare('variable index-set on empty list $qualifier',
- fault1, fault2, fault3);
+ compare(
+ 'variable index-set on empty list $qualifier', fault1, fault2, fault3);
}
variableIndexSetNonempty(index, qualifier) {
@@ -295,11 +292,10 @@ variableIndexSetNonempty(index, qualifier) {
return a;
}
- compare('variable index-set on non-empty list $qualifier',
- fault1, fault2, fault3);
+ compare('variable index-set on non-empty list $qualifier', fault1, fault2,
+ fault3);
}
-
main() {
indexErrorContainsIndex();
« no previous file with comments | « tests/compiler/dart2js_extra/is_operator_test.dart ('k') | tests/compiler/dart2js_extra/js_array_removeLast_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698