Chromium Code Reviews| 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); |
|
Siggi Cherem (dart-lang)
2015/01/20 22:48:20
minor thing - I don't think our package bots run t
jakemac
2015/01/21 18:04:30
Acknowledged, I will test it on the bots and if th
|
| + 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> |