11import { waitForAsync , TestBed } from '@angular/core/testing' ;
2- import { CommonModule } from '@angular/common' ;
32import { By } from '@angular/platform-browser' ;
43import { Component , ElementRef , ViewChild , ViewEncapsulation , signal } from '@angular/core' ;
54import { MatProgressSpinnerModule } from './module' ;
@@ -10,7 +9,6 @@ describe('MatProgressSpinner', () => {
109 TestBed . configureTestingModule ( {
1110 imports : [
1211 MatProgressSpinnerModule ,
13- CommonModule ,
1412 BasicProgressSpinner ,
1513 IndeterminateProgressSpinner ,
1614 ProgressSpinnerWithValueAndBoundMode ,
@@ -398,14 +396,14 @@ describe('MatProgressSpinner', () => {
398396@Component ( {
399397 template : '<mat-progress-spinner></mat-progress-spinner>' ,
400398 standalone : true ,
401- imports : [ MatProgressSpinnerModule , CommonModule ] ,
399+ imports : [ MatProgressSpinnerModule ] ,
402400} )
403401class BasicProgressSpinner { }
404402
405403@Component ( {
406404 template : '<mat-progress-spinner [strokeWidth]="strokeWidth"></mat-progress-spinner>' ,
407405 standalone : true ,
408- imports : [ MatProgressSpinnerModule , CommonModule ] ,
406+ imports : [ MatProgressSpinnerModule ] ,
409407} )
410408class ProgressSpinnerCustomStrokeWidth {
411409 strokeWidth : number ;
@@ -414,7 +412,7 @@ class ProgressSpinnerCustomStrokeWidth {
414412@Component ( {
415413 template : '<mat-progress-spinner [diameter]="diameter"></mat-progress-spinner>' ,
416414 standalone : true ,
417- imports : [ MatProgressSpinnerModule , CommonModule ] ,
415+ imports : [ MatProgressSpinnerModule ] ,
418416} )
419417class ProgressSpinnerCustomDiameter {
420418 diameter : number ;
@@ -423,14 +421,14 @@ class ProgressSpinnerCustomDiameter {
423421@Component ( {
424422 template : '<mat-progress-spinner mode="indeterminate"></mat-progress-spinner>' ,
425423 standalone : true ,
426- imports : [ MatProgressSpinnerModule , CommonModule ] ,
424+ imports : [ MatProgressSpinnerModule ] ,
427425} )
428426class IndeterminateProgressSpinner { }
429427
430428@Component ( {
431429 template : '<mat-progress-spinner [value]="value()" [mode]="mode()"></mat-progress-spinner>' ,
432430 standalone : true ,
433- imports : [ MatProgressSpinnerModule , CommonModule ] ,
431+ imports : [ MatProgressSpinnerModule ] ,
434432} )
435433class ProgressSpinnerWithValueAndBoundMode {
436434 mode = signal ( 'indeterminate' ) ;
@@ -441,7 +439,7 @@ class ProgressSpinnerWithValueAndBoundMode {
441439 template : `
442440 <mat-spinner [color]="color()"></mat-spinner>` ,
443441 standalone : true ,
444- imports : [ MatProgressSpinnerModule , CommonModule ] ,
442+ imports : [ MatProgressSpinnerModule ] ,
445443} )
446444class SpinnerWithColor {
447445 color = signal ( 'primary' ) ;
@@ -451,7 +449,7 @@ class SpinnerWithColor {
451449 template : `
452450 <mat-progress-spinner value="50" [color]="color()"></mat-progress-spinner>` ,
453451 standalone : true ,
454- imports : [ MatProgressSpinnerModule , CommonModule ] ,
452+ imports : [ MatProgressSpinnerModule ] ,
455453} )
456454class ProgressSpinnerWithColor {
457455 color = signal ( 'primary' ) ;
@@ -462,7 +460,7 @@ class ProgressSpinnerWithColor {
462460 <mat-progress-spinner value="25" diameter="37" strokeWidth="11"></mat-progress-spinner>
463461 ` ,
464462 standalone : true ,
465- imports : [ MatProgressSpinnerModule , CommonModule ] ,
463+ imports : [ MatProgressSpinnerModule ] ,
466464} )
467465class ProgressSpinnerWithStringValues { }
468466
@@ -472,7 +470,7 @@ class ProgressSpinnerWithStringValues {}
472470 ` ,
473471 encapsulation : ViewEncapsulation . ShadowDom ,
474472 standalone : true ,
475- imports : [ MatProgressSpinnerModule , CommonModule ] ,
473+ imports : [ MatProgressSpinnerModule ] ,
476474} )
477475class IndeterminateSpinnerInShadowDom {
478476 diameter : number ;
@@ -488,7 +486,7 @@ class IndeterminateSpinnerInShadowDom {
488486 ` ,
489487 encapsulation : ViewEncapsulation . ShadowDom ,
490488 standalone : true ,
491- imports : [ MatProgressSpinnerModule , CommonModule ] ,
489+ imports : [ MatProgressSpinnerModule ] ,
492490} )
493491class IndeterminateSpinnerInShadowDomWithNgIf {
494492 @ViewChild ( MatProgressSpinner , { read : ElementRef } )
@@ -500,6 +498,6 @@ class IndeterminateSpinnerInShadowDomWithNgIf {
500498@Component ( {
501499 template : '<mat-spinner mode="determinate"></mat-spinner>' ,
502500 standalone : true ,
503- imports : [ MatProgressSpinnerModule , CommonModule ] ,
501+ imports : [ MatProgressSpinnerModule ] ,
504502} )
505503class SpinnerWithMode { }
0 commit comments