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

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1214853028: One more fix for making removing overlays incremental changes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.engine_test; 8 library engine.engine_test;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // add overlay 472 // add overlay
473 _context.setContents(source, r''' 473 _context.setContents(source, r'''
474 main() { 474 main() {
475 print(12); 475 print(12);
476 } 476 }
477 '''); 477 ''');
478 _analyzeAll_assertFinished(); 478 _analyzeAll_assertFinished();
479 expect(_context.getResolvedCompilationUnit2(source, source), unit); 479 expect(_context.getResolvedCompilationUnit2(source, source), unit);
480 // remove overlay 480 // remove overlay
481 _context.setContents(source, null); 481 _context.setContents(source, null);
482 _context.validateCacheConsistency();
482 _analyzeAll_assertFinished(); 483 _analyzeAll_assertFinished();
483 expect(_context.getResolvedCompilationUnit2(source, source), unit); 484 expect(_context.getResolvedCompilationUnit2(source, source), unit);
484 } 485 }
485 486
486 Future test_applyChanges_removeContainer() { 487 Future test_applyChanges_removeContainer() {
487 _context = AnalysisContextFactory.oldContextWithCore(); 488 _context = AnalysisContextFactory.oldContextWithCore();
488 SourcesChangedListener listener = new SourcesChangedListener(); 489 SourcesChangedListener listener = new SourcesChangedListener();
489 _context.onSourcesChanged.listen(listener.onData); 490 _context.onSourcesChanged.listen(listener.onData);
490 _sourceFactory = _context.sourceFactory; 491 _sourceFactory = _context.sourceFactory;
491 String libAContents = r''' 492 String libAContents = r'''
(...skipping 6172 matching lines...) Expand 10 before | Expand all | Expand 10 after
6664 @override 6665 @override
6665 bool exists() => true; 6666 bool exists() => true;
6666 } 6667 }
6667 6668
6668 class _UniversalCachePartitionTest_test_setMaxCacheSize 6669 class _UniversalCachePartitionTest_test_setMaxCacheSize
6669 implements CacheRetentionPolicy { 6670 implements CacheRetentionPolicy {
6670 @override 6671 @override
6671 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6672 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6672 RetentionPriority.LOW; 6673 RetentionPriority.LOW;
6673 } 6674 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698