Index: test/runner/browser/runner_test.dart |
diff --git a/test/runner/browser/runner_test.dart b/test/runner/browser/runner_test.dart |
index e2c4072f2aa8b0c3fb62ecb20291ca834e98fc2c..80f9774eefc82df5a18511c07a3ff6138c2514f3 100644 |
--- a/test/runner/browser/runner_test.dart |
+++ b/test/runner/browser/runner_test.dart |
@@ -126,6 +126,12 @@ void main() { |
expect(result.exitCode, equals(0)); |
}); |
+ test("on PhantomJS", () { |
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success); |
+ var result = _runUnittest(["-p", "phantomjs", "test.dart"]); |
+ expect(result.exitCode, equals(0)); |
+ }); |
+ |
test("on Firefox", () { |
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success); |
var result = _runUnittest(["-p", "firefox", "test.dart"]); |
@@ -175,6 +181,12 @@ void main() { |
expect(result.exitCode, equals(1)); |
}); |
+ test("on PhantomJS", () { |
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure); |
+ var result = _runUnittest(["-p", "phantomjs", "test.dart"]); |
+ expect(result.exitCode, equals(1)); |
+ }); |
+ |
test("on Firefox", () { |
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure); |
var result = _runUnittest(["-p", "firefox", "test.dart"]); |