1
1
import { waitForAsync , TestBed } from '@angular/core/testing' ;
2
- import { CommonModule } from '@angular/common' ;
3
2
import { By } from '@angular/platform-browser' ;
4
3
import { Component , ElementRef , ViewChild , ViewEncapsulation , signal } from '@angular/core' ;
5
4
import { MatProgressSpinnerModule } from './module' ;
@@ -10,7 +9,6 @@ describe('MatProgressSpinner', () => {
10
9
TestBed . configureTestingModule ( {
11
10
imports : [
12
11
MatProgressSpinnerModule ,
13
- CommonModule ,
14
12
BasicProgressSpinner ,
15
13
IndeterminateProgressSpinner ,
16
14
ProgressSpinnerWithValueAndBoundMode ,
@@ -398,14 +396,14 @@ describe('MatProgressSpinner', () => {
398
396
@Component ( {
399
397
template : '<mat-progress-spinner></mat-progress-spinner>' ,
400
398
standalone : true ,
401
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
399
+ imports : [ MatProgressSpinnerModule ] ,
402
400
} )
403
401
class BasicProgressSpinner { }
404
402
405
403
@Component ( {
406
404
template : '<mat-progress-spinner [strokeWidth]="strokeWidth"></mat-progress-spinner>' ,
407
405
standalone : true ,
408
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
406
+ imports : [ MatProgressSpinnerModule ] ,
409
407
} )
410
408
class ProgressSpinnerCustomStrokeWidth {
411
409
strokeWidth : number ;
@@ -414,7 +412,7 @@ class ProgressSpinnerCustomStrokeWidth {
414
412
@Component ( {
415
413
template : '<mat-progress-spinner [diameter]="diameter"></mat-progress-spinner>' ,
416
414
standalone : true ,
417
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
415
+ imports : [ MatProgressSpinnerModule ] ,
418
416
} )
419
417
class ProgressSpinnerCustomDiameter {
420
418
diameter : number ;
@@ -423,14 +421,14 @@ class ProgressSpinnerCustomDiameter {
423
421
@Component ( {
424
422
template : '<mat-progress-spinner mode="indeterminate"></mat-progress-spinner>' ,
425
423
standalone : true ,
426
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
424
+ imports : [ MatProgressSpinnerModule ] ,
427
425
} )
428
426
class IndeterminateProgressSpinner { }
429
427
430
428
@Component ( {
431
429
template : '<mat-progress-spinner [value]="value()" [mode]="mode()"></mat-progress-spinner>' ,
432
430
standalone : true ,
433
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
431
+ imports : [ MatProgressSpinnerModule ] ,
434
432
} )
435
433
class ProgressSpinnerWithValueAndBoundMode {
436
434
mode = signal ( 'indeterminate' ) ;
@@ -441,7 +439,7 @@ class ProgressSpinnerWithValueAndBoundMode {
441
439
template : `
442
440
<mat-spinner [color]="color()"></mat-spinner>` ,
443
441
standalone : true ,
444
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
442
+ imports : [ MatProgressSpinnerModule ] ,
445
443
} )
446
444
class SpinnerWithColor {
447
445
color = signal ( 'primary' ) ;
@@ -451,7 +449,7 @@ class SpinnerWithColor {
451
449
template : `
452
450
<mat-progress-spinner value="50" [color]="color()"></mat-progress-spinner>` ,
453
451
standalone : true ,
454
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
452
+ imports : [ MatProgressSpinnerModule ] ,
455
453
} )
456
454
class ProgressSpinnerWithColor {
457
455
color = signal ( 'primary' ) ;
@@ -462,7 +460,7 @@ class ProgressSpinnerWithColor {
462
460
<mat-progress-spinner value="25" diameter="37" strokeWidth="11"></mat-progress-spinner>
463
461
` ,
464
462
standalone : true ,
465
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
463
+ imports : [ MatProgressSpinnerModule ] ,
466
464
} )
467
465
class ProgressSpinnerWithStringValues { }
468
466
@@ -472,7 +470,7 @@ class ProgressSpinnerWithStringValues {}
472
470
` ,
473
471
encapsulation : ViewEncapsulation . ShadowDom ,
474
472
standalone : true ,
475
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
473
+ imports : [ MatProgressSpinnerModule ] ,
476
474
} )
477
475
class IndeterminateSpinnerInShadowDom {
478
476
diameter : number ;
@@ -488,7 +486,7 @@ class IndeterminateSpinnerInShadowDom {
488
486
` ,
489
487
encapsulation : ViewEncapsulation . ShadowDom ,
490
488
standalone : true ,
491
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
489
+ imports : [ MatProgressSpinnerModule ] ,
492
490
} )
493
491
class IndeterminateSpinnerInShadowDomWithNgIf {
494
492
@ViewChild ( MatProgressSpinner , { read : ElementRef } )
@@ -500,6 +498,6 @@ class IndeterminateSpinnerInShadowDomWithNgIf {
500
498
@Component ( {
501
499
template : '<mat-spinner mode="determinate"></mat-spinner>' ,
502
500
standalone : true ,
503
- imports : [ MatProgressSpinnerModule , CommonModule ] ,
501
+ imports : [ MatProgressSpinnerModule ] ,
504
502
} )
505
503
class SpinnerWithMode { }
0 commit comments