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

Unified Diff: pkg/analyzer/test/src/task/incremental_element_builder_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/src/task/html_work_manager_test.dart ('k') | pkg/analyzer/test/src/task/inputs_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/incremental_element_builder_test.dart
diff --git a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
index cc6e95b6b0d9032750bf61fd5e6977a3085b3f32..b495be76e68c596d8753407e46f7a7e2ae36d922 100644
--- a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
+++ b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
@@ -11,10 +11,11 @@ import 'package:analyzer/src/task/incremental_element_builder.dart';
import 'package:unittest/unittest.dart';
import '../../reflective_tests.dart';
+import '../../utils.dart';
import '../context/abstract_context.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
runReflectiveTests(IncrementalCompilationUnitElementBuilderTest);
}
@@ -79,10 +80,12 @@ library my_lib;
part 'test.dart';
''';
Source libSource = newSource('/lib.dart', libCode);
- _buildOldUnit(r'''
+ _buildOldUnit(
+ r'''
part of my_lib;
class A {}
-''', libSource);
+''',
+ libSource);
List<Directive> oldDirectives = oldUnit.directives.toList();
_buildNewUnit(r'''
part of my_lib;
@@ -330,7 +333,9 @@ class B {}
{
CompilationUnitMember newNode = newNodes[0];
expect(newNode, same(oldNodes[2]));
- expect(getNodeText(newNode), r'''
+ expect(
+ getNodeText(newNode),
+ r'''
/// reference [double] and [B] types.
class C {}''');
ClassElement element = newNode.element;
@@ -349,7 +354,9 @@ class C {}''');
{
CompilationUnitMember newNode = newNodes[1];
expect(newNode, same(oldNodes[0]));
- expect(getNodeText(newNode), r'''
+ expect(
+ getNodeText(newNode),
+ r'''
/// reference [bool] type.
class A {}''');
ClassElement element = newNode.element;
@@ -366,7 +373,9 @@ class A {}''');
{
CompilationUnitMember newNode = newNodes[2];
expect(newNode, same(oldNodes[1]));
- expect(getNodeText(newNode), r'''
+ expect(
+ getNodeText(newNode),
+ r'''
/// reference [int] type.
class B {}''');
ClassElement element = newNode.element;
@@ -621,16 +630,18 @@ int c, d;
// unit.types
expect(unitElement.topLevelVariables,
unorderedEquals([elementA, elementB, elementC, elementD]));
- expect(unitElement.accessors, unorderedEquals([
- elementA.getter,
- elementA.setter,
- elementB.getter,
- elementB.setter,
- elementC.getter,
- elementC.setter,
- elementD.getter,
- elementD.setter
- ]));
+ expect(
+ unitElement.accessors,
+ unorderedEquals([
+ elementA.getter,
+ elementA.setter,
+ elementB.getter,
+ elementB.setter,
+ elementC.getter,
+ elementC.setter,
+ elementD.getter,
+ elementD.setter
+ ]));
}
test_unitMembers_topLevelVariable_final() {
« no previous file with comments | « pkg/analyzer/test/src/task/html_work_manager_test.dart ('k') | pkg/analyzer/test/src/task/inputs_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698