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

Unified Diff: test/runner/browser/runner_test.dart

Issue 1080193002: Add content shell support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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/runner/browser/content_shell_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/browser/runner_test.dart
diff --git a/test/runner/browser/runner_test.dart b/test/runner/browser/runner_test.dart
index e8573b8afa48c100d686200149aa835e4d969a2a..e2c4072f2aa8b0c3fb62ecb20291ca834e98fc2c 100644
--- a/test/runner/browser/runner_test.dart
+++ b/test/runner/browser/runner_test.dart
@@ -139,6 +139,13 @@ void main() {
expect(result.exitCode, equals(0));
});
+ test("on content shell", () {
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success);
+ var result = _runUnittest(["-p", "content-shell", "test.dart"]);
+ expect(result.stdout, isNot(contains("Compiling")));
+ expect(result.exitCode, equals(0));
+ });
+
test("on multiple browsers", () {
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success);
var result = _runUnittest(["-p", "firefox", "-p", "chrome", "test.dart"]);
@@ -148,7 +155,8 @@ void main() {
test("on a JS and non-JS browser", () {
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success);
- var result = _runUnittest(["-p", "dartium", "-p", "chrome", "test.dart"]);
+ var result = _runUnittest(
+ ["-p", "content-shell", "-p", "chrome", "test.dart"]);
expect("Compiling".allMatches(result.stdout), hasLength(1));
expect(result.exitCode, equals(0));
});
@@ -179,6 +187,12 @@ void main() {
expect(result.exitCode, equals(1));
});
+ test("on content-shell", () {
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure);
+ var result = _runUnittest(["-p", "content-shell", "test.dart"]);
+ expect(result.exitCode, equals(1));
+ });
+
test("that fail only on the browser", () {
new File(p.join(_sandbox, "test.dart")).writeAsStringSync("""
import 'dart:async';
« no previous file with comments | « test/runner/browser/content_shell_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698