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

Unified Diff: lib/src/iron-selector/test/activate-event.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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 | « lib/src/iron-selector/iron-selection.html ('k') | lib/src/iron-selector/test/basic.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/iron-selector/test/activate-event.html
diff --git a/lib/src/iron-selector/test/activate-event.html b/lib/src/iron-selector/test/activate-event.html
index 8390548f46e3370bcc70d2ecf03f0dcfb20af6a2..9b47eb09b9202e7ecfed724b4624ad4b13478829 100644
--- a/lib/src/iron-selector/test/activate-event.html
+++ b/lib/src/iron-selector/test/activate-event.html
@@ -130,6 +130,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.equal(s.selected, '0');
});
+ test('activates after detach and re-attach', function() {
+ // Detach and re-attach
+ var parent = s.parentNode;
+ parent.removeChild(s);
+ parent.appendChild(s);
+
+ // select Item 2
+ s.children[2].dispatchEvent(new CustomEvent('tap', {bubbles: true}));
+ assert.equal(s.selected, '2');
+ });
+
});
</script>
« no previous file with comments | « lib/src/iron-selector/iron-selection.html ('k') | lib/src/iron-selector/test/basic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698