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

Unified Diff: test/run/runs_the_script_in_unchecked_mode_test.dart

Issue 1272813003: Support "--checked" in pub run and global run. (Closed) Base URL: https://github.com/dart-lang/pub.git@master
Patch Set: Revise. Created 5 years, 4 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 | « test/run/runs_the_script_in_checked_mode_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/run/runs_the_script_in_unchecked_mode_test.dart
diff --git a/test/run/runs_the_script_in_checked_mode_test.dart b/test/run/runs_the_script_in_unchecked_mode_test.dart
similarity index 71%
copy from test/run/runs_the_script_in_checked_mode_test.dart
copy to test/run/runs_the_script_in_unchecked_mode_test.dart
index 28a0fd946ba1f762d9f651d6a3d121a805f12f9c..cdb2e52a3662e4a8187c315fad261559833a7172 100644
--- a/test/run/runs_the_script_in_checked_mode_test.dart
+++ b/test/run/runs_the_script_in_unchecked_mode_test.dart
@@ -10,11 +10,12 @@ import '../test_pub.dart';
const SCRIPT = """
main() {
int a = true;
+ print("no checks");
}
""";
main() {
- integration('runs the script in checked mode by default', () {
+ integration('runs the script in unchecked mode by default', () {
d.dir(appPath, [
d.appPubspec(),
d.dir("bin", [
@@ -22,8 +23,6 @@ main() {
])
]).create();
- schedulePub(args: ["run", "bin/script"],
- error: contains("'bool' is not a subtype of type 'int' of 'a'"),
- exitCode: 255);
+ schedulePub(args: ["run", "bin/script"], output: contains("no checks"));
});
}
« no previous file with comments | « test/run/runs_the_script_in_checked_mode_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698