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

Unified Diff: test/run/runs_the_script_in_checked_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
Index: test/run/runs_the_script_in_checked_mode_test.dart
diff --git a/test/run/runs_the_script_in_checked_mode_test.dart b/test/run/runs_the_script_in_checked_mode_test.dart
index 28a0fd946ba1f762d9f651d6a3d121a805f12f9c..b348f9a1360e543f5a73a8e710f2f453bedfc2d8 100644
--- a/test/run/runs_the_script_in_checked_mode_test.dart
+++ b/test/run/runs_the_script_in_checked_mode_test.dart
@@ -7,22 +7,16 @@ import 'package:scheduled_test/scheduled_test.dart';
import '../descriptor.dart' as d;
import '../test_pub.dart';
-const SCRIPT = """
main() {
- int a = true;
-}
-""";
-
-main() {
- integration('runs the script in checked mode by default', () {
+ integration('runs the script in checked mode with "--checked"', () {
d.dir(appPath, [
d.appPubspec(),
d.dir("bin", [
- d.file("script.dart", SCRIPT)
+ d.file("script.dart", "main() { int a = true; }")
])
]).create();
- schedulePub(args: ["run", "bin/script"],
+ schedulePub(args: ["run", "--checked", "bin/script"],
error: contains("'bool' is not a subtype of type 'int' of 'a'"),
exitCode: 255);
});
« no previous file with comments | « test/global/run/runs_script_in_unchecked_mode_test.dart ('k') | test/run/runs_the_script_in_unchecked_mode_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698