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

Unified Diff: tests/html/custom/element_upgrade_test.html

Issue 220403008: Revert "Adding a mechanism to 'upgrade' the Dart type of elements" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « tests/html/custom/element_upgrade_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/element_upgrade_test.html
diff --git a/tests/html/custom/element_upgrade_test.html b/tests/html/custom/element_upgrade_test.html
deleted file mode 100644
index 6786c717c242e6ecff02d9ac88fc5e3da0249e30..0000000000000000000000000000000000000000
--- a/tests/html/custom/element_upgrade_test.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<meta name="dart.unittest" content="full-stack-traces">
-<title> element_upgrade_test </title>
-<style>
- .unittest-table { font-family:monospace; border:1px; }
- .unittest-pass { background: #6b3;}
- .unittest-fail { background: #d55;}
- .unittest-error { background: #a11;}
-</style>
-<script src="/packages/web_components/platform.concat.js"></script>
-<script src="/packages/web_components/dart_support.js"></script>
-
-<body>
- <h1> Running element_upgrade_test </h1>
-
-<script>
-var Foo = function() {};
-Foo.prototype = Object.create(HTMLElement.prototype);
-Foo.prototype.createdCallback = function() {
- this.fooCreated = true;
- this.textContent = 'constructed';
-
- // Tell the Dart side that this was created.
- // For testing purposes, for real code this would use a different mechanism.
- window.upgradeListener(this);
-};
-
-Foo.prototype.doSomething = function() {
- this.textContent = 'didSomething';
- return 'didSomething';
-};
-
-Foo = document.registerElement('x-foo', Foo);
-
-function validateIsFoo(element) {
- if (!(element instanceof Foo)) {
- throw Error('Element is not a Foo');
- }
-
- if (!element.fooCreated) {
- throw Error('Expected fooCreated to be set');
- }
-}
-</script>
-
- <script type="text/javascript"
- src="/packages/unittest/test_controller.js"></script>
- %TEST_SCRIPTS%
-</body>
« no previous file with comments | « tests/html/custom/element_upgrade_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698