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

Commit 0930d9d

Browse files
committed
chore($sniffer): replace remaining supportsTransitions/supportsAnimations flags inside tests
1 parent 3e4d43b commit 0930d9d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/ng/animatorSpec.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ describe("$animator", function() {
323323
expect(element.css('display')).toBe('none');
324324

325325
animator.show(element);
326-
if ($sniffer.supportsAnimations) {
326+
if ($sniffer.animations) {
327327
window.setTimeout.expect(1).process();
328328
window.setTimeout.expect(4000).process();
329329
}
@@ -345,7 +345,7 @@ describe("$animator", function() {
345345
expect(element.css('display')).toBe('none');
346346

347347
animator.show(element);
348-
if ($sniffer.supportsAnimations) {
348+
if ($sniffer.animations) {
349349
window.setTimeout.expect(1).process();
350350
window.setTimeout.expect(6000).process();
351351
}
@@ -367,7 +367,7 @@ describe("$animator", function() {
367367
expect(element.css('display')).toBe('none');
368368

369369
animator.show(element);
370-
if ($sniffer.supportsAnimations) {
370+
if ($sniffer.animations) {
371371
window.setTimeout.expect(1).process();
372372
window.setTimeout.expect(2000).process();
373373
}
@@ -391,7 +391,7 @@ describe("$animator", function() {
391391
expect(element.css('display')).toBe('none');
392392

393393
animator.show(element);
394-
if ($sniffer.supportsTransitions) {
394+
if ($sniffer.transitions) {
395395
window.setTimeout.expect(1).process();
396396
window.setTimeout.expect(20000).process();
397397
}
@@ -435,7 +435,7 @@ describe("$animator", function() {
435435
expect(element.css('display')).toBe('none');
436436

437437
animator.show(element);
438-
if ($sniffer.supportsTransitions) {
438+
if ($sniffer.transitions) {
439439
window.setTimeout.expect(1).process();
440440
window.setTimeout.expect(1000).process();
441441
}
@@ -451,7 +451,7 @@ describe("$animator", function() {
451451
});
452452
element.css('display','none');
453453
animator.show(element);
454-
if ($sniffer.supportsTransitions) {
454+
if ($sniffer.transitions) {
455455
window.setTimeout.expect(1).process();
456456
window.setTimeout.expect(2000).process();
457457
}

0 commit comments

Comments
 (0)