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

Unified Diff: pkg/analysis_server/test/domain_analysis_test.dart

Issue 790363006: Upgrade unittest to be able to use isNotEmpty. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
Index: pkg/analysis_server/test/domain_analysis_test.dart
diff --git a/pkg/analysis_server/test/domain_analysis_test.dart b/pkg/analysis_server/test/domain_analysis_test.dart
index 2472e67e2c9e4f962c3e5f9767b1c297caf25e47..3489e6713b8d9d024e93c22472faa67dd41612e1 100644
--- a/pkg/analysis_server/test/domain_analysis_test.dart
+++ b/pkg/analysis_server/test/domain_analysis_test.dart
@@ -179,7 +179,7 @@ void test_setSubscriptions() {
// wait, there are highlight regions
helper.waitForOperationsFinished().then((_) {
var highlights = helper.getHighlights(helper.testFile);
- expect(highlights, isNot(isEmpty));
+ expect(highlights, isNotEmpty);
});
});
@@ -196,7 +196,7 @@ void test_setSubscriptions() {
// wait, has regions
return helper.waitForOperationsFinished().then((_) {
var highlights = helper.getHighlights(helper.testFile);
- expect(highlights, isNot(isEmpty));
+ expect(highlights, isNotEmpty);
});
});
});
@@ -226,7 +226,7 @@ main() {
helper.addAnalysisSubscriptionNavigation(file);
return helper.waitForOperationsFinished().then((_) {
var navigationRegions = helper.getNavigation(file);
- expect(navigationRegions, isNot(isEmpty));
+ expect(navigationRegions, isNotEmpty);
});
});
});
@@ -396,7 +396,7 @@ f(A a) {
// Create project and wait for analysis
createProject();
return waitForTasksFinished().then((_) {
- expect(filesErrors[testFile], isNot(isEmpty));
+ expect(filesErrors[testFile], isNotEmpty);
// Add the package to the package map and tickle the package dependency.
packageMapProvider.packageMap = {
'pkgA': [resourceProvider.getResource('/packages/pkgA')]

Powered by Google App Engine
This is Rietveld 408576698