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

Unified Diff: sky/tests/custom-elements/lifecycle-created-createElement-reentrancy.sky

Issue 920343002: Delete Sky tests that we're not going to run with Dart (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
Index: sky/tests/custom-elements/lifecycle-created-createElement-reentrancy.sky
diff --git a/sky/tests/custom-elements/lifecycle-created-createElement-reentrancy.sky b/sky/tests/custom-elements/lifecycle-created-createElement-reentrancy.sky
deleted file mode 100644
index 8e90dce0a5a45a0b98082733fd5c7d334a2a82b9..0000000000000000000000000000000000000000
--- a/sky/tests/custom-elements/lifecycle-created-createElement-reentrancy.sky
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-<import src="../resources/dump-as-text.sky" />
-<import src="../resources/chai.sky" />
-<body>
-This test ensures that is visible in following script block.
-<script>
-window.callbacksCalled = [];
-
-function fooCreatedFunction() {
- assert.deepEqual(window.callbacksCalled, []);
- window.callbacksCalled.push(this.tagName);
- this.appendChild(document.createElement("x-bar"));
- assert.deepEqual(window.callbacksCalled, ['x-foo', 'x-bar']);
-}
-
-function barCreatedFunction() {
- assert.deepEqual(window.callbacksCalled, ['x-foo']);
- window.callbacksCalled.push(this.tagName);
-}
-
-document.registerElement("x-foo", { prototype: Object.create(HTMLElement.prototype, { createdCallback: { value: fooCreatedFunction } }) });
-document.registerElement("x-bar", { prototype: Object.create(HTMLElement.prototype, { createdCallback: { value: barCreatedFunction } }) });
-</script>
-<script>
-document.createElement("x-foo");
-assert.deepEqual(window.callbacksCalled, ['x-foo', 'x-bar']);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698