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

Unified Diff: pkg/analysis_server/test/integration/analysis/update_content_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/integration/analysis/update_content_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/update_content_test.dart b/pkg/analysis_server/test/integration/analysis/update_content_test.dart
index cca4ec6668385429a1b13b694f78c32712858403..ec6d696187933f623359bd1eafd3d875f62f3341 100644
--- a/pkg/analysis_server/test/integration/analysis/update_content_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/update_content_test.dart
@@ -27,7 +27,7 @@ main() {
standardAnalysisSetup();
return analysisFinished.then((_) {
// The contents on disk (badText) are missing a semicolon.
- expect(currentAnalysisErrors[pathname], isNot(isEmpty));
+ expect(currentAnalysisErrors[pathname], isNotEmpty);
}).then((_) => sendAnalysisUpdateContent({
pathname: new AddContentOverlay(goodText)
})).then((result) => analysisFinished).then((_) {
@@ -40,7 +40,7 @@ main() {
});
}).then((result) => analysisFinished).then((_) {
// There should be errors now because we've removed the semicolon.
- expect(currentAnalysisErrors[pathname], isNot(isEmpty));
+ expect(currentAnalysisErrors[pathname], isNotEmpty);
return sendAnalysisUpdateContent({
pathname: new ChangeContentOverlay(
[new SourceEdit(goodText.indexOf(';'), 0, ';')])
@@ -54,7 +54,7 @@ main() {
}).then((result) => analysisFinished).then((_) {
// Now there should be errors again, because the contents on disk are no
// longer overridden.
- expect(currentAnalysisErrors[pathname], isNot(isEmpty));
+ expect(currentAnalysisErrors[pathname], isNotEmpty);
});
}
}

Powered by Google App Engine
This is Rietveld 408576698