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

Unified Diff: third_party/pkg/angular/test/directive/ng_events_spec.dart

Issue 1058283006: Update pubspecs and dependencies to get pkgbuild tests working. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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: 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');
-}
« no previous file with comments | « third_party/pkg/angular/test/directive/ng_cloak_spec.dart ('k') | third_party/pkg/angular/test/directive/ng_form_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698