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

Side by Side Diff: tests/lib/mirrors/library_declarations_test.dart

Issue 2763823002: Move spaces from before comments to within comments (Closed)
Patch Set: Fix comments 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.library_declarations_test; 5 library test.library_declarations_test;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 import 'stringify.dart'; 10 import 'stringify.dart';
11 import 'declarations_model.dart' as declarations_model; 11 import 'declarations_model.dart' as declarations_model;
12 12
13 main() { 13 main() {
14 LibraryMirror lm = 14 LibraryMirror lm =
15 currentMirrorSystem().findLibrary(#test.declarations_model); 15 currentMirrorSystem().findLibrary(#test.declarations_model);
16 16
17 Expect.setEquals( 17 Expect.setEquals(
18 ['Variable(s(_libraryVariable)' 18 ['Variable(s(_libraryVariable)'
19 ' in s(test.declarations_model), private, top-level, static)', 19 ' in s(test.declarations_model), private, top-level, static)',
20 'Variable(s(libraryVariable)' 20 'Variable(s(libraryVariable)'
21 ' in s(test.declarations_model), top-level, static)'], 21 ' in s(test.declarations_model), top-level, static)'],
22 lm.declarations.values.where((dm) => dm is VariableMirror).map(stringify), 22 lm.declarations.values.where((dm) => dm is VariableMirror).map(stringify),
23 'variables'); 23 'variables');
24 24
25 // dart2js stops testing here. 25 // dart2js stops testing here.
26 return; /// 01: ok 26 return; // /// 01: ok
27 27
28 Expect.setEquals( 28 Expect.setEquals(
29 ['Method(s(_libraryGetter)' 29 ['Method(s(_libraryGetter)'
30 ' in s(test.declarations_model), private, top-level, static, getter)', 30 ' in s(test.declarations_model), private, top-level, static, getter)',
31 'Method(s(libraryGetter)' 31 'Method(s(libraryGetter)'
32 ' in s(test.declarations_model), top-level, static, getter)'], 32 ' in s(test.declarations_model), top-level, static, getter)'],
33 lm.declarations.values 33 lm.declarations.values
34 .where((dm) => dm is MethodMirror && dm.isGetter).map(stringify), 34 .where((dm) => dm is MethodMirror && dm.isGetter).map(stringify),
35 'getters'); 35 'getters');
36 36
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 'Method(s(libraryGetter)' 113 'Method(s(libraryGetter)'
114 ' in s(test.declarations_model), top-level, static, getter)', 114 ' in s(test.declarations_model), top-level, static, getter)',
115 'Method(s(libraryMethod) in s(test.declarations_model), top-level, static)', 115 'Method(s(libraryMethod) in s(test.declarations_model), top-level, static)',
116 'Method(s(librarySetter=)' 116 'Method(s(librarySetter=)'
117 ' in s(test.declarations_model), top-level, static, setter)', 117 ' in s(test.declarations_model), top-level, static, setter)',
118 'Variable(s(libraryVariable)' 118 'Variable(s(libraryVariable)'
119 ' in s(test.declarations_model), top-level, static)'], 119 ' in s(test.declarations_model), top-level, static)'],
120 lm.declarations.values.map(stringify), 120 lm.declarations.values.map(stringify),
121 'all declarations'); 121 'all declarations');
122 } 122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698