@@ -265,18 +265,21 @@ describe('ngClick (touch)', function() {
265
265
expect ( $rootScope . tapped ) . toBe ( true ) ;
266
266
} ) ) ;
267
267
268
- it ( 'should click when target element is an SVG' , inject (
269
- function ( $rootScope , $compile , $rootElement ) {
270
- element = $compile ( '<svg ng-click="tapped = true"></svg>' ) ( $rootScope ) ;
271
- $rootElement . append ( element ) ;
272
- $rootScope . $digest ( ) ;
268
+ if ( ! / \b E d g e \/ / . test ( window . navigator . userAgent ) ) {
269
+ // Edge cannot blur svg elements
270
+ it ( 'should click when target element is an SVG' , inject (
271
+ function ( $rootScope , $compile , $rootElement ) {
272
+ element = $compile ( '<svg ng-click="tapped = true"></svg>' ) ( $rootScope ) ;
273
+ $rootElement . append ( element ) ;
274
+ $rootScope . $digest ( ) ;
273
275
274
- browserTrigger ( element , 'touchstart' ) ;
275
- browserTrigger ( element , 'touchend' ) ;
276
- browserTrigger ( element , 'click' , { x :1 , y :1 } ) ;
276
+ browserTrigger ( element , 'touchstart' ) ;
277
+ browserTrigger ( element , 'touchend' ) ;
278
+ browserTrigger ( element , 'click' , { x :1 , y :1 } ) ;
277
279
278
- expect ( $rootScope . tapped ) . toEqual ( true ) ;
279
- } ) ) ;
280
+ expect ( $rootScope . tapped ) . toEqual ( true ) ;
281
+ } ) ) ;
282
+ }
280
283
281
284
describe ( 'the clickbuster' , function ( ) {
282
285
var element1 , element2 ;
0 commit comments