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

Unified Diff: tests/lib_strong/mirrors/library_declarations_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
Index: tests/lib_strong/mirrors/library_declarations_test.dart
diff --git a/tests/lib_strong/mirrors/library_declarations_test.dart b/tests/lib_strong/mirrors/library_declarations_test.dart
index 1e597931200a7f32c41dd4eb38499eec5cc5dd8f..80cd982c8ed0f721d4e8f4963a49ed807b53ca29 100644
--- a/tests/lib_strong/mirrors/library_declarations_test.dart
+++ b/tests/lib_strong/mirrors/library_declarations_test.dart
@@ -14,88 +14,96 @@ main() {
LibraryMirror lm =
currentMirrorSystem().findLibrary(#test.declarations_model);
- Expect.setEquals(
- ['Variable(s(_libraryVariable)'
+ Expect.setEquals([
+ 'Variable(s(_libraryVariable)'
' in s(test.declarations_model), private, top-level, static)',
'Variable(s(libraryVariable)'
- ' in s(test.declarations_model), top-level, static)'],
- lm.declarations.values.where((dm) => dm is VariableMirror).map(stringify),
- 'variables');
+ ' in s(test.declarations_model), top-level, static)'
+ ], lm.declarations.values.where((dm) => dm is VariableMirror).map(stringify),
+ 'variables');
// dart2js stops testing here.
return; // //# 01: ok
Expect.setEquals(
- ['Method(s(_libraryGetter)'
- ' in s(test.declarations_model), private, top-level, static, getter)',
- 'Method(s(libraryGetter)'
- ' in s(test.declarations_model), top-level, static, getter)'],
- lm.declarations.values
- .where((dm) => dm is MethodMirror && dm.isGetter).map(stringify),
- 'getters');
+ [
+ 'Method(s(_libraryGetter)'
+ ' in s(test.declarations_model), private, top-level, static, getter)',
+ 'Method(s(libraryGetter)'
+ ' in s(test.declarations_model), top-level, static, getter)'
+ ],
+ lm.declarations.values
+ .where((dm) => dm is MethodMirror && dm.isGetter)
+ .map(stringify),
+ 'getters');
Expect.setEquals(
- ['Method(s(_librarySetter=)'
- ' in s(test.declarations_model), private, top-level, static, setter)',
- 'Method(s(librarySetter=)'
- ' in s(test.declarations_model), top-level, static, setter)'],
- lm.declarations.values
- .where((dm) => dm is MethodMirror && dm.isSetter).map(stringify),
- 'setters');
+ [
+ 'Method(s(_librarySetter=)'
+ ' in s(test.declarations_model), private, top-level, static, setter)',
+ 'Method(s(librarySetter=)'
+ ' in s(test.declarations_model), top-level, static, setter)'
+ ],
+ lm.declarations.values
+ .where((dm) => dm is MethodMirror && dm.isSetter)
+ .map(stringify),
+ 'setters');
Expect.setEquals(
- ['Method(s(_libraryMethod)'
- ' in s(test.declarations_model), private, top-level, static)',
- 'Method(s(libraryMethod)'
- ' in s(test.declarations_model), top-level, static)'],
- lm.declarations.values
- .where((dm) => dm is MethodMirror && dm.isRegularMethod).map(stringify),
- 'regular methods');
+ [
+ 'Method(s(_libraryMethod)'
+ ' in s(test.declarations_model), private, top-level, static)',
+ 'Method(s(libraryMethod)'
+ ' in s(test.declarations_model), top-level, static)'
+ ],
+ lm.declarations.values
+ .where((dm) => dm is MethodMirror && dm.isRegularMethod)
+ .map(stringify),
+ 'regular methods');
- Expect.setEquals(
- ['Class(s(Class) in s(test.declarations_model), top-level)',
+ Expect.setEquals([
+ 'Class(s(Class) in s(test.declarations_model), top-level)',
'Class(s(ConcreteClass) in s(test.declarations_model), top-level)',
'Class(s(Interface) in s(test.declarations_model), top-level)',
'Class(s(Mixin) in s(test.declarations_model), top-level)',
'Class(s(Superclass) in s(test.declarations_model), top-level)',
'Class(s(_PrivateClass)'
- ' in s(test.declarations_model), private, top-level)'],
- lm.declarations.values
- .where((dm) => dm is ClassMirror).map(stringify),
- 'classes');
+ ' in s(test.declarations_model), private, top-level)'
+ ], lm.declarations.values.where((dm) => dm is ClassMirror).map(stringify),
+ 'classes');
- Expect.setEquals(
- ['Class(s(Class) in s(test.declarations_model), top-level)',
+ Expect.setEquals([
+ 'Class(s(Class) in s(test.declarations_model), top-level)',
'Class(s(ConcreteClass) in s(test.declarations_model), top-level)',
'Class(s(Interface) in s(test.declarations_model), top-level)',
'Class(s(Mixin) in s(test.declarations_model), top-level)',
'Type(s(Predicate) in s(test.declarations_model), top-level)',
'Class(s(Superclass) in s(test.declarations_model), top-level)',
'Class(s(_PrivateClass)'
- ' in s(test.declarations_model), private, top-level)'],
- lm.declarations.values.where((dm) => dm is TypeMirror).map(stringify),
- 'types');
+ ' in s(test.declarations_model), private, top-level)'
+ ], lm.declarations.values.where((dm) => dm is TypeMirror).map(stringify),
+ 'types');
- Expect.setEquals(
- ['Class(s(Class) in s(test.declarations_model), top-level)',
+ Expect.setEquals([
+ 'Class(s(Class) in s(test.declarations_model), top-level)',
'Class(s(ConcreteClass) in s(test.declarations_model), top-level)',
'Class(s(Interface) in s(test.declarations_model), top-level)',
'Class(s(Mixin) in s(test.declarations_model), top-level)',
'Type(s(Predicate) in s(test.declarations_model), top-level)',
'Class(s(Superclass) in s(test.declarations_model), top-level)',
'Method(s(libraryGetter)'
- ' in s(test.declarations_model), top-level, static, getter)',
+ ' in s(test.declarations_model), top-level, static, getter)',
'Method(s(libraryMethod)'
- ' in s(test.declarations_model), top-level, static)',
+ ' in s(test.declarations_model), top-level, static)',
'Method(s(librarySetter=)'
- ' in s(test.declarations_model), top-level, static, setter)',
+ ' in s(test.declarations_model), top-level, static, setter)',
'Variable(s(libraryVariable)'
- ' in s(test.declarations_model), top-level, static)'],
- lm.declarations.values.where((dm) => !dm.isPrivate).map(stringify),
- 'public');
+ ' in s(test.declarations_model), top-level, static)'
+ ], lm.declarations.values.where((dm) => !dm.isPrivate).map(stringify),
+ 'public');
- Expect.setEquals(
- ['Class(s(Class) in s(test.declarations_model), top-level)',
+ Expect.setEquals([
+ 'Class(s(Class) in s(test.declarations_model), top-level)',
'Class(s(ConcreteClass) in s(test.declarations_model), top-level)',
'Class(s(Interface) in s(test.declarations_model), top-level)',
'Class(s(Mixin) in s(test.declarations_model), top-level)',
@@ -116,7 +124,6 @@ main() {
'Method(s(librarySetter=)'
' in s(test.declarations_model), top-level, static, setter)',
'Variable(s(libraryVariable)'
- ' in s(test.declarations_model), top-level, static)'],
- lm.declarations.values.map(stringify),
- 'all declarations');
+ ' in s(test.declarations_model), top-level, static)'
+ ], lm.declarations.values.map(stringify), 'all declarations');
}
« no previous file with comments | « tests/lib_strong/mirrors/invoke_named_test.dart ('k') | tests/lib_strong/mirrors/library_metadata2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698