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

Unified Diff: test/custom_element_proxy_test.html

Issue 839013003: CustomElementProxy annotation (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: update initialize dependency Created 5 years, 11 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 | « test/custom_element_proxy_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/custom_element_proxy_test.html
diff --git a/test/custom_element_proxy_test.html b/test/custom_element_proxy_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..87053edc5aeb5cc9a234f517460afef938cc2ba3
--- /dev/null
+++ b/test/custom_element_proxy_test.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="dart.unittest" content="full-stack-traces">
+ <title> custom_element_proxy 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/webcomponents.js"></script>
+ <script src="/packages/web_components/interop_support.js"></script>
+ <script src="/packages/web_components/dart_support.js"></script>
+</head>
+<body>
+ <h1> Running custom_element_proxy </h1>
+ <div id="container"></div>
+
+ <script>
+ var basicElementProto = Object.create(HTMLElement.prototype);
+ basicElementProto.isBasicElement = true;
+ document.registerElement('basic-element', {
+ prototype: basicElementProto
+ });
+
+ var extendedElementProto = Object.create(HTMLInputElement.prototype);
+ extendedElementProto.isExtendedElement = true;
+ document.registerElement('extended-element', {
+ prototype: extendedElementProto,
+ extends: 'input'
+ });
+ </script>
+
+ <script type="text/javascript"
+ src="/root_dart/tools/testing/dart/test_controller.js"></script>
+ <script type="application/dart" src="custom_element_proxy_test.dart"></script>
+ <script type="text/javascript" src="/packages/browser/dart.js"></script>
+</body>
+</html>
« no previous file with comments | « test/custom_element_proxy_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698