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

Unified Diff: pkg/polymer/test/event_controller_test.html

Issue 582113002: fix findController for non-dart elements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: support native elements, and add tests Created 6 years, 3 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/polymer/test/event_controller_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/event_controller_test.html
diff --git a/pkg/polymer/test/entered_view_test.html b/pkg/polymer/test/event_controller_test.html
similarity index 53%
copy from pkg/polymer/test/entered_view_test.html
copy to pkg/polymer/test/event_controller_test.html
index 3d7068f21dc37d861f708e95c479ea42d5ae0b19..b623a3d317ed692a0267bbaf68b3a2c03ba6910f 100644
--- a/pkg/polymer/test/entered_view_test.html
+++ b/pkg/polymer/test/event_controller_test.html
@@ -8,32 +8,33 @@ BSD-style license that can be found in the LICENSE file.
<!--polymer-test: this comment is needed for test_suite.dart-->
<head>
<title>attached binding test</title>
- <script src="packages/web_components/platform.js"></script>
<script src="packages/web_components/dart_support.js"></script>
<link rel="import" href="packages/polymer/polymer.html">
<script src="/root_dart/tools/testing/dart/test_controller.js"></script>
</head>
<body>
- This tests that elements inside the shadowRoot are properly upgraded and
- attached is called on them. Essentially this is a Shadow DOM and Custom
- Elements integration test.
+ This tests that eventController can properly be detected from dart,
+ javascript, and native elements.
<br>
- <polymer-element name="x-inner">
- <template>x-inner</template>
+ <polymer-element name="x-js" noscript>
+ <template>click x-js!</template>
</polymer-element>
- <polymer-element name="x-outer">
+
+ <polymer-element name="x-dart">
+ <template>click x-dart!</template>
+ </polymer-element>
+
+ <polymer-element name="x-controller">
<template>
- <template if="{{expand}}">
- inner element:
- <x-inner></x-inner>
- </template>
+ <button on-click="{{clickButton}}">Click me</button>
+ <x-js on-click="{{clickXJs}}"></x-js>
+ <x-dart on-click="{{clickXDart}}"></x-dart>
</template>
</polymer-element>
- outer element:
- <x-outer></x-outer>
+ <x-controller></x-controller>
- <script type="application/dart" src="entered_view_test.dart"></script>
+ <script type="application/dart" src="event_controller_test.dart"></script>
</body>
</html>
« no previous file with comments | « pkg/polymer/test/event_controller_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698