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

Side by Side Diff: runtime/observatory/tests/observatory_ui/mocks/objects/script.dart

Issue 2767533002: Revert "Fix observatory tests broken by running dartfmt." (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 part of mocks; 5 part of mocks;
6 6
7 class ScriptRefMock implements M.ScriptRef { 7 class ScriptRefMock implements M.ScriptRef {
8 final String id; 8 final String id;
9 final String uri; 9 final String uri;
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 final DateTime loadTime; 28 final DateTime loadTime;
29 final int firstTokenPos; 29 final int firstTokenPos;
30 final int lastTokenPos; 30 final int lastTokenPos;
31 final int lineOffset; 31 final int lineOffset;
32 final int columnOffset; 32 final int columnOffset;
33 33
34 int tokenToLine(int token) => _tokenToLine(token); 34 int tokenToLine(int token) => _tokenToLine(token);
35 int tokenToCol(int token) => _tokenToCol(token); 35 int tokenToCol(int token) => _tokenToCol(token);
36 36
37 const ScriptMock( 37 const ScriptMock({this.id: 'script-id', this.vmName: 'script-vmNmae',
38 {this.id: 'script-id', 38 this.clazz, this.size, this.uri, this.source,
39 this.vmName: 'script-vmNmae', 39 this.library: const LibraryRefMock(),
40 this.clazz, 40 TokenToInt tokenToLine, TokenToInt tokenToCol,
41 this.size, 41 this.loadTime, this.firstTokenPos, this.lastTokenPos,
42 this.uri, 42 this.lineOffset, this.columnOffset})
43 this.source, 43 : _tokenToLine = tokenToLine,
44 this.library: const LibraryRefMock(), 44 _tokenToCol = tokenToCol;
45 TokenToInt tokenToLine,
46 TokenToInt tokenToCol,
47 this.loadTime,
48 this.firstTokenPos,
49 this.lastTokenPos,
50 this.lineOffset,
51 this.columnOffset})
52 : _tokenToLine = tokenToLine,
53 _tokenToCol = tokenToCol;
54 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698