| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library test.runner.browser.safari; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:convert'; | 6 import 'dart:convert'; |
| 9 import 'dart:io'; | 7 import 'dart:io'; |
| 10 | 8 |
| 11 import 'package:path/path.dart' as p; | 9 import 'package:path/path.dart' as p; |
| 12 | 10 |
| 13 import '../../util/io.dart'; | 11 import '../../util/io.dart'; |
| 14 import 'browser.dart'; | 12 import 'browser.dart'; |
| 15 | 13 |
| 16 /// A class for running an instance of Safari. | 14 /// A class for running an instance of Safari. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 "<script>location = " + JSON.encode(url.toString()) + "</script>"); | 40 "<script>location = " + JSON.encode(url.toString()) + "</script>"); |
| 43 | 41 |
| 44 var process = await Process.start(executable, [redirect]); | 42 var process = await Process.start(executable, [redirect]); |
| 45 | 43 |
| 46 process.exitCode | 44 process.exitCode |
| 47 .then((_) => new Directory(dir).deleteSync(recursive: true)); | 45 .then((_) => new Directory(dir).deleteSync(recursive: true)); |
| 48 | 46 |
| 49 return process; | 47 return process; |
| 50 } | 48 } |
| 51 } | 49 } |
| OLD | NEW |