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

Unified Diff: test/iron_behavior_active_state_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_autogrow_textarea_test.dart ('k') | test/iron_collapse_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_behavior_active_state_test.dart
diff --git a/test/iron_behavior_active_state_test.dart b/test/iron_behavior_active_state_test.dart
index 6dfd7f8fe4912d91d09b876c73bc88d18e39b324..97eb3cdb578875132979da33a31387e0a51c1d31 100644
--- a/test/iron_behavior_active_state_test.dart
+++ b/test/iron_behavior_active_state_test.dart
@@ -22,19 +22,17 @@ main() async {
activeTarget = fixture('TrivialActiveState');
});
- group('non-primary pointer input source', () {
- test('does not cause state to change', () {
- var rightClickMouseEvent = new CustomEvent('mousedown');
- new JsObject.fromBrowserObject(rightClickMouseEvent)['buttons'] = 2;
- activeTarget.dispatchEvent(rightClickMouseEvent);
- expect(activeTarget.pressed, false);
- });
- });
-
group('active state with toggles attribute', () {
setUp(() {
activeTarget = fixture('ToggleActiveState');
});
+
+ group('when down', () {
+ test('is pressed', () {
+ down(activeTarget);
+ expect(activeTarget.getAttribute('pressed'), isNotNull);
+ });
+ });
group('when clicked', () {
test('is activated', () {
« no previous file with comments | « test/iron_autogrow_textarea_test.dart ('k') | test/iron_collapse_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698