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

Unified Diff: sky/tests/resources/unit.dart

Issue 921863002: Add testing resources from SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: move to third_party Created 5 years, 10 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 | « sky/tests/resources/third_party/unittest/vm_config.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+}
« no previous file with comments | « sky/tests/resources/third_party/unittest/vm_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698