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

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

Issue 1062683004: Preliminary safari support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Polish 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 | « lib/src/runner/browser/server.dart ('k') | test/runner/browser/safari_test.dart » ('j') | 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 97d779ab86b24b41a419a5c3b53a9aea44ab1f17..dadf54917a57eaee32991c70cf490f31421a95a5 100644
--- a/test/runner/browser/runner_test.dart
+++ b/test/runner/browser/runner_test.dart
@@ -138,6 +138,12 @@ void main() {
expect(result.exitCode, equals(0));
});
+ test("on Safari", () {
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success);
+ var result = _runUnittest(["-p", "safari", "test.dart"]);
+ expect(result.exitCode, equals(0));
+ }, testOn: "mac-os");
+
test("on Dartium", () {
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_success);
var result = _runUnittest(["-p", "dartium", "test.dart"]);
@@ -193,6 +199,12 @@ void main() {
expect(result.exitCode, equals(1));
});
+ test("on Safari", () {
+ new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure);
+ var result = _runUnittest(["-p", "safari", "test.dart"]);
+ expect(result.exitCode, equals(1));
+ }, testOn: "mac-os");
+
test("on Dartium", () {
new File(p.join(_sandbox, "test.dart")).writeAsStringSync(_failure);
var result = _runUnittest(["-p", "dartium", "test.dart"]);
« no previous file with comments | « lib/src/runner/browser/server.dart ('k') | test/runner/browser/safari_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698