Index: third_party/pkg/angular/test/directive/ng_events_spec.dart |
diff --git a/third_party/pkg/angular/test/directive/ng_events_spec.dart b/third_party/pkg/angular/test/directive/ng_events_spec.dart |
deleted file mode 100644 |
index 39cdfee351ec1283f9453e19b4f32df85ebf1573..0000000000000000000000000000000000000000 |
--- a/third_party/pkg/angular/test/directive/ng_events_spec.dart |
+++ /dev/null |
@@ -1,81 +0,0 @@ |
-library ng_events_spec; |
- |
-import '../_specs.dart'; |
-import 'dart:html' as dom; |
- |
-void addTest(String name, [String eventType='MouseEvent', String eventName]) { |
- if (eventName == null) { |
- eventName = name; |
- } |
- |
- describe('ng-$name', () { |
- TestBed _; |
- |
- beforeEach(inject((TestBed tb) => _ = tb)); |
- |
- it('should evaluate the expression on $name', inject(() { |
- _.compile('<button ng-$name="abc = true; event = \$event"></button>'); |
- _.triggerEvent(_.rootElement, eventName, eventType); |
- expect(_.rootScope.context['abc']).toEqual(true); |
- expect(_.rootScope.context['event'] is dom.UIEvent).toEqual(true); |
- })); |
- }); |
-} |
- |
-main() { |
- addTest('abort'); |
- addTest('beforecopy'); |
- addTest('beforecopy'); |
- addTest('beforecut'); |
- addTest('beforepaste'); |
- addTest('blur'); |
- addTest('change'); |
- addTest('click'); |
- addTest('contextmenu'); |
- addTest('copy'); |
- addTest('cut'); |
- // The event name differs from the ng- directive name. |
- addTest('doubleclick', 'MouseEvent', 'dblclick'); |
- addTest('drag'); |
- addTest('dragend'); |
- addTest('dragenter'); |
- addTest('dragleave'); |
- addTest('dragover'); |
- addTest('dragstart'); |
- addTest('drop'); |
- addTest('error'); |
- addTest('focus'); |
- //addTest('fullscreenchange'); |
- //addTest('fullscreenerror'); |
- addTest('input'); |
- addTest('invalid'); |
- addTest('keydown', 'KeyboardEvent'); |
- addTest('keypress', 'KeyboardEvent'); |
- addTest('keyup', 'KeyboardEvent'); |
- addTest('load'); |
- addTest('mousedown'); |
- addTest('mouseenter'); |
- addTest('mouseleave'); |
- addTest('mousemove'); |
- addTest('mouseout'); |
- addTest('mouseover'); |
- addTest('mouseup'); |
- addTest('mousewheel', 'MouseEvent', 'wheel'); |
- addTest('paste'); |
- addTest('reset'); |
- addTest('scroll'); |
- addTest('search'); |
- addTest('select'); |
- addTest('selectstart'); |
- //addTest('speechchange'); |
- addTest('submit'); |
- // These should be of type TouchEvent but that causes the tests to fail. |
- // They pass as a MouseEvent. |
- //addTest('touchcancel'/*, 'TouchEvent'*/); |
- addTest('touchenter'/*, 'TouchEvent'*/); |
- addTest('touchleave'/*, 'TouchEvent'*/); |
- addTest('touchend'/*, 'TouchEvent'*/); |
- addTest('touchmove'/*, 'TouchEvent'*/); |
- addTest('touchstart'/*, 'TouchEvent'*/); |
- addTest('transitionend'); |
-} |