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

Unified Diff: test/iron_selector_activate_event_test.dart

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 | « test/iron_range_behavior_test.dart ('k') | test/iron_selector_basic_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_selector_activate_event_test.dart
diff --git a/test/iron_selector_activate_event_test.dart b/test/iron_selector_activate_event_test.dart
index 05ecbeef128774bcf122ec56a8700a60045a5e10..c26355d3a187a7bf54667bdd09f3308b0136a322 100644
--- a/test/iron_selector_activate_event_test.dart
+++ b/test/iron_selector_activate_event_test.dart
@@ -112,5 +112,16 @@ main() async {
// shouldn't got selected since we preventDefault in iron-activate
expect(s.selected, '0');
});
+
+ test('activates after detach and re-attach', () {
+ // Detach and re-attach
+ var parent = s.parentNode;
+ s.remove();
+ parent.append(s);
+
+ // select Item 2
+ s.children[2].dispatchEvent(new CustomEvent('tap', canBubble: true));
+ expect(s.selected, 2);
+ });
});
}
« no previous file with comments | « test/iron_range_behavior_test.dart ('k') | test/iron_selector_basic_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698