Chromium Code Reviews| Index: sky/tests/resources/unit.dart |
| diff --git a/sky/tests/resources/unit.dart b/sky/tests/resources/unit.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..46d07ac84a58246473f6823b10949c6dad8c0e09 |
| --- /dev/null |
| +++ b/sky/tests/resources/unit.dart |
| @@ -0,0 +1,20 @@ |
| +import "../resources/unittest/unittest.dart"; |
|
eseidel
2015/02/12 20:19:57
Is this still right?
abarth-chromium
2015/02/12 20:22:43
Nope. Fixed.
|
| +import "dart:sky.internals" as internals; |
| + |
| +class _SkyConfig extends SimpleConfiguration { |
| + void onDone(bool success) { |
| + try { |
| + super.onDone(success); |
| + } catch (ex) { |
| + print(ex.toString()); |
| + } |
| + |
| + internals.notifyTestComplete("DONE"); |
| + } |
| +} |
| + |
| +final _singleton = new _SkyConfig(); |
| + |
| +void initUnit() { |
| + unittestConfiguration = _singleton; |
| +} |