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

Unified Diff: polymer_1.2.3/bower_components/iron-selector/test/activate-event.html

Issue 1581713003: [third_party] add polymer 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: 1.2.3 Created 4 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
Index: polymer_1.2.3/bower_components/iron-selector/test/activate-event.html
diff --git a/polymer_1.0.4/bower_components/iron-selector/test/activate-event.html b/polymer_1.2.3/bower_components/iron-selector/test/activate-event.html
similarity index 92%
copy from polymer_1.0.4/bower_components/iron-selector/test/activate-event.html
copy to polymer_1.2.3/bower_components/iron-selector/test/activate-event.html
index 8390548f46e3370bcc70d2ecf03f0dcfb20af6a2..9b47eb09b9202e7ecfed724b4624ad4b13478829 100644
--- a/polymer_1.0.4/bower_components/iron-selector/test/activate-event.html
+++ b/polymer_1.2.3/bower_components/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>

Powered by Google App Engine
This is Rietveld 408576698