@@ -272,6 +272,37 @@ describe('$aria', function() {
272
272
compileElement ( '<input type="range" ng-model="val"></div>' ) ;
273
273
expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
274
274
} ) ;
275
+
276
+ it ( 'should not add a role to a native select' , function ( ) {
277
+ compileElement ( '<select type="checkbox" ng-model="val"></select>' ) ;
278
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
279
+ } ) ;
280
+
281
+ it ( 'should not add a role to a native textarea element' , function ( ) {
282
+ compileElement ( '<textarea type="checkbox" ng-model="val"></textarea>' ) ;
283
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
284
+ } ) ;
285
+
286
+ it ( 'should not add a role to a native button element' , function ( ) {
287
+ compileElement ( '<button ng-click="doClick()"></button>' ) ;
288
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
289
+ } ) ;
290
+
291
+ it ( 'should not add a role to a native summary element' , function ( ) {
292
+ compileElement ( '<summary ng-click="doClick()"></summary>' ) ;
293
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
294
+ } ) ;
295
+
296
+ it ( 'should not add a role to a native details element' , function ( ) {
297
+ compileElement ( '<details ng-click="doClick()"></details>' ) ;
298
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
299
+ } ) ;
300
+
301
+ it ( 'should not add a role to a native a element' , function ( ) {
302
+ compileElement ( '<a ng-click="doClick()"></a>' ) ;
303
+ expect ( element . attr ( 'role' ) ) . toBe ( undefined ) ;
304
+ } ) ;
305
+
275
306
} ) ;
276
307
277
308
describe ( 'aria-checked when disabled' , function ( ) {
0 commit comments