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

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 2557513008: Enable messages in asserts by default (Closed)
Patch Set: Created 4 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/analyzer/test/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index 067627dbd9b4f1e6c36fe99a2b1bd08448ff893f..db2bf6ce726880d259bfbe9872a9ce4570ea93ef 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -373,7 +373,6 @@ f(A a) {
}
void test_assert_with_message_await() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
import 'dart:async';
f() async {
@@ -387,7 +386,6 @@ Future<String> g() => null;
}
void test_assert_with_message_dynamic() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
f() {
assert(false, g());
@@ -400,7 +398,6 @@ g() => null;
}
void test_assert_with_message_non_string() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
f() {
assert(false, 3);
@@ -412,7 +409,6 @@ f() {
}
void test_assert_with_message_null() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
f() {
assert(false, null);
@@ -424,7 +420,6 @@ f() {
}
void test_assert_with_message_string() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
f() {
assert(false, 'message');
@@ -436,7 +431,6 @@ f() {
}
void test_assert_with_message_suppresses_unused_var_hint() {
- resetWithOptions(new AnalysisOptionsImpl()..enableAssertMessage = true);
Source source = addSource('''
f() {
String message = 'msg';
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/static_type_warning_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698