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

Side by Side Diff: sdk/lib/_internal/dartdoc/test/dartdoc_search_test.dart

Issue 14322008: Version 0.4.7.3 . (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dartdoc_search_test; 5 library dartdoc_search_test;
6 6
7 // TODO(rnystrom): Use "package:" URL (#4968). 7 // TODO(rnystrom): Use "package:" URL (#4968).
8 import '../../../../../pkg/expect/lib/expect.dart'; 8 import '../../../../../pkg/expect/lib/expect.dart';
9 import '../lib/src/dartdoc/nav.dart'; 9 import '../lib/src/dartdoc/nav.dart';
10 import '../lib/src/client/search.dart'; 10 import '../lib/src/client/search.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 var prefixResult = new Result(prefixMatch, FIELD, URL, type: 'Event'); 44 var prefixResult = new Result(prefixMatch, FIELD, URL, type: 'Event');
45 Expect.equals(-1, resultComparator(fullResult, prefixResult), 45 Expect.equals(-1, resultComparator(fullResult, prefixResult),
46 "Full matches should be preferred to prefix matches"); 46 "Full matches should be preferred to prefix matches");
47 } 47 }
48 48
49 void main() { 49 void main() {
50 testTopLevelVsMembers(); 50 testTopLevelVsMembers();
51 testTopLevelFullVsPrefix(); 51 testTopLevelFullVsPrefix();
52 testMemberFullVsPrefix(); 52 testMemberFullVsPrefix();
53 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698