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

Unified Diff: sky/tests/events/custom-event.sky

Issue 1215063003: Remove Sky tests that we don't intend to port to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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
Index: sky/tests/events/custom-event.sky
diff --git a/sky/tests/events/custom-event.sky b/sky/tests/events/custom-event.sky
deleted file mode 100644
index f0559419240c09d00de2aff92bc26e0794a8c9f1..0000000000000000000000000000000000000000
--- a/sky/tests/events/custom-event.sky
+++ /dev/null
@@ -1,35 +0,0 @@
-<script>
-import "../resources/third_party/unittest/unittest.dart";
-import "../resources/unit.dart";
-
-import "dart:sky";
-
-class MyEvent extends Event {
- MyEvent() : super(type: "awesome", bubbles: true);
-
- bool get isCustom => true;
-}
-
-void main() {
- initUnit();
-
- test("should be able to dispatch", () {
- var event = new MyEvent();
- expect(event.isCustom, isTrue);
- expect(event.type, equals("awesome"));
- expect(event.bubbles, isTrue);
- expect(event.cancelable, isFalse);
- expect(event.isCustom, isTrue);
-
- bool gotEvent = false;
- var element = document.createElement("div");
- element.addEventListener("awesome", (e) {
- expect(e, equals(event));
- expect(event.isCustom, isTrue);
- gotEvent = true;
- });
- element.dispatchEvent(event);
- expect(gotEvent, isTrue);
- });
-}
-</script>

Powered by Google App Engine
This is Rietveld 408576698