Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit b88e637

Browse files
josephperrottSplaktar
authored andcommitted
test: update test name to removal usage of blacklist
1 parent 1babe8c commit b88e637

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/services/aria/aria.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ describe('$mdAria service', function() {
141141
expect($mdAria.parentHasAriaLabel(imgElement)).toBe(true);
142142
}));
143143

144-
it('should blacklist parent of element based on role', inject(function($compile, $rootScope, $log, $mdAria) {
144+
it('should prevent aria-label on a parent of element based on role', inject(function($compile, $rootScope, $log, $mdAria) {
145145
var container = $compile('<button role="log" aria-label="hello"><img></img></button>')($rootScope);
146146
var imgElement = container.find('img');
147147
expect($mdAria.hasAriaLabel(imgElement)).toBe(false);
148148
expect($mdAria.parentHasAriaLabel(imgElement)).toBe(false);
149149
}));
150150

151-
it('should blacklist parent of element based on tagName', inject(function($compile, $rootScope, $log, $mdAria) {
151+
it('should prevent aria-label on a parent of element based on tagName', inject(function($compile, $rootScope, $log, $mdAria) {
152152
var container = $compile('<span aria-label="hello"><img></img></span>')($rootScope);
153153
var imgElement = container.find('img');
154154
expect($mdAria.hasAriaLabel(imgElement)).toBe(false);
@@ -182,4 +182,4 @@ describe('$mdAria service', function() {
182182

183183
})
184184

185-
});
185+
});

0 commit comments

Comments
 (0)