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

Side by Side Diff: pkg/analyzer/test/src/dart/analysis/driver_test.dart

Issue 2566913002: Remove making added files as changed. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library analyzer.test.driver; 5 library analyzer.test.driver;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 r''' 295 r'''
296 import 'a.dart'; 296 import 'a.dart';
297 main() { 297 main() {
298 print(A); 298 print(A);
299 } 299 }
300 '''); 300 ''');
301 driver.changeFile(b); 301 driver.changeFile(b);
302 await _waitForIdle(); 302 await _waitForIdle();
303 assertNumberOfErrorsInB(0); 303 assertNumberOfErrorsInB(0);
304 304
305 // Change 'b' t have a hint again. 305 // Change 'b' content so that it has a hint.
306 // Add and remove 'b'. 306 // Remove 'b' and add it again.
307 // The file must be refreshed, and the hint must be reported. 307 // The file 'b' must be refreshed, and the hint must be reported.
308 provider.newFile( 308 provider.newFile(
309 b, 309 b,
310 r''' 310 r'''
311 import 'a.dart'; 311 import 'a.dart';
312 '''); 312 ''');
313 driver.removeFile(b); 313 driver.removeFile(b);
314 driver.addFile(b); 314 driver.addFile(b);
315 await _waitForIdle(); 315 await _waitForIdle();
316 assertNumberOfErrorsInB(1); 316 assertNumberOfErrorsInB(1);
317 } 317 }
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 String _p(String path) => provider.convertPath(path); 1527 String _p(String path) => provider.convertPath(path);
1528 1528
1529 Future<Null> _waitForIdle() async { 1529 Future<Null> _waitForIdle() async {
1530 await idleStatusMonitor.signal; 1530 await idleStatusMonitor.signal;
1531 } 1531 }
1532 1532
1533 static String _md5(String content) { 1533 static String _md5(String content) {
1534 return hex.encode(md5.convert(UTF8.encode(content)).bytes); 1534 return hex.encode(md5.convert(UTF8.encode(content)).bytes);
1535 } 1535 }
1536 } 1536 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/analysis/driver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698