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

Side by Side Diff: pkg/analysis_server/test/search/member_references_test.dart

Issue 2884593003: Reverse the sense of the flag to make it easier to find test that need to be converted (Closed)
Patch Set: Created 3 years, 7 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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:analysis_server/protocol/protocol.dart'; 7 import 'package:analysis_server/protocol/protocol.dart';
8 import 'package:analysis_server/protocol/protocol_generated.dart'; 8 import 'package:analysis_server/protocol/protocol_generated.dart';
9 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 Future findMemberReferences(String name) async { 27 Future findMemberReferences(String name) async {
28 await waitForTasksFinished(); 28 await waitForTasksFinished();
29 Request request = new SearchFindMemberReferencesParams(name).toRequest('0'); 29 Request request = new SearchFindMemberReferencesParams(name).toRequest('0');
30 Response response = await waitResponse(request); 30 Response response = await waitResponse(request);
31 searchId = new SearchFindMemberReferencesResult.fromResponse(response).id; 31 searchId = new SearchFindMemberReferencesResult.fromResponse(response).id;
32 return waitForSearchResults(); 32 return waitForSearchResults();
33 } 33 }
34 34
35 @override
36 void setUp() {
37 enableNewAnalysisDriver = true;
38 super.setUp();
39 }
40
41 test_fields_explicit() async { 35 test_fields_explicit() async {
42 addTestFile(''' 36 addTestFile('''
43 class A { 37 class A {
44 var foo; 38 var foo;
45 } 39 }
46 class B { 40 class B {
47 var foo; 41 var foo;
48 } 42 }
49 mainResolved(A a, B b) { 43 mainResolved(A a, B b) {
50 a.foo = 1; 44 a.foo = 1;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 b.foo(20); 105 b.foo(20);
112 } 106 }
113 '''); 107 ''');
114 await findMemberReferences('foo'); 108 await findMemberReferences('foo');
115 assertNoResult(SearchResultKind.INVOCATION, 'foo(1)'); 109 assertNoResult(SearchResultKind.INVOCATION, 'foo(1)');
116 assertNoResult(SearchResultKind.INVOCATION, 'foo(2)'); 110 assertNoResult(SearchResultKind.INVOCATION, 'foo(2)');
117 assertHasRef(SearchResultKind.INVOCATION, 'foo(10)', true); 111 assertHasRef(SearchResultKind.INVOCATION, 'foo(10)', true);
118 assertHasRef(SearchResultKind.INVOCATION, 'foo(20)', true); 112 assertHasRef(SearchResultKind.INVOCATION, 'foo(20)', true);
119 } 113 }
120 } 114 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698