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

Unified Diff: tests/compiler/dart2js/exit_code_test.dart

Issue 2918253002: invariant cleanup (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/invariant.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/exit_code_test.dart
diff --git a/tests/compiler/dart2js/exit_code_test.dart b/tests/compiler/dart2js/exit_code_test.dart
index 1fc1693c864c20208714ab833db187d30979bf74..e833e4aef1f53966787950e6ac365e0b1a67c1a8 100644
--- a/tests/compiler/dart2js/exit_code_test.dart
+++ b/tests/compiler/dart2js/exit_code_test.dart
@@ -87,9 +87,9 @@ class TestCompiler extends apiimpl.CompilerImpl {
onTest(testMarker, testType);
assert(false);
break;
- case 'invariant':
+ case 'failedAt':
onTest(testMarker, testType);
- invariant(NO_LOCATION_SPANNABLE, false, message: marker);
+ failedAt(NO_LOCATION_SPANNABLE, marker);
break;
case 'warning':
onTest(testMarker, testType);
@@ -270,7 +270,7 @@ void main() {
'': 0,
'NoSuchMethodError': 253,
'assert': isCheckedMode ? 253 : 0,
- 'invariant': 253
+ 'failedAt': 253
};
}
@@ -279,7 +279,7 @@ void main() {
'': 0,
'NoSuchMethodError': 253,
'assert': isCheckedMode ? 253 : 0,
- 'invariant': 253,
+ 'failedAt': 253,
'warning': fatalWarnings ? 1 : 0,
'error': 1,
'internalError': 253,
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/invariant.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698