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', () { |