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

Unified Diff: sky/tests/dom/inherit-from-text.sky

Issue 1212163009: Port remaining Sky tests to the new world (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: add 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
« no previous file with comments | « sky/tests/dom/getChildElements.sky ('k') | sky/tests/dom/inherit-from-text-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tests/dom/inherit-from-text.sky
diff --git a/sky/tests/dom/inherit-from-text.sky b/sky/tests/dom/inherit-from-text.sky
deleted file mode 100644
index ffede0634a24a9f74376284ac92d250f2cfc84a8..0000000000000000000000000000000000000000
--- a/sky/tests/dom/inherit-from-text.sky
+++ /dev/null
@@ -1,31 +0,0 @@
-<sky>
-<script>
-import "../resources/third_party/unittest/unittest.dart";
-import "../resources/unit.dart";
-
-import "dart:sky";
-
-class CustomText extends Text {
- CustomText() : super("awesome");
-
- bool get isCustom => true;
-}
-
-void main() {
- initUnit();
-
- test("should be able to insert in DOM", () {
- var child = new CustomText();
- expect(child.isCustom, isTrue);
- expect(child.parentNode, isNull);
- expect(child.data, equals("awesome"));
-
- var parent = document.createElement("div");
- parent.appendChild(child);
- expect(child.parentNode, equals(parent));
- expect(parent.firstChild, equals(child));
- expect(parent.firstChild.isCustom, isTrue);
- });
-}
-</script>
-</sky>
« no previous file with comments | « sky/tests/dom/getChildElements.sky ('k') | sky/tests/dom/inherit-from-text-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698