| OLD | NEW |
| 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 library test.src.context.context_test; | 5 library test.src.context.context_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/file_system/memory_file_system.dart'; | 9 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 10 import 'package:analyzer/src/cancelable_future.dart'; | 10 import 'package:analyzer/src/cancelable_future.dart'; |
| (...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 options.incremental = true; | 2216 options.incremental = true; |
| 2217 context.analysisOptions = options; | 2217 context.analysisOptions = options; |
| 2218 } | 2218 } |
| 2219 | 2219 |
| 2220 @override | 2220 @override |
| 2221 void tearDown() { | 2221 void tearDown() { |
| 2222 AnalysisEngine.instance.limitInvalidationInTaskModel = false; | 2222 AnalysisEngine.instance.limitInvalidationInTaskModel = false; |
| 2223 super.tearDown(); | 2223 super.tearDown(); |
| 2224 } | 2224 } |
| 2225 | 2225 |
| 2226 void test_noChange_thenChange() { | 2226 void fail_noChange_thenChange() { |
| 2227 Source sourceA = addSource( | 2227 Source sourceA = addSource( |
| 2228 "/a.dart", | 2228 "/a.dart", |
| 2229 r''' | 2229 r''' |
| 2230 library lib_a; | 2230 library lib_a; |
| 2231 | 2231 |
| 2232 class A { | 2232 class A { |
| 2233 A(); | 2233 A(); |
| 2234 } | 2234 } |
| 2235 class B { | 2235 class B { |
| 2236 B(); | 2236 B(); |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2515 } | 2515 } |
| 2516 } | 2516 } |
| 2517 | 2517 |
| 2518 class _AnalysisContextImplTest_test_applyChanges_removeContainer | 2518 class _AnalysisContextImplTest_test_applyChanges_removeContainer |
| 2519 implements SourceContainer { | 2519 implements SourceContainer { |
| 2520 Source libB; | 2520 Source libB; |
| 2521 _AnalysisContextImplTest_test_applyChanges_removeContainer(this.libB); | 2521 _AnalysisContextImplTest_test_applyChanges_removeContainer(this.libB); |
| 2522 @override | 2522 @override |
| 2523 bool contains(Source source) => source == libB; | 2523 bool contains(Source source) => source == libB; |
| 2524 } | 2524 } |
| OLD | NEW |