| Index: sky/tests/resources/harness.dart
|
| diff --git a/sky/tests/resources/harness.dart b/sky/tests/resources/harness.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7ea476d9bb8e3b4044315ce08cf8ff4bf700d505
|
| --- /dev/null
|
| +++ b/sky/tests/resources/harness.dart
|
| @@ -0,0 +1,14 @@
|
| +import "dart:sky.internals" as internals;
|
| +
|
| +import 'package:sky/mojo/shell.dart' as shell;
|
| +import 'package:mojom/sky/test_harness.mojom.dart';
|
| +
|
| +void notifyTestComplete(String result) {
|
| + TestHarnessProxy test_harness = new TestHarnessProxy.unbound();
|
| + shell.requestService("mojo:sky_viewer", test_harness);
|
| + test_harness.ptr.onTestComplete(result, null);
|
| + test_harness.close();
|
| +
|
| + // FIXME(eseidel): Remove this once all tests run in sky_shell.
|
| + internals.notifyTestComplete(result);
|
| +}
|
|
|