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

Commit 9b94169

Browse files
committed
style(animateSpec): remove ws
1 parent e848099 commit 9b94169

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/ngAnimate/animateSpec.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe("ngAnimate", function() {
299299
expect(child).toBeHidden(); //hides instantly
300300

301301
//lets change this to prove that done doesn't fire anymore for the previous hide() operation
302-
child.css('display','block');
302+
child.css('display','block');
303303
child.removeClass('ng-hide');
304304

305305
$timeout.flushNext(0);
@@ -389,7 +389,7 @@ describe("ngAnimate", function() {
389389
element.addClass('custom-delay custom-long-delay');
390390
$rootScope.$digest();
391391

392-
$animate.removeClass(element, 'ng-hide');
392+
$animate.removeClass(element, 'ng-hide');
393393

394394
if($sniffer.transitions) {
395395
$timeout.flushNext(0);
@@ -446,9 +446,9 @@ describe("ngAnimate", function() {
446446
it("should properly detect and make use of CSS Animations with multiple iterations",
447447
inject(function($animate, $rootScope, $compile, $sniffer, $timeout) {
448448

449-
var style = 'animation-duration: 2s;' +
449+
var style = 'animation-duration: 2s;' +
450450
'animation-iteration-count: 3;' +
451-
vendorPrefix + 'animation-duration: 2s;' +
451+
vendorPrefix + 'animation-duration: 2s;' +
452452
vendorPrefix + 'animation-iteration-count: 3;';
453453

454454
ss.addRule('.ng-hide-add', style);
@@ -470,9 +470,9 @@ describe("ngAnimate", function() {
470470
it("should fallback to the animation duration if an infinite iteration is provided",
471471
inject(function($animate, $rootScope, $compile, $sniffer, $timeout) {
472472

473-
var style = 'animation-duration: 2s;' +
473+
var style = 'animation-duration: 2s;' +
474474
'animation-iteration-count: infinite;' +
475-
vendorPrefix + 'animation-duration: 2s;' +
475+
vendorPrefix + 'animation-duration: 2s;' +
476476
vendorPrefix + 'animation-iteration-count: infinite;';
477477

478478
ss.addRule('.ng-hide-add', style);
@@ -494,10 +494,10 @@ describe("ngAnimate", function() {
494494
it("should consider the animation delay is provided",
495495
inject(function($animate, $rootScope, $compile, $sniffer, $timeout) {
496496

497-
var style = 'animation-duration: 2s;' +
497+
var style = 'animation-duration: 2s;' +
498498
'animation-delay: 10s;' +
499499
'animation-iteration-count: 5;' +
500-
vendorPrefix + 'animation-duration: 2s;' +
500+
vendorPrefix + 'animation-duration: 2s;' +
501501
vendorPrefix + 'animation-delay: 10s;' +
502502
vendorPrefix + 'animation-iteration-count: 5;';
503503

@@ -572,7 +572,7 @@ describe("ngAnimate", function() {
572572
it("should skip transitions if disabled and run when enabled",
573573
inject(function($animate, $rootScope, $compile, $sniffer, $timeout) {
574574

575-
var style = 'transition: 1s linear all;' +
575+
var style = 'transition: 1s linear all;' +
576576
vendorPrefix + 'transition: 1s linear all';
577577

578578
ss.addRule('.ng-hide-add', style);
@@ -662,9 +662,9 @@ describe("ngAnimate", function() {
662662

663663
it("should select the highest duration and delay",
664664
inject(function($animate, $rootScope, $compile, $sniffer, $timeout) {
665-
var style = 'transition:1s linear all 2s;' +
666-
vendorPrefix + 'transition:1s linear all 2s;' +
667-
'animation:my_ani 10s 1s;' +
665+
var style = 'transition:1s linear all 2s;' +
666+
vendorPrefix + 'transition:1s linear all 2s;' +
667+
'animation:my_ani 10s 1s;' +
668668
vendorPrefix + 'animation:my_ani 10s 1s;';
669669

670670
ss.addRule('.ng-hide-add', style);
@@ -1272,7 +1272,7 @@ describe("ngAnimate", function() {
12721272
}));
12731273
});
12741274
});
1275-
1275+
12761276
var $rootElement, $document, vendorPrefix;
12771277
beforeEach(module(function($provide) {
12781278
return function(_$rootElement_, _$document_, $animate, $sniffer) {
@@ -1293,7 +1293,7 @@ describe("ngAnimate", function() {
12931293
it("should properly animate and parse CSS3 transitions",
12941294
inject(function($compile, $rootScope, $animate, $sniffer, $timeout) {
12951295

1296-
ss.addRule('.ng-enter', 'transition:1s linear all;' +
1296+
ss.addRule('.ng-enter', 'transition:1s linear all;' +
12971297
vendorPrefix + 'transition:1s linear all');
12981298

12991299
var element = html($compile('<div>...</div>')($rootScope));
@@ -1341,7 +1341,7 @@ describe("ngAnimate", function() {
13411341
$sniffer.animations = false;
13421342
$sniffer.transitions = false;
13431343

1344-
ss.addRule('.ng-enter', 'some_animation 4s linear 1s 2 alternate;' +
1344+
ss.addRule('.ng-enter', 'some_animation 4s linear 1s 2 alternate;' +
13451345
vendorPrefix + 'animation: some_animation 4s linear 1s 2 alternate');
13461346

13471347
var element = html($compile('<div>...</div>')($rootScope));
@@ -1365,7 +1365,7 @@ describe("ngAnimate", function() {
13651365
})
13661366
inject(function($compile, $rootScope, $animate, $sniffer, $timeout) {
13671367

1368-
ss.addRule('.ng-enter', 'transition: 1s linear all;' +
1368+
ss.addRule('.ng-enter', 'transition: 1s linear all;' +
13691369
vendorPrefix + 'transition: 1s linear all');
13701370

13711371
var element = html($compile('<div>...</div>')($rootScope));

0 commit comments

Comments
 (0)