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

Unified Diff: tests/compiler/dart2js/setlet_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
« no previous file with comments | « tests/compiler/dart2js/serialization/test_helper.dart ('k') | tests/compiler/dart2js/sha1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/setlet_test.dart
diff --git a/tests/compiler/dart2js/setlet_test.dart b/tests/compiler/dart2js/setlet_test.dart
index 8c9a9e5a83805194eb1d685883abe6df449c3527..f27cbcb07858fb89f99ee43f4e72cb6bc36fd07c 100644
--- a/tests/compiler/dart2js/setlet_test.dart
+++ b/tests/compiler/dart2js/setlet_test.dart
@@ -75,13 +75,20 @@ testAllLikeSet() {
// For a variety of inputs and operations, test that Setlet behaves just like
// Set.
var samples = [
- [], [1], [1, 2], [2, 1], [1, 3], [3, 1], [1, 2, 3], [3, 1, 2],
- [1, 2, 3, 4, 5, 6, 7],
- [1, 2, 3, 4, 5, 6, 7, 8, 9],
- [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
- [1, 2, 3, 4, 5, 6, 7, 8, 9],
- [6, 7, 8, 9, 10, 11],
- [7, 8, 6, 5],
+ [],
+ [1],
+ [1, 2],
+ [2, 1],
+ [1, 3],
+ [3, 1],
+ [1, 2, 3],
+ [3, 1, 2],
+ [1, 2, 3, 4, 5, 6, 7],
+ [1, 2, 3, 4, 5, 6, 7, 8, 9],
+ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
+ [1, 2, 3, 4, 5, 6, 7, 8, 9],
+ [6, 7, 8, 9, 10, 11],
+ [7, 8, 6, 5],
];
for (var a in samples) {
@@ -106,7 +113,6 @@ testAllLikeSet() {
}
}
-
testSetXElement(name, fn, a, b) {
var set1 = new LinkedHashSet.from(a);
var setlet1 = new Setlet.from(a);
@@ -137,12 +143,11 @@ checkResult(operationName, setResult, setletResult) {
if (setResult == null || setResult is bool || setResult is num) {
Expect.equals(setResult, setletResult, '$operationName');
} else if (setResult is Iterable) {
- Expect.isTrue(setletResult is Iterable,
- '$operationName: returns Iterable');
+ Expect.isTrue(setletResult is Iterable, '$operationName: returns Iterable');
Expect.equals(setResult.isEmpty, setletResult.isEmpty,
'$operationName: same isEmpty');
- Expect.equals(setResult.length, setletResult.length,
- '$operationName: same length');
+ Expect.equals(
+ setResult.length, setletResult.length, '$operationName: same length');
Expect.listEquals(setResult.toList(), setletResult.toList(),
'$operationName: same toList() result');
} else {
« no previous file with comments | « tests/compiler/dart2js/serialization/test_helper.dart ('k') | tests/compiler/dart2js/sha1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698