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

Unified Diff: pkg/web_components/test/interop_test.html

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
Patch Set: Created 6 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 | « pkg/web_components/test/interop_test.dart ('k') | samples/samples.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/web_components/test/interop_test.html
===================================================================
--- pkg/web_components/test/interop_test.html (revision 37373)
+++ pkg/web_components/test/interop_test.html (working copy)
@@ -27,8 +27,14 @@
B.prototype.createdCallback = function() { this.x = counter++; };
B.extends = 'div';
+ var D = function() {};
+ D.prototype = Object.create(HTMLElement.prototype);
+ D.prototype.inc = function() { this.x = counter++; };
+ D.prototype.createdCallback = function() { this.inc(); };
+
document.registerElement('x-a', A);
document.registerElement('x-b', B);
+ document.registerElement('x-d', D);
function registerC() {
var proto = Object.create(HTMLElement.prototype, {
@@ -48,10 +54,14 @@
function addC() {
document.body.appendChild(document.createElement('x-c'));
}
+ function addD() {
+ document.body.appendChild(document.createElement('x-d'));
+ }
</script>
<x-a id="i1"></x-a>
<div is="x-b" id="i2"></div>
- <x-c id="i3"></x-b>
+ <x-c id="i3"></x-c>
+ <x-d id="i4"></x-d>
<script type="text/javascript"
src="/root_dart/tools/testing/dart/test_controller.js"></script>
%TEST_SCRIPTS%
« no previous file with comments | « pkg/web_components/test/interop_test.dart ('k') | samples/samples.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698