`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPreview],
})
class DraggableInHorizontalFlexDropZoneWithMatchSizePreview {
@@ -5019,7 +5016,6 @@ const DROP_ZONE_FIXTURE_TEMPLATE = `
@Component({
template: DROP_ZONE_FIXTURE_TEMPLATE,
- standalone: true,
imports: [CdkDropList, CdkDrag, NgFor],
})
export class DraggableInDropZone implements AfterViewInit {
@@ -5059,7 +5055,6 @@ export class DraggableInDropZone implements AfterViewInit {
selector: 'draggable-in-on-push-zone',
template: DROP_ZONE_FIXTURE_TEMPLATE,
changeDetection: ChangeDetectionStrategy.OnPush,
- standalone: true,
imports: [CdkDropList, CdkDrag, NgFor],
})
class DraggableInOnPushDropZone extends DraggableInDropZone {}
@@ -5071,7 +5066,6 @@ class DraggableInOnPushDropZone extends DraggableInDropZone {}
`,
- standalone: true,
imports: [CdkDropListGroup, DraggableInOnPushDropZone],
})
class ConnectedDropListsInOnPush {}
@@ -5088,7 +5082,6 @@ class ConnectedDropListsInOnPush {}
margin: 10vw 0 0 10vw;
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, NgFor],
})
export class DraggableInScrollableVerticalDropZone extends DraggableInDropZone {
@@ -5117,7 +5110,6 @@ export class DraggableInScrollableVerticalDropZone extends DraggableInDropZone {
margin: 10vw 0 0 10vw;
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, NgFor, CdkScrollable],
})
class DraggableInScrollableParentContainer extends DraggableInDropZone implements AfterViewInit {
@@ -5165,7 +5157,6 @@ class DraggableInScrollableParentContainer extends DraggableInDropZone implement
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableInDropZoneWithContainer extends DraggableInDropZone {}
@@ -5196,7 +5187,6 @@ class DraggableInDropZoneWithContainer extends DraggableInDropZone {}
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPreview, NgIf],
})
class DraggableInDropZoneWithCustomPreview {
@@ -5231,7 +5221,6 @@ class DraggableInDropZoneWithCustomPreview {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPreview],
})
class DraggableInDropZoneWithCustomTextOnlyPreview {
@@ -5254,7 +5243,6 @@ class DraggableInDropZoneWithCustomTextOnlyPreview {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPreview],
})
class DraggableInDropZoneWithCustomMultiNodePreview {
@@ -5287,7 +5275,6 @@ class DraggableInDropZoneWithCustomMultiNodePreview {
height: ${ITEM_HEIGHT * 3}px;
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPlaceholder, NgClass],
})
class DraggableInDropZoneWithCustomPlaceholder {
@@ -5309,7 +5296,6 @@ class DraggableInDropZoneWithCustomPlaceholder {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPlaceholder],
})
class DraggableInDropZoneWithCustomTextOnlyPlaceholder {
@@ -5331,7 +5317,6 @@ class DraggableInDropZoneWithCustomTextOnlyPlaceholder {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDragPlaceholder],
})
class DraggableInDropZoneWithCustomMultiNodePlaceholder {
@@ -5407,7 +5392,6 @@ const CONNECTED_DROP_ZONES_TEMPLATE = `
encapsulation: ViewEncapsulation.None,
styles: CONNECTED_DROP_ZONES_STYLES,
template: CONNECTED_DROP_ZONES_TEMPLATE,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
export class ConnectedDropZones implements AfterViewInit {
@@ -5442,7 +5426,6 @@ export class ConnectedDropZones implements AfterViewInit {
encapsulation: ViewEncapsulation.ShadowDom,
styles: CONNECTED_DROP_ZONES_STYLES,
template: `@if (true) {${CONNECTED_DROP_ZONES_TEMPLATE}}`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class ConnectedDropZonesInsideShadowRootWithNgIf extends ConnectedDropZones {}
@@ -5484,7 +5467,6 @@ class ConnectedDropZonesInsideShadowRootWithNgIf extends ConnectedDropZones {}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag, CdkDropListGroup],
})
class ConnectedDropZonesViaGroupDirective extends ConnectedDropZones {
@@ -5524,7 +5506,6 @@ class ConnectedDropZonesViaGroupDirective extends ConnectedDropZones {
Two
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class ConnectedDropZonesWithSingleItems {
@@ -5545,7 +5526,6 @@ class ConnectedDropZonesWithSingleItems {
`,
- standalone: true,
imports: [CdkDropList, CdkDropListGroup],
})
class NestedDropListGroups {
@@ -5558,14 +5538,12 @@ class NestedDropListGroups {
template: `
`,
- standalone: true,
imports: [CdkDropList],
})
class DropListOnNgContainer {}
@Component({
changeDetection: ChangeDetectionStrategy.OnPush,
- standalone: true,
imports: [CdkDropList, CdkDrag],
template: `
@@ -5599,7 +5577,6 @@ class DraggableInDropZoneWithoutEvents {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
changeDetection: ChangeDetectionStrategy.OnPush,
})
@@ -5629,7 +5606,6 @@ class WrappedDropContainerComponent {
`,
- standalone: true,
imports: [CdkDropListGroup, WrappedDropContainerComponent],
})
class ConnectedWrappedDropZones {
@@ -5660,7 +5636,6 @@ class ConnectedWrappedDropZones {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithCanvasInDropZone extends DraggableInDropZone implements AfterViewInit {
@@ -5702,7 +5677,6 @@ class DraggableWithCanvasInDropZone extends DraggableInDropZone implements After
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithInvalidCanvasInDropZone extends DraggableInDropZone {}
@@ -5742,7 +5716,6 @@ class DraggableWithInvalidCanvasInDropZone extends DraggableInDropZone {}
(cdkDragReleased)="itemDragReleasedSpy($event)">
`,
- standalone: true,
imports: [CdkDrag],
})
class NestedDragsComponent {
@@ -5797,7 +5770,6 @@ class NestedDragsComponent {
`,
- standalone: true,
imports: [CdkDrag, NgTemplateOutlet],
})
class NestedDragsThroughTemplate {
@@ -5823,7 +5795,6 @@ class NestedDragsThroughTemplate {
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class NestedDropZones {
@@ -5835,7 +5806,6 @@ class NestedDropZones {
@Component({
template: ``,
- standalone: true,
imports: [CdkDropList],
})
class PlainStandaloneDropList {
@@ -5878,7 +5848,6 @@ class PlainStandaloneDropList {
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class ConnectedDropZonesWithIntermediateSibling extends ConnectedDropZones {}
@@ -5911,7 +5880,6 @@ class ConnectedDropZonesWithIntermediateSibling extends ConnectedDropZones {}
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithInputsInDropZone extends DraggableInDropZone {
@@ -5934,7 +5902,6 @@ class DraggableWithInputsInDropZone extends DraggableInDropZone {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithRadioInputsInDropZone {
@@ -5986,7 +5953,6 @@ class DraggableWithRadioInputsInDropZone {
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class ConnectedDropZonesWithAlternateContainer extends ConnectedDropZones {
@@ -6009,7 +5975,6 @@ class ConnectedDropZonesWithAlternateContainer extends ConnectedDropZones {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithInvalidAlternateContainer {
@@ -6032,7 +5997,6 @@ class DraggableWithInvalidAlternateContainer {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableWithMissingAlternateContainer {
diff --git a/src/cdk/drag-drop/directives/mixed-drop-list.spec.ts b/src/cdk/drag-drop/directives/mixed-drop-list.spec.ts
index 8deaae351dd5..ae2f7b480a99 100644
--- a/src/cdk/drag-drop/directives/mixed-drop-list.spec.ts
+++ b/src/cdk/drag-drop/directives/mixed-drop-list.spec.ts
@@ -131,7 +131,6 @@ function getSortedSiblings(item: Element) {
}
`,
- standalone: true,
imports: [CdkDropList, CdkDrag],
})
class DraggableInHorizontalWrappingDropZone {
diff --git a/src/cdk/drag-drop/directives/standalone-drag.spec.ts b/src/cdk/drag-drop/directives/standalone-drag.spec.ts
index c4449abe204e..f233437df76e 100644
--- a/src/cdk/drag-drop/directives/standalone-drag.spec.ts
+++ b/src/cdk/drag-drop/directives/standalone-drag.spec.ts
@@ -1767,7 +1767,6 @@ describe('Standalone CdkDrag', () => {
style="width: 100px; height: 100px; background: red;">
`,
- standalone: true,
imports: [CdkDrag],
})
class StandaloneDraggable {
@@ -1795,7 +1794,6 @@ class StandaloneDraggable {
template: `
`,
- standalone: true,
imports: [CdkDrag],
})
class StandaloneDraggableWithOnPush {
@@ -1810,7 +1808,6 @@ class StandaloneDraggableWithOnPush {
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class StandaloneDraggableWithHandle {
@@ -1832,7 +1829,6 @@ class StandaloneDraggableWithHandle {
style="width: 10px; height: 10px; background: green;">
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class StandaloneDraggableWithPreDisabledHandle {
@@ -1853,7 +1849,6 @@ class StandaloneDraggableWithPreDisabledHandle {
}
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class StandaloneDraggableWithDelayedHandle {
@@ -1869,7 +1864,6 @@ class StandaloneDraggableWithDelayedHandle {
@Component({
selector: 'passthrough-component',
template: '',
- standalone: true,
})
class PassthroughComponent {}
@@ -1886,7 +1880,6 @@ class PassthroughComponent {}
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle, PassthroughComponent],
})
class StandaloneDraggableWithIndirectHandle {
@@ -1898,7 +1891,6 @@ class StandaloneDraggableWithIndirectHandle {
selector: 'shadow-wrapper',
template: '',
encapsulation: ViewEncapsulation.ShadowDom,
- standalone: true,
})
class ShadowWrapper {}
@@ -1912,7 +1904,6 @@ class ShadowWrapper {}
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle, ShadowWrapper],
})
class StandaloneDraggableWithShadowInsideHandle {
@@ -1938,7 +1929,6 @@ class StandaloneDraggableWithShadowInsideHandle {
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class StandaloneDraggableWithMultipleHandles {
@@ -1956,7 +1946,6 @@ class StandaloneDraggableWithMultipleHandles {
style="width: 100px; height: 100px; background: red;">
`,
- standalone: true,
imports: [CdkDrag],
})
class DraggableWithAlternateRoot {
@@ -1970,7 +1959,6 @@ class DraggableWithAlternateRoot {
template: `
`,
- standalone: true,
imports: [CdkDrag],
})
class DraggableOnNgContainer {}
@@ -1981,7 +1969,6 @@ class DraggableOnNgContainer {}
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class DragHandleOnNgContainer {}
@@ -1997,7 +1984,6 @@ class DragHandleOnNgContainer {}
style="width: 100px; height: 100px; background: red;">
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle],
})
class DraggableWithAlternateRootAndSelfHandle {
@@ -2014,7 +2000,6 @@ class DraggableWithAlternateRootAndSelfHandle {
`,
- standalone: true,
imports: [CdkDrag],
})
class DraggableNgContainerWithAlternateRoot {
@@ -2024,7 +2009,6 @@ class DraggableNgContainerWithAlternateRoot {
@Component({
template: ``,
- standalone: true,
imports: [CdkDrag],
})
class PlainStandaloneDraggable {
@@ -2042,7 +2026,6 @@ class PlainStandaloneDraggable {
`,
- standalone: true,
imports: [CdkDrag, CdkDragHandle, NgTemplateOutlet],
})
class StandaloneDraggableWithExternalTemplateHandle {
diff --git a/src/cdk/drag-drop/directives/standalone-drag.zone.spec.ts b/src/cdk/drag-drop/directives/standalone-drag.zone.spec.ts
index 50e9ba0eb46f..19fe5f7b2ce8 100644
--- a/src/cdk/drag-drop/directives/standalone-drag.zone.spec.ts
+++ b/src/cdk/drag-drop/directives/standalone-drag.zone.spec.ts
@@ -51,7 +51,6 @@ describe('Standalone CdkDrag Zone.js integration', () => {
style="width: 100px; height: 100px; background: red;">
`,
- standalone: true,
imports: [CdkDrag],
})
class StandaloneDraggable {
diff --git a/src/cdk/drag-drop/drag-drop-registry.spec.ts b/src/cdk/drag-drop/drag-drop-registry.spec.ts
index 935b94ba5908..9f878ca4f9aa 100644
--- a/src/cdk/drag-drop/drag-drop-registry.spec.ts
+++ b/src/cdk/drag-drop/drag-drop-registry.spec.ts
@@ -254,7 +254,6 @@ describe('DragDropRegistry', () => {
@Component({
template: ``,
- standalone: true,
imports: [DragDropModule],
})
class BlankComponent {}
diff --git a/src/cdk/drag-drop/drag-drop.spec.ts b/src/cdk/drag-drop/drag-drop.spec.ts
index 7cd74cd9c435..89f67d796dc8 100644
--- a/src/cdk/drag-drop/drag-drop.spec.ts
+++ b/src/cdk/drag-drop/drag-drop.spec.ts
@@ -35,7 +35,6 @@ describe('DragDrop', () => {
@Component({
template: '',
- standalone: true,
})
class TestComponent {
elementRef = inject>(ElementRef);
diff --git a/src/cdk/menu/menu-bar.spec.ts b/src/cdk/menu/menu-bar.spec.ts
index 03d3b7f993bd..10f0d7c1b895 100644
--- a/src/cdk/menu/menu-bar.spec.ts
+++ b/src/cdk/menu/menu-bar.spec.ts
@@ -1116,7 +1116,6 @@ describe('MenuBar', () => {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuBarRadioGroup {}
@@ -1152,7 +1151,6 @@ class MenuBarRadioGroup {}
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MultiMenuWithSubmenu {
@@ -1179,7 +1177,6 @@ class MultiMenuWithSubmenu {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuWithCheckboxes {
@@ -1207,7 +1204,6 @@ class MenuWithCheckboxes {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuWithRadioButtons {
@@ -1241,7 +1237,6 @@ class MenuWithRadioButtons {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuBarWithMenusAndInlineMenu {
diff --git a/src/cdk/menu/menu-group.spec.ts b/src/cdk/menu/menu-group.spec.ts
index 6c01b4439e90..4b0659e00011 100644
--- a/src/cdk/menu/menu-group.spec.ts
+++ b/src/cdk/menu/menu-group.spec.ts
@@ -103,7 +103,6 @@ describe('MenuGroup', () => {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class CheckboxMenu {
@@ -148,7 +147,6 @@ class CheckboxMenu {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuWithMultipleRadioGroups {
diff --git a/src/cdk/menu/menu-item-checkbox.spec.ts b/src/cdk/menu/menu-item-checkbox.spec.ts
index 0dea58151748..cadbb23762b5 100644
--- a/src/cdk/menu/menu-item-checkbox.spec.ts
+++ b/src/cdk/menu/menu-item-checkbox.spec.ts
@@ -100,7 +100,6 @@ describe('MenuItemCheckbox', () => {
@Component({
template: ``,
- standalone: true,
imports: [CdkMenuModule],
})
class SingleCheckboxButton {}
diff --git a/src/cdk/menu/menu-item-radio.spec.ts b/src/cdk/menu/menu-item-radio.spec.ts
index 9bfd95826c4c..5a7a77c59711 100644
--- a/src/cdk/menu/menu-item-radio.spec.ts
+++ b/src/cdk/menu/menu-item-radio.spec.ts
@@ -94,7 +94,6 @@ describe('MenuItemRadio', () => {
@Component({
template: ``,
- standalone: true,
imports: [CdkMenuModule],
})
class SimpleRadioButton {}
diff --git a/src/cdk/menu/menu-item.spec.ts b/src/cdk/menu/menu-item.spec.ts
index bc3ee5ac753a..0d20cdab6fb0 100644
--- a/src/cdk/menu/menu-item.spec.ts
+++ b/src/cdk/menu/menu-item.spec.ts
@@ -206,7 +206,6 @@ class MenuItemWithMultipleNestings {
@Component({
selector: 'mat-icon',
template: '',
- standalone: true,
imports: [CdkMenuModule],
})
class MatIcon {}
diff --git a/src/cdk/menu/menu-stack.spec.ts b/src/cdk/menu/menu-stack.spec.ts
index dca51dd9fc2f..e2e946869e3b 100644
--- a/src/cdk/menu/menu-stack.spec.ts
+++ b/src/cdk/menu/menu-stack.spec.ts
@@ -100,7 +100,6 @@ describe('MenuStack', () => {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MultiMenuWithSubmenu {
diff --git a/src/cdk/menu/menu.spec.ts b/src/cdk/menu/menu.spec.ts
index 08176e13521a..11e9b6bf5acd 100644
--- a/src/cdk/menu/menu.spec.ts
+++ b/src/cdk/menu/menu.spec.ts
@@ -520,7 +520,6 @@ describe('Menu', () => {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class MenuCheckboxGroup {
@@ -534,7 +533,6 @@ class MenuCheckboxGroup {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class InlineMenu {}
@@ -588,7 +586,6 @@ class InlineMenu {}
`,
- standalone: true,
imports: [CdkMenuModule],
})
class WithComplexNestedMenus {
@@ -649,7 +646,6 @@ class WithComplexNestedMenus {
`,
- standalone: true,
imports: [CdkMenuModule],
})
class WithComplexNestedMenusOnBottom {
diff --git a/src/cdk/menu/pointer-focus-tracker.spec.ts b/src/cdk/menu/pointer-focus-tracker.spec.ts
index 8aac6c578a18..12797c27cf76 100644
--- a/src/cdk/menu/pointer-focus-tracker.spec.ts
+++ b/src/cdk/menu/pointer-focus-tracker.spec.ts
@@ -99,7 +99,6 @@ describe('FocusMouseManger', () => {
@Component({
selector: 'wrapper',
template: ``,
- standalone: true,
})
class MockWrapper implements FocusableElement {
readonly _elementRef = inject>(ElementRef);
@@ -115,7 +114,6 @@ class MockWrapper implements FocusableElement {
}
`,
- standalone: true,
imports: [MockWrapper],
})
class MultiElementWithConditionalComponent implements AfterViewInit {
diff --git a/src/cdk/observers/observe-content.spec.ts b/src/cdk/observers/observe-content.spec.ts
index 709cf4c5850b..93f5b60491dc 100644
--- a/src/cdk/observers/observe-content.spec.ts
+++ b/src/cdk/observers/observe-content.spec.ts
@@ -274,7 +274,6 @@ describe('ContentObserver injectable', () => {
(cdkObserveContent)="doSomething()"
[cdkObserveContentDisabled]="disabled">{{text}}
`,
- standalone: true,
imports: [ObserversModule],
})
class ComponentWithTextContent {
@@ -285,7 +284,6 @@ class ComponentWithTextContent {
@Component({
template: ``,
- standalone: true,
imports: [ObserversModule],
})
class ComponentWithChildTextContent {
@@ -295,7 +293,6 @@ class ComponentWithChildTextContent {
@Component({
template: `{{text}}
`,
- standalone: true,
imports: [ObserversModule],
})
class ComponentWithDebouncedListener {
@@ -305,7 +302,6 @@ class ComponentWithDebouncedListener {
@Component({
template: `{{text}}
`,
- standalone: true,
imports: [ObserversModule],
})
class UnobservedComponentWithTextContent {
diff --git a/src/cdk/observers/private/shared-resize-observer.spec.ts b/src/cdk/observers/private/shared-resize-observer.spec.ts
index 7b6b3071eecb..73ef98a55ba8 100644
--- a/src/cdk/observers/private/shared-resize-observer.spec.ts
+++ b/src/cdk/observers/private/shared-resize-observer.spec.ts
@@ -138,7 +138,6 @@ describe('SharedResizeObserver', () => {
`,
- standalone: true,
})
export class TestComponent {
@ViewChild('el1') el1: ElementRef;
diff --git a/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts b/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts
index a15c226ca71b..afc1f93512b6 100644
--- a/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts
+++ b/src/cdk/overlay/dispatchers/overlay-keyboard-dispatcher.spec.ts
@@ -199,7 +199,6 @@ describe('OverlayKeyboardDispatcher', () => {
@Component({
template: 'Hello',
- standalone: true,
imports: [OverlayModule],
})
class TestComponent {}
diff --git a/src/cdk/overlay/dispatchers/overlay-outside-click-dispatcher.spec.ts b/src/cdk/overlay/dispatchers/overlay-outside-click-dispatcher.spec.ts
index b738ab16194e..e97458f96a17 100644
--- a/src/cdk/overlay/dispatchers/overlay-outside-click-dispatcher.spec.ts
+++ b/src/cdk/overlay/dispatchers/overlay-outside-click-dispatcher.spec.ts
@@ -420,7 +420,6 @@ describe('OverlayOutsideClickDispatcher', () => {
@Component({
template: 'Hello',
- standalone: true,
imports: [OverlayModule],
})
class TestComponent {}
diff --git a/src/cdk/overlay/fullscreen-overlay-container.spec.ts b/src/cdk/overlay/fullscreen-overlay-container.spec.ts
index 38680cefbe6f..0d18a687b77f 100644
--- a/src/cdk/overlay/fullscreen-overlay-container.spec.ts
+++ b/src/cdk/overlay/fullscreen-overlay-container.spec.ts
@@ -113,7 +113,6 @@ describe('FullscreenOverlayContainer', () => {
@Component({
template: `Cake`,
providers: [Overlay],
- standalone: true,
imports: [TemplatePortalDirective],
})
class TestComponentWithTemplatePortals {
diff --git a/src/cdk/overlay/overlay-container.spec.ts b/src/cdk/overlay/overlay-container.spec.ts
index 47b586c6c2cd..5f41778c0f1a 100644
--- a/src/cdk/overlay/overlay-container.spec.ts
+++ b/src/cdk/overlay/overlay-container.spec.ts
@@ -89,7 +89,6 @@ describe('OverlayContainer', () => {
@Component({
template: `Cake`,
providers: [Overlay],
- standalone: true,
imports: [CdkPortal],
})
class TestComponentWithTemplatePortals {
diff --git a/src/cdk/overlay/overlay-directives.spec.ts b/src/cdk/overlay/overlay-directives.spec.ts
index e562e01c3fdb..43f9272d1b61 100644
--- a/src/cdk/overlay/overlay-directives.spec.ts
+++ b/src/cdk/overlay/overlay-directives.spec.ts
@@ -783,7 +783,6 @@ describe('Overlay directives', () => {
[cdkConnectedOverlayTransformOriginOn]="transformOriginSelector">
Menu content
`,
- standalone: true,
imports: [OverlayModule],
})
class ConnectedOverlayDirectiveTest {
@@ -825,7 +824,6 @@ class ConnectedOverlayDirectiveTest {
template: `
Menu content`,
- standalone: true,
imports: [OverlayModule],
})
class ConnectedOverlayPropertyInitOrder {
diff --git a/src/cdk/overlay/overlay-directives.zone.spec.ts b/src/cdk/overlay/overlay-directives.zone.spec.ts
index 3f3768f77b2d..3cec7fd804f0 100644
--- a/src/cdk/overlay/overlay-directives.zone.spec.ts
+++ b/src/cdk/overlay/overlay-directives.zone.spec.ts
@@ -75,7 +75,6 @@ describe('Overlay directives Zone.js integration', () => {
[cdkConnectedOverlayTransformOriginOn]="transformOriginSelector">
Menu content
`,
- standalone: true,
imports: [OverlayModule],
})
class ConnectedOverlayDirectiveTest {
@@ -117,7 +116,6 @@ class ConnectedOverlayDirectiveTest {
template: `
Menu content`,
- standalone: true,
imports: [OverlayModule],
})
class ConnectedOverlayPropertyInitOrder {
diff --git a/src/cdk/overlay/overlay.spec.ts b/src/cdk/overlay/overlay.spec.ts
index 94ed51dea804..e4c32cba3907 100644
--- a/src/cdk/overlay/overlay.spec.ts
+++ b/src/cdk/overlay/overlay.spec.ts
@@ -1101,14 +1101,12 @@ describe('Overlay', () => {
@Component({
selector: 'pizza',
template: 'Pizza
',
- standalone: true,
})
class PizzaMsg {}
/** Test-bed component that contains a TempatePortal and an ElementRef. */
@Component({
template: `Cake`,
- standalone: true,
imports: [CdkPortal],
})
class TestComponentWithTemplatePortals {
diff --git a/src/cdk/overlay/position/flexible-connected-position-strategy.spec.ts b/src/cdk/overlay/position/flexible-connected-position-strategy.spec.ts
index 61bc0a212cad..d9f4bf0754ea 100644
--- a/src/cdk/overlay/position/flexible-connected-position-strategy.spec.ts
+++ b/src/cdk/overlay/position/flexible-connected-position-strategy.spec.ts
@@ -2959,7 +2959,6 @@ function createOverflowContainerElement() {
class="transform-origin"
style="width: ${DEFAULT_WIDTH}px; height: ${DEFAULT_HEIGHT}px;">
`,
- standalone: true,
imports: [ScrollingModule, OverlayModule, PortalModule],
})
class TestOverlay {}
diff --git a/src/cdk/overlay/position/global-position-strategy.spec.ts b/src/cdk/overlay/position/global-position-strategy.spec.ts
index 0e7b6d2ef7c0..fa70c2bb67f3 100644
--- a/src/cdk/overlay/position/global-position-strategy.spec.ts
+++ b/src/cdk/overlay/position/global-position-strategy.spec.ts
@@ -457,7 +457,6 @@ describe('GlobalPositonStrategy', () => {
@Component({
template: '',
- standalone: true,
imports: [OverlayModule, PortalModule],
})
class BlankPortal {}
diff --git a/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts b/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts
index bafe9541229e..af8bfe4e8501 100644
--- a/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts
+++ b/src/cdk/overlay/scroll/block-scroll-strategy.spec.ts
@@ -215,7 +215,6 @@ describe('BlockScrollStrategy', () => {
/** Simple component that we can attach to the overlay. */
@Component({
template: 'Focaccia
',
- standalone: true,
imports: [OverlayModule, PortalModule],
})
class FocacciaMsg {}
diff --git a/src/cdk/overlay/scroll/close-scroll-strategy.spec.ts b/src/cdk/overlay/scroll/close-scroll-strategy.spec.ts
index 8f5828c872bc..22b501164df9 100644
--- a/src/cdk/overlay/scroll/close-scroll-strategy.spec.ts
+++ b/src/cdk/overlay/scroll/close-scroll-strategy.spec.ts
@@ -135,7 +135,6 @@ describe('CloseScrollStrategy', () => {
/** Simple component that we can attach to the overlay. */
@Component({
template: 'Mozarella
',
- standalone: true,
imports: [OverlayModule, PortalModule],
})
class MozarellaMsg {}
diff --git a/src/cdk/overlay/scroll/close-scroll-strategy.zone.spec.ts b/src/cdk/overlay/scroll/close-scroll-strategy.zone.spec.ts
index 163b9bea5672..396428f9f4a3 100644
--- a/src/cdk/overlay/scroll/close-scroll-strategy.zone.spec.ts
+++ b/src/cdk/overlay/scroll/close-scroll-strategy.zone.spec.ts
@@ -64,7 +64,6 @@ describe('CloseScrollStrategy Zone.js integration', () => {
/** Simple component that we can attach to the overlay. */
@Component({
template: 'Mozarella
',
- standalone: true,
imports: [OverlayModule, PortalModule],
})
class MozarellaMsg {}
diff --git a/src/cdk/overlay/scroll/reposition-scroll-strategy.spec.ts b/src/cdk/overlay/scroll/reposition-scroll-strategy.spec.ts
index c5c27b13535c..261e4754f429 100644
--- a/src/cdk/overlay/scroll/reposition-scroll-strategy.spec.ts
+++ b/src/cdk/overlay/scroll/reposition-scroll-strategy.spec.ts
@@ -115,7 +115,6 @@ describe('RepositionScrollStrategy', () => {
/** Simple component that we can attach to the overlay. */
@Component({
template: 'Pasta
',
- standalone: true,
imports: [OverlayModule, PortalModule],
})
class PastaMsg {}
diff --git a/src/cdk/portal/portal.spec.ts b/src/cdk/portal/portal.spec.ts
index 7d6d05810a6e..913801ff3d4b 100644
--- a/src/cdk/portal/portal.spec.ts
+++ b/src/cdk/portal/portal.spec.ts
@@ -725,7 +725,6 @@ class ChocolateInjector {
@Component({
selector: 'pizza-msg',
template: 'Pizza
{{snack}}
',
- standalone: true,
imports: [PortalModule],
})
class PizzaMsg {
@@ -738,7 +737,6 @@ class PizzaMsg {
*/
@Directive({
selector: '[savesParentNodeOnInit]',
- standalone: true,
})
class SaveParentNodeOnInit implements AfterViewInit {
private _elementRef = inject>(ElementRef);
@@ -760,7 +758,6 @@ class SaveParentNodeOnInit implements AfterViewInit {
`,
- standalone: true,
imports: [SaveParentNodeOnInit],
})
class ArbitraryViewContainerRefComponent {
@@ -802,7 +799,6 @@ class ArbitraryViewContainerRefComponent {
`,
- standalone: true,
imports: [CdkPortal, CdkPortalOutlet, PizzaMsg],
})
class PortalTestApp {
@@ -845,7 +841,6 @@ class PortalTestApp {
`,
- standalone: true,
imports: [CdkPortalOutlet],
})
class UnboundPortalTestApp {
diff --git a/src/cdk/scrolling/scroll-dispatcher.spec.ts b/src/cdk/scrolling/scroll-dispatcher.spec.ts
index be4372e9188a..4c7b59d4259f 100644
--- a/src/cdk/scrolling/scroll-dispatcher.spec.ts
+++ b/src/cdk/scrolling/scroll-dispatcher.spec.ts
@@ -271,7 +271,6 @@ describe('ScrollDispatcher', () => {
/** Simple component that contains a large div and can be scrolled. */
@Component({
template: ``,
- standalone: true,
imports: [ScrollingModule],
})
class ScrollingComponent {
@@ -290,7 +289,6 @@ class ScrollingComponent {
`,
- standalone: true,
imports: [ScrollingModule],
})
class NestedScrollingComponent {
diff --git a/src/cdk/scrolling/scroll-dispatcher.zone.spec.ts b/src/cdk/scrolling/scroll-dispatcher.zone.spec.ts
index 99859c345b01..e7b2b8fc7690 100644
--- a/src/cdk/scrolling/scroll-dispatcher.zone.spec.ts
+++ b/src/cdk/scrolling/scroll-dispatcher.zone.spec.ts
@@ -41,7 +41,6 @@ describe('ScrollDispatcher Zone.js integration', () => {
/** Simple component that contains a large div and can be scrolled. */
@Component({
template: ``,
- standalone: true,
imports: [ScrollingModule],
})
class ScrollingComponent {
diff --git a/src/cdk/scrolling/scrollable.spec.ts b/src/cdk/scrolling/scrollable.spec.ts
index 539369f27f94..de0db2eabdc5 100644
--- a/src/cdk/scrolling/scrollable.spec.ts
+++ b/src/cdk/scrolling/scrollable.spec.ts
@@ -246,7 +246,6 @@ describe('CdkScrollable', () => {
height: 100px;
}
`,
- standalone: true,
imports: [ScrollingModule],
})
class ScrollableViewport {
diff --git a/src/cdk/scrolling/virtual-scroll-viewport.spec.ts b/src/cdk/scrolling/virtual-scroll-viewport.spec.ts
index 54000570d720..796fbad2ffa5 100644
--- a/src/cdk/scrolling/virtual-scroll-viewport.spec.ts
+++ b/src/cdk/scrolling/virtual-scroll-viewport.spec.ts
@@ -1248,7 +1248,6 @@ function triggerScroll(viewport: CdkVirtualScrollViewport, offset?: number) {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class FixedSizeVirtualScroll {
@@ -1314,7 +1313,6 @@ class FixedSizeVirtualScroll {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class FixedSizeVirtualScrollWithRtlDirection {
@@ -1359,7 +1357,6 @@ class FixedSizeVirtualScrollWithRtlDirection {
border: 1px dashed #ccc;
}
`,
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollWithNoStrategy {
@@ -1368,7 +1365,6 @@ class VirtualScrollWithNoStrategy {
@Directive({
selector: '[injects-view-container]',
- standalone: true,
})
class InjectsViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -1400,7 +1396,6 @@ class InjectsViewContainer {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollWithItemInjectingViewContainer {
@@ -1439,7 +1434,6 @@ class VirtualScrollWithItemInjectingViewContainer {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class DelayedInitializationVirtualScroll {
@@ -1478,7 +1472,6 @@ class DelayedInitializationVirtualScroll {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollWithAppendOnly {
@@ -1521,7 +1514,6 @@ class VirtualScrollWithAppendOnly {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollWithCustomScrollingElement {
@@ -1563,7 +1555,6 @@ class VirtualScrollWithCustomScrollingElement {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollWithScrollableWindow {
@@ -1576,7 +1567,6 @@ class VirtualScrollWithScrollableWindow {
@Component({
template: '',
- standalone: true,
imports: [ScrollingModule],
})
class VirtualScrollableQuery {
diff --git a/src/cdk/scrolling/virtual-scroll-viewport.zone.spec.ts b/src/cdk/scrolling/virtual-scroll-viewport.zone.spec.ts
index b0547d767973..f4b893ed251c 100644
--- a/src/cdk/scrolling/virtual-scroll-viewport.zone.spec.ts
+++ b/src/cdk/scrolling/virtual-scroll-viewport.zone.spec.ts
@@ -112,7 +112,6 @@ describe('CdkVirtualScrollViewport Zone.js intergation', () => {
}
`,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [ScrollingModule],
})
class FixedSizeVirtualScroll {
diff --git a/src/cdk/table/text-column.spec.ts b/src/cdk/table/text-column.spec.ts
index ffb4a54a3e85..aae3304a4a0f 100644
--- a/src/cdk/table/text-column.spec.ts
+++ b/src/cdk/table/text-column.spec.ts
@@ -167,7 +167,6 @@ interface TestData {
`,
- standalone: true,
imports: [CdkTableModule],
})
class BasicTextColumnApp {
@@ -187,7 +186,6 @@ class BasicTextColumnApp {
template: `
`,
- standalone: true,
imports: [CdkTableModule],
})
class MissingTableApp {}
@@ -201,7 +199,6 @@ class MissingTableApp {}
`,
- standalone: true,
imports: [CdkTableModule],
})
class TextColumnWithoutNameApp extends BasicTextColumnApp {}
diff --git a/src/cdk/text-field/autofill.spec.ts b/src/cdk/text-field/autofill.spec.ts
index 85d21d707a32..cb9f2965e7e6 100644
--- a/src/cdk/text-field/autofill.spec.ts
+++ b/src/cdk/text-field/autofill.spec.ts
@@ -204,7 +204,6 @@ describe('cdkAutofill', () => {
`,
- standalone: true,
imports: [TextFieldModule],
})
class Inputs {
@@ -216,7 +215,6 @@ class Inputs {
@Component({
template: ``,
- standalone: true,
imports: [TextFieldModule],
})
class InputWithCdkAutofilled {
diff --git a/src/cdk/text-field/autofill.zone.spec.ts b/src/cdk/text-field/autofill.zone.spec.ts
index 70882a2067b2..adec28c6ed1f 100644
--- a/src/cdk/text-field/autofill.zone.spec.ts
+++ b/src/cdk/text-field/autofill.zone.spec.ts
@@ -50,7 +50,6 @@ describe('AutofillMonitor Zone.js integration', () => {
`,
- standalone: true,
imports: [TextFieldModule],
})
class Inputs {
diff --git a/src/cdk/text-field/autosize.spec.ts b/src/cdk/text-field/autosize.spec.ts
index df0efd201ba1..5e9ae7cb59ba 100644
--- a/src/cdk/text-field/autosize.spec.ts
+++ b/src/cdk/text-field/autosize.spec.ts
@@ -409,7 +409,6 @@ const textareaStyleReset = `
`,
styles: textareaStyleReset,
- standalone: true,
imports: [FormsModule, TextFieldModule],
})
class AutosizeTextAreaWithContent {
@@ -423,7 +422,6 @@ class AutosizeTextAreaWithContent {
@Component({
template: ``,
styles: textareaStyleReset,
- standalone: true,
imports: [FormsModule, TextFieldModule],
})
class AutosizeTextAreaWithValue {
@@ -433,7 +431,6 @@ class AutosizeTextAreaWithValue {
@Component({
template: ``,
styles: textareaStyleReset,
- standalone: true,
imports: [FormsModule, TextFieldModule],
})
class AutosizeTextareaWithNgModel {
@@ -443,7 +440,6 @@ class AutosizeTextareaWithNgModel {
@Component({
template: ``,
styles: textareaStyleReset,
- standalone: true,
imports: [FormsModule, TextFieldModule],
})
class AutosizeTextareaWithoutAutosize {
diff --git a/src/google-maps/deprecated-map-marker-clusterer/deprecated-map-marker-clusterer.spec.ts b/src/google-maps/deprecated-map-marker-clusterer/deprecated-map-marker-clusterer.spec.ts
index 9b1d297b9536..2f4eb9f60821 100644
--- a/src/google-maps/deprecated-map-marker-clusterer/deprecated-map-marker-clusterer.spec.ts
+++ b/src/google-maps/deprecated-map-marker-clusterer/deprecated-map-marker-clusterer.spec.ts
@@ -342,7 +342,6 @@ describe('DeprecatedMapMarkerClusterer', () => {
`,
- standalone: true,
imports: [GoogleMap, MapMarker, DeprecatedMapMarkerClusterer],
})
class TestApp {
diff --git a/src/google-maps/google-map/google-map.spec.ts b/src/google-maps/google-map/google-map.spec.ts
index 5eef67bce344..d693c793286a 100644
--- a/src/google-maps/google-map/google-map.spec.ts
+++ b/src/google-maps/google-map/google-map.spec.ts
@@ -444,7 +444,6 @@ describe('GoogleMap', () => {
(mapRightclick)="handleRightclick($event)"
(mapInitialized)="mapInitializedSpy($event)" />
`,
- standalone: true,
imports: [GoogleMap],
})
class TestApp {
diff --git a/src/google-maps/map-advanced-marker/map-advanced-marker.spec.ts b/src/google-maps/map-advanced-marker/map-advanced-marker.spec.ts
index 47686bb860e7..2f6cf7acd71b 100644
--- a/src/google-maps/map-advanced-marker/map-advanced-marker.spec.ts
+++ b/src/google-maps/map-advanced-marker/map-advanced-marker.spec.ts
@@ -176,7 +176,6 @@ describe('MapAdvancedMarker', () => {
[options]="options" />
`,
- standalone: true,
imports: [GoogleMap, MapAdvancedMarker],
})
class TestApp {
diff --git a/src/google-maps/map-bicycling-layer/map-bicycling-layer.spec.ts b/src/google-maps/map-bicycling-layer/map-bicycling-layer.spec.ts
index b090236e7cce..1832fdf8709d 100644
--- a/src/google-maps/map-bicycling-layer/map-bicycling-layer.spec.ts
+++ b/src/google-maps/map-bicycling-layer/map-bicycling-layer.spec.ts
@@ -42,7 +42,6 @@ describe('MapBicyclingLayer', () => {
`,
- standalone: true,
imports: [GoogleMap, MapBicyclingLayer],
})
class TestApp {}
diff --git a/src/google-maps/map-circle/map-circle.spec.ts b/src/google-maps/map-circle/map-circle.spec.ts
index d7cefaebf4c1..c92e9558049e 100644
--- a/src/google-maps/map-circle/map-circle.spec.ts
+++ b/src/google-maps/map-circle/map-circle.spec.ts
@@ -166,7 +166,6 @@ describe('MapCircle', () => {
(circleClick)="handleClick()"
(circleRightclick)="handleRightclick()" />
`,
- standalone: true,
imports: [GoogleMap, MapCircle],
})
class TestApp {
diff --git a/src/google-maps/map-directions-renderer/map-directions-renderer.spec.ts b/src/google-maps/map-directions-renderer/map-directions-renderer.spec.ts
index 83b9181db769..e0eeb5b9e589 100644
--- a/src/google-maps/map-directions-renderer/map-directions-renderer.spec.ts
+++ b/src/google-maps/map-directions-renderer/map-directions-renderer.spec.ts
@@ -136,7 +136,6 @@ describe('MapDirectionsRenderer', () => {
(directionsChanged)="handleDirectionsChanged()" />
`,
- standalone: true,
imports: [GoogleMap, MapDirectionsRenderer],
})
class TestApp {
diff --git a/src/google-maps/map-ground-overlay/map-ground-overlay.spec.ts b/src/google-maps/map-ground-overlay/map-ground-overlay.spec.ts
index eb2e41c19055..373c8e6e1c55 100644
--- a/src/google-maps/map-ground-overlay/map-ground-overlay.spec.ts
+++ b/src/google-maps/map-ground-overlay/map-ground-overlay.spec.ts
@@ -168,7 +168,6 @@ describe('MapGroundOverlay', () => {
(mapClick)="handleClick()" />
`,
- standalone: true,
imports: [GoogleMap, MapGroundOverlay],
})
class TestApp {
diff --git a/src/google-maps/map-heatmap-layer/map-heatmap-layer.spec.ts b/src/google-maps/map-heatmap-layer/map-heatmap-layer.spec.ts
index 21c57e35e8a6..17a13b021737 100644
--- a/src/google-maps/map-heatmap-layer/map-heatmap-layer.spec.ts
+++ b/src/google-maps/map-heatmap-layer/map-heatmap-layer.spec.ts
@@ -163,7 +163,6 @@ describe('MapHeatmapLayer', () => {
`,
- standalone: true,
imports: [GoogleMap, MapHeatmapLayer],
})
class TestApp {
diff --git a/src/google-maps/map-info-window/map-info-window.spec.ts b/src/google-maps/map-info-window/map-info-window.spec.ts
index 82497407123c..9d5c4bad5412 100644
--- a/src/google-maps/map-info-window/map-info-window.spec.ts
+++ b/src/google-maps/map-info-window/map-info-window.spec.ts
@@ -258,7 +258,6 @@ describe('MapInfoWindow', () => {
`,
- standalone: true,
imports: [GoogleMap, MapInfoWindow],
})
class TestApp {
diff --git a/src/google-maps/map-kml-layer/map-kml-layer.spec.ts b/src/google-maps/map-kml-layer/map-kml-layer.spec.ts
index 35491897b0e5..4f479b6dc1f2 100644
--- a/src/google-maps/map-kml-layer/map-kml-layer.spec.ts
+++ b/src/google-maps/map-kml-layer/map-kml-layer.spec.ts
@@ -154,7 +154,6 @@ describe('MapKmlLayer', () => {
(statusChanged)="handleStatusChange()" />
`,
- standalone: true,
imports: [GoogleMap, MapKmlLayer],
})
class TestApp {
diff --git a/src/google-maps/map-marker-clusterer/map-marker-clusterer.spec.ts b/src/google-maps/map-marker-clusterer/map-marker-clusterer.spec.ts
index 01629f6ed952..0dfd6074a6a4 100644
--- a/src/google-maps/map-marker-clusterer/map-marker-clusterer.spec.ts
+++ b/src/google-maps/map-marker-clusterer/map-marker-clusterer.spec.ts
@@ -177,7 +177,6 @@ describe('MapMarkerClusterer', () => {
@Component({
selector: 'test-app',
- standalone: true,
imports: [GoogleMapsModule],
template: `
diff --git a/src/google-maps/map-marker/map-marker.spec.ts b/src/google-maps/map-marker/map-marker.spec.ts
index 3f0e102e10ea..de00b590e6d9 100644
--- a/src/google-maps/map-marker/map-marker.spec.ts
+++ b/src/google-maps/map-marker/map-marker.spec.ts
@@ -233,7 +233,6 @@ describe('MapMarker', () => {
(positionChanged)="handlePositionChanged()" />
`,
- standalone: true,
imports: [GoogleMap, MapMarker],
})
class TestApp {
diff --git a/src/google-maps/map-polygon/map-polygon.spec.ts b/src/google-maps/map-polygon/map-polygon.spec.ts
index 09d4ec277f29..bf012834f116 100644
--- a/src/google-maps/map-polygon/map-polygon.spec.ts
+++ b/src/google-maps/map-polygon/map-polygon.spec.ts
@@ -157,7 +157,6 @@ describe('MapPolygon', () => {
`,
- standalone: true,
imports: [GoogleMap, MapPolygon],
})
class TestApp {
diff --git a/src/google-maps/map-polyline/map-polyline.spec.ts b/src/google-maps/map-polyline/map-polyline.spec.ts
index 095be84dd9f1..a8a788e1a22e 100644
--- a/src/google-maps/map-polyline/map-polyline.spec.ts
+++ b/src/google-maps/map-polyline/map-polyline.spec.ts
@@ -157,7 +157,6 @@ describe('MapPolyline', () => {
(polylineRightclick)="handleRightclick()" />
`,
- standalone: true,
imports: [GoogleMap, MapPolyline],
})
class TestApp {
diff --git a/src/google-maps/map-rectangle/map-rectangle.spec.ts b/src/google-maps/map-rectangle/map-rectangle.spec.ts
index 3ad2bf32a6fe..50cc24e83304 100644
--- a/src/google-maps/map-rectangle/map-rectangle.spec.ts
+++ b/src/google-maps/map-rectangle/map-rectangle.spec.ts
@@ -151,7 +151,6 @@ describe('MapRectangle', () => {
(rectangleRightclick)="handleRightclick()" />
`,
- standalone: true,
imports: [GoogleMap, MapRectangle],
})
class TestApp {
diff --git a/src/google-maps/map-traffic-layer/map-traffic-layer.spec.ts b/src/google-maps/map-traffic-layer/map-traffic-layer.spec.ts
index a11bc123e3d6..9561b07ed911 100644
--- a/src/google-maps/map-traffic-layer/map-traffic-layer.spec.ts
+++ b/src/google-maps/map-traffic-layer/map-traffic-layer.spec.ts
@@ -44,7 +44,6 @@ describe('MapTrafficLayer', () => {
`,
- standalone: true,
imports: [GoogleMap, MapTrafficLayer],
})
class TestApp {
diff --git a/src/google-maps/map-transit-layer/map-transit-layer.spec.ts b/src/google-maps/map-transit-layer/map-transit-layer.spec.ts
index 708821aa5b7d..19fcd60f67ba 100644
--- a/src/google-maps/map-transit-layer/map-transit-layer.spec.ts
+++ b/src/google-maps/map-transit-layer/map-transit-layer.spec.ts
@@ -43,7 +43,6 @@ describe('MapTransitLayer', () => {
`,
- standalone: true,
imports: [GoogleMap, MapTransitLayer],
})
class TestApp {}
diff --git a/src/material-experimental/menubar/menubar-item.spec.ts b/src/material-experimental/menubar/menubar-item.spec.ts
index 40b610c24de7..cd76be6616e7 100644
--- a/src/material-experimental/menubar/menubar-item.spec.ts
+++ b/src/material-experimental/menubar/menubar-item.spec.ts
@@ -62,7 +62,6 @@ describe('MatMenuBarItem', () => {
`,
- standalone: true,
imports: [MatMenuBarModule, CdkMenuModule],
})
class SimpleMenuBarItem {
diff --git a/src/material-experimental/menubar/menubar.spec.ts b/src/material-experimental/menubar/menubar.spec.ts
index f690dd033e31..9adab6e6666a 100644
--- a/src/material-experimental/menubar/menubar.spec.ts
+++ b/src/material-experimental/menubar/menubar.spec.ts
@@ -55,7 +55,6 @@ describe('MatMenuBar', () => {
`,
- standalone: true,
imports: [MatMenuBarModule],
})
class SimpleMatMenuBar {
diff --git a/src/material/autocomplete/testing/autocomplete-harness.spec.ts b/src/material/autocomplete/testing/autocomplete-harness.spec.ts
index 3fedab3f7c40..1f034a97716c 100644
--- a/src/material/autocomplete/testing/autocomplete-harness.spec.ts
+++ b/src/material/autocomplete/testing/autocomplete-harness.spec.ts
@@ -176,7 +176,6 @@ describe('MatAutocompleteHarness', () => {
`,
- standalone: true,
imports: [MatAutocompleteModule],
})
class AutocompleteHarnessTest {
diff --git a/src/material/badge/badge.spec.ts b/src/material/badge/badge.spec.ts
index 7c5a6ca9da22..2e0e1a996b9e 100644
--- a/src/material/badge/badge.spec.ts
+++ b/src/material/badge/badge.spec.ts
@@ -291,7 +291,6 @@ describe('MatBadge', () => {
home
`,
- standalone: true,
imports: [MatBadgeModule],
})
class BadgeOnInteractiveElement {
@@ -308,7 +307,6 @@ class BadgeOnInteractiveElement {
@Component({
template: 'Hello',
- standalone: true,
imports: [MatBadgeModule],
})
class BadgeOnNonInteractiveElement {
@@ -322,7 +320,6 @@ class BadgeOnNonInteractiveElement {
Pre-existing badge
`,
- standalone: true,
imports: [MatBadgeModule],
})
class PreExistingBadge {}
@@ -334,7 +331,6 @@ class PreExistingBadge {}
Something
`,
- standalone: true,
imports: [MatBadgeModule],
})
class NestedBadge {}
@@ -342,7 +338,6 @@ class NestedBadge {}
@Component({
template: `
Notifications`,
- standalone: true,
imports: [MatBadgeModule],
})
class BadgeOnTemplate {}
diff --git a/src/material/badge/testing/badge-harness.spec.ts b/src/material/badge/testing/badge-harness.spec.ts
index 48838b343d94..71261c9c3acd 100644
--- a/src/material/badge/testing/badge-harness.spec.ts
+++ b/src/material/badge/testing/badge-harness.spec.ts
@@ -136,7 +136,6 @@ describe('MatBadgeHarness', () => {
matBadge="Disabled badge"
[matBadgeDisabled]="disabled">Disabled
`,
- standalone: true,
imports: [MatBadgeModule],
})
class BadgeHarnessTest {
diff --git a/src/material/bottom-sheet/bottom-sheet.spec.ts b/src/material/bottom-sheet/bottom-sheet.spec.ts
index fcaafe103355..4f978f23767d 100644
--- a/src/material/bottom-sheet/bottom-sheet.spec.ts
+++ b/src/material/bottom-sheet/bottom-sheet.spec.ts
@@ -1009,7 +1009,6 @@ describe('MatBottomSheet with default options', () => {
@Directive({
selector: 'dir-with-view-container',
- standalone: true,
})
class DirectiveWithViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -1017,7 +1016,6 @@ class DirectiveWithViewContainer {
@Component({
template: ``,
- standalone: true,
imports: [DirectiveWithViewContainer],
})
class ComponentWithChildViewContainer {
@@ -1032,7 +1030,6 @@ class ComponentWithChildViewContainer {
selector: 'arbitrary-component-with-template-ref',
template: `
Cheese {{localValue}} {{data?.value}}{{setRef(bottomSheetRef)}}`,
- standalone: true,
})
class ComponentWithTemplateRef {
localValue: string;
@@ -1048,7 +1045,6 @@ class ComponentWithTemplateRef {
@Component({
template: 'Pizza
',
- standalone: true,
})
class PizzaMsg {
bottomSheetRef = inject>(MatBottomSheetRef);
@@ -1058,7 +1054,6 @@ class PizzaMsg {
@Component({
template: 'Taco
',
- standalone: true,
})
class TacoMsg {}
@@ -1067,14 +1062,12 @@ class TacoMsg {}
This is the title
This is the paragraph
`,
- standalone: true,
})
class ContentElementDialog {}
@Component({
template: '',
providers: [MatBottomSheet],
- standalone: true,
imports: [MatBottomSheetModule],
})
class ComponentThatProvidesMatBottomSheet {
@@ -1083,7 +1076,6 @@ class ComponentThatProvidesMatBottomSheet {
@Component({
template: '',
- standalone: true,
})
class BottomSheetWithInjectedData {
data = inject(MAT_BOTTOM_SHEET_DATA);
@@ -1092,6 +1084,5 @@ class BottomSheetWithInjectedData {
@Component({
template: ``,
encapsulation: ViewEncapsulation.ShadowDom,
- standalone: true,
})
class ShadowDomComponent {}
diff --git a/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts b/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts
index 39ec594a2bda..cf3fe77b1a5c 100644
--- a/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts
+++ b/src/material/bottom-sheet/testing/bottom-sheet-harness.spec.ts
@@ -54,7 +54,6 @@ describe('MatBottomSheetHarness', () => {
Hello from the bottom sheet!
`,
- standalone: true,
imports: [MatBottomSheetModule],
})
class BottomSheetHarnessTest {
diff --git a/src/material/button-toggle/button-toggle.spec.ts b/src/material/button-toggle/button-toggle.spec.ts
index f223feaaa33d..cc66f085dd50 100644
--- a/src/material/button-toggle/button-toggle.spec.ts
+++ b/src/material/button-toggle/button-toggle.spec.ts
@@ -1096,7 +1096,6 @@ describe('MatButtonToggle without forms', () => {
Test3
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonTogglesInsideButtonToggleGroup {
@@ -1121,7 +1120,6 @@ class ButtonTogglesInsideButtonToggleGroup {
}
`,
- standalone: true,
imports: [MatButtonToggleModule, FormsModule, ReactiveFormsModule],
})
class ButtonToggleGroupWithNgModel {
@@ -1144,7 +1142,6 @@ class ButtonToggleGroupWithNgModel {
Sugar
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonTogglesInsideButtonToggleGroupMultiple {
@@ -1161,7 +1158,6 @@ class ButtonTogglesInsideButtonToggleGroupMultiple {
Sugar
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class FalsyButtonTogglesInsideButtonToggleGroupMultiple {
@@ -1173,7 +1169,6 @@ class FalsyButtonTogglesInsideButtonToggleGroupMultiple {
template: `
Yes
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class StandaloneButtonToggle {}
@@ -1185,7 +1180,6 @@ class StandaloneButtonToggle {}
Value Green
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleGroupWithInitialValue {
@@ -1200,7 +1194,6 @@ class ButtonToggleGroupWithInitialValue {
Value Blue
`,
- standalone: true,
imports: [MatButtonToggleModule, FormsModule, ReactiveFormsModule],
})
class ButtonToggleGroupWithFormControl {
@@ -1218,7 +1211,6 @@ class ButtonToggleGroupWithFormControl {
}
`,
- standalone: true,
imports: [MatButtonToggleModule, FormsModule, ReactiveFormsModule],
})
class ButtonToggleGroupWithIndirectDescendantToggles {
@@ -1228,7 +1220,6 @@ class ButtonToggleGroupWithIndirectDescendantToggles {
/** Simple test component with an aria-label set. */
@Component({
template: ``,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithAriaLabel {}
@@ -1236,7 +1227,6 @@ class ButtonToggleWithAriaLabel {}
/** Simple test component with an aria-label set. */
@Component({
template: ``,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithAriaLabelledby {}
@@ -1249,7 +1239,6 @@ class ButtonToggleWithAriaLabelledby {}
}
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class RepeatedButtonTogglesWithPreselectedValue {
@@ -1262,14 +1251,12 @@ class RepeatedButtonTogglesWithPreselectedValue {
@Component({
template: ``,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithTabindex {}
@Component({
template: ``,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithStaticName {}
@@ -1281,7 +1268,6 @@ class ButtonToggleWithStaticName {}
Two
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithStaticChecked {
@@ -1293,7 +1279,6 @@ class ButtonToggleWithStaticChecked {
template: `
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleWithStaticAriaAttributes {}
@@ -1306,7 +1291,6 @@ class ButtonToggleWithStaticAriaAttributes {}
}
`,
- standalone: true,
imports: [MatButtonToggleModule, FormsModule, ReactiveFormsModule],
})
class ButtonToggleGroupWithFormControlAndDynamicButtons {
@@ -1323,7 +1307,6 @@ class ButtonToggleGroupWithFormControlAndDynamicButtons {
Three
`,
- standalone: true,
imports: [MatButtonToggleModule, FormsModule],
})
class ButtonToggleGroupWithNgModelAndStaticOptions {
diff --git a/src/material/button-toggle/testing/button-toggle-group.spec.ts b/src/material/button-toggle/testing/button-toggle-group.spec.ts
index 70377498cac4..178451dd8964 100644
--- a/src/material/button-toggle/testing/button-toggle-group.spec.ts
+++ b/src/material/button-toggle/testing/button-toggle-group.spec.ts
@@ -85,7 +85,6 @@ describe('MatButtonToggleGroupHarness', () => {
Two
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleGroupHarnessTest {
diff --git a/src/material/button-toggle/testing/button-toggle-harness.spec.ts b/src/material/button-toggle/testing/button-toggle-harness.spec.ts
index c7fc5f6cdd8f..a712846a45f0 100644
--- a/src/material/button-toggle/testing/button-toggle-harness.spec.ts
+++ b/src/material/button-toggle/testing/button-toggle-harness.spec.ts
@@ -154,7 +154,6 @@ describe('MatButtonToggleHarness', () => {
appearance="legacy">Second
Second toggle
`,
- standalone: true,
imports: [MatButtonToggleModule],
})
class ButtonToggleHarnessTest {
diff --git a/src/material/button/button.spec.ts b/src/material/button/button.spec.ts
index eb4599299386..74ec8821cc81 100644
--- a/src/material/button/button.spec.ts
+++ b/src/material/button/button.spec.ts
@@ -292,7 +292,6 @@ describe('MatButton', () => {
it('should be able to configure the default color of buttons', () => {
@Component({
template: ``,
- standalone: true,
imports: [MatButtonModule],
})
class ConfigTestApp {}
@@ -424,7 +423,6 @@ describe('MatFabDefaultOptions', () => {
`,
- standalone: true,
imports: [MatButtonModule],
})
class TestApp {
diff --git a/src/material/button/testing/button-harness.spec.ts b/src/material/button/testing/button-harness.spec.ts
index e19db0e5ea21..ab4a01fa4c6e 100644
--- a/src/material/button/testing/button-harness.spec.ts
+++ b/src/material/button/testing/button-harness.spec.ts
@@ -174,7 +174,6 @@ describe('MatButtonHarness', () => {
Fab anchor
Mini Fab anchor
`,
- standalone: true,
imports: [MatButtonModule, MatIconModule, PlatformModule],
})
class ButtonHarnessTest {
diff --git a/src/material/card/card.spec.ts b/src/material/card/card.spec.ts
index 0273ecfef51a..eadb812356ed 100644
--- a/src/material/card/card.spec.ts
+++ b/src/material/card/card.spec.ts
@@ -48,7 +48,6 @@ describe('MatCard', () => {
@Component({
template: '',
- standalone: true,
imports: [MatCard],
})
class BasicCard {
@@ -57,7 +56,6 @@ class BasicCard {
@Component({
template: '',
- standalone: true,
imports: [MatCard],
})
class BasicCardNoAppearance {}
diff --git a/src/material/card/testing/card-harness.spec.ts b/src/material/card/testing/card-harness.spec.ts
index 7837c73794eb..06ebb6a3cd93 100644
--- a/src/material/card/testing/card-harness.spec.ts
+++ b/src/material/card/testing/card-harness.spec.ts
@@ -123,7 +123,6 @@ describe('MatCardHarness', () => {
`,
- standalone: true,
imports: [MatCardModule],
})
class CardHarnessTest {}
diff --git a/src/material/checkbox/checkbox.spec.ts b/src/material/checkbox/checkbox.spec.ts
index 9b2c2aa5b4f4..ac44a8beb73b 100644
--- a/src/material/checkbox/checkbox.spec.ts
+++ b/src/material/checkbox/checkbox.spec.ts
@@ -1233,7 +1233,6 @@ describe('MatCheckboxDefaultOptions', () => {
Simple checkbox
`,
- standalone: true,
imports: [MatCheckbox],
})
class SingleCheckbox {
@@ -1258,7 +1257,6 @@ class SingleCheckbox {
@Component({
template: `Be good`,
- standalone: true,
imports: [MatCheckbox, FormsModule],
})
class CheckboxWithNgModel {
@@ -1270,7 +1268,6 @@ class CheckboxWithNgModel {
@Component({
template: `Be good`,
changeDetection: ChangeDetectionStrategy.OnPush,
- standalone: true,
imports: [MatCheckbox, FormsModule],
})
class CheckboxWithNgModelAndOnPush extends CheckboxWithNgModel {}
@@ -1281,7 +1278,6 @@ class CheckboxWithNgModelAndOnPush extends CheckboxWithNgModel {}
Option 1
Option 2
`,
- standalone: true,
imports: [MatCheckbox],
})
class MultipleCheckboxes {}
@@ -1293,7 +1289,6 @@ class MultipleCheckboxes {}
[tabIndex]="customTabIndex"
[disabled]="isDisabled">
`,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithTabIndex {
@@ -1304,7 +1299,6 @@ class CheckboxWithTabIndex {
/** Simple test component with an aria-label set. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithAriaLabel {}
@@ -1312,7 +1306,6 @@ class CheckboxWithAriaLabel {}
/** Simple test component with an aria-label set. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithAriaLabelledby {}
@@ -1320,7 +1313,6 @@ class CheckboxWithAriaLabelledby {}
/** Simple test component with an aria-describedby set. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithAriaDescribedby {}
@@ -1328,7 +1320,6 @@ class CheckboxWithAriaDescribedby {}
/** Simple test component with an aria-expanded set with true. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithPositiveAriaExpanded {}
@@ -1336,7 +1327,6 @@ class CheckboxWithPositiveAriaExpanded {}
/** Simple test component with an aria-expanded set with false. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithNegativeAriaExpanded {}
@@ -1344,7 +1334,6 @@ class CheckboxWithNegativeAriaExpanded {}
/** Simple test component with an aria-controls set. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithAriaControls {}
@@ -1352,7 +1341,6 @@ class CheckboxWithAriaControls {}
/** Simple test component with an aria-owns set. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithAriaOwns {}
@@ -1360,7 +1348,6 @@ class CheckboxWithAriaOwns {}
/** Simple test component with name attribute */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithNameAttribute {}
@@ -1368,7 +1355,6 @@ class CheckboxWithNameAttribute {}
/** Simple test component with change event */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithChangeEvent {
@@ -1378,7 +1364,6 @@ class CheckboxWithChangeEvent {
/** Test component with reactive forms */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox, ReactiveFormsModule],
})
class CheckboxWithFormControl {
@@ -1388,7 +1373,6 @@ class CheckboxWithFormControl {
/** Test component without label */
@Component({
template: `{{ label }}`,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithoutLabel {
@@ -1398,14 +1382,12 @@ class CheckboxWithoutLabel {
/** Test component with the native tabindex attribute. */
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithTabindexAttr {}
@Component({
template: ``,
- standalone: true,
imports: [MatCheckbox],
})
class CheckboxWithStaticAriaAttributes {}
diff --git a/src/material/checkbox/testing/checkbox-harness.spec.ts b/src/material/checkbox/testing/checkbox-harness.spec.ts
index 5d5d9fc2fcbc..aabff5d91b00 100644
--- a/src/material/checkbox/testing/checkbox-harness.spec.ts
+++ b/src/material/checkbox/testing/checkbox-harness.spec.ts
@@ -199,7 +199,6 @@ describe('MatCheckboxHarness', () => {
Second checkbox
`,
- standalone: true,
imports: [MatCheckboxModule, ReactiveFormsModule],
})
class CheckboxHarnessTest {
diff --git a/src/material/chips/chip-edit-input.spec.ts b/src/material/chips/chip-edit-input.spec.ts
index e7207d94529f..5a056f48fc0e 100644
--- a/src/material/chips/chip-edit-input.spec.ts
+++ b/src/material/chips/chip-edit-input.spec.ts
@@ -42,7 +42,6 @@ describe('MatChipEditInput', () => {
@Component({
template: ``,
- standalone: true,
imports: [MatChipsModule],
})
class ChipEditInputContainer {}
diff --git a/src/material/chips/chip-remove.spec.ts b/src/material/chips/chip-remove.spec.ts
index 4c05cf46d9ec..3e7525af81f4 100644
--- a/src/material/chips/chip-remove.spec.ts
+++ b/src/material/chips/chip-remove.spec.ts
@@ -116,7 +116,6 @@ describe('Chip Remove', () => {
`,
- standalone: true,
imports: [MatChipsModule],
})
class TestChip {
diff --git a/src/material/chips/chip-row.spec.ts b/src/material/chips/chip-row.spec.ts
index 545e22d86171..57f55050a712 100644
--- a/src/material/chips/chip-row.spec.ts
+++ b/src/material/chips/chip-row.spec.ts
@@ -424,7 +424,6 @@ describe('Row Chips', () => {
}
`,
- standalone: true,
imports: [MatChipsModule],
})
class SingleChip {
diff --git a/src/material/chips/chip-set.spec.ts b/src/material/chips/chip-set.spec.ts
index 61192a4328a7..c64eef460db0 100644
--- a/src/material/chips/chip-set.spec.ts
+++ b/src/material/chips/chip-set.spec.ts
@@ -115,7 +115,6 @@ describe('MatChipSet', () => {
}
`,
- standalone: true,
imports: [MatChipsModule],
})
class BasicChipSet {
@@ -133,7 +132,6 @@ class BasicChipSet {
}
`,
- standalone: true,
imports: [MatChipsModule],
})
class IndirectDescendantsChipSet extends BasicChipSet {}
diff --git a/src/material/chips/chip.spec.ts b/src/material/chips/chip.spec.ts
index cd022b7ec7a3..35b54129637a 100644
--- a/src/material/chips/chip.spec.ts
+++ b/src/material/chips/chip.spec.ts
@@ -164,7 +164,6 @@ describe('MatChip', () => {
}
`,
- standalone: true,
imports: [MatChipsModule],
})
class SingleChip {
@@ -183,21 +182,18 @@ class SingleChip {
@Component({
template: `Hello`,
- standalone: true,
imports: [MatChipsModule],
})
class BasicChip {}
@Component({
template: `Hello`,
- standalone: true,
imports: [MatChipsModule],
})
class BasicChipWithStaticTabindex {}
@Component({
template: `Hello`,
- standalone: true,
imports: [MatChipsModule],
})
class BasicChipWithBoundTabindex {
diff --git a/src/material/chips/testing/chip-grid-harness.spec.ts b/src/material/chips/testing/chip-grid-harness.spec.ts
index 0e022287be52..30fb679e7389 100644
--- a/src/material/chips/testing/chip-grid-harness.spec.ts
+++ b/src/material/chips/testing/chip-grid-harness.spec.ts
@@ -135,7 +135,6 @@ describe('MatChipGridHarness', () => {
`,
- standalone: true,
imports: [MatChipsModule, ReactiveFormsModule],
})
class ChipGridHarnessTest {
diff --git a/src/material/chips/testing/chip-harness.spec.ts b/src/material/chips/testing/chip-harness.spec.ts
index 64c2ec44e4c4..2509afa602e3 100644
--- a/src/material/chips/testing/chip-harness.spec.ts
+++ b/src/material/chips/testing/chip-harness.spec.ts
@@ -94,7 +94,6 @@ describe('MatChipHarness', () => {
Chip Row
`,
- standalone: true,
imports: [MatChipsModule, MatIconModule],
})
class ChipHarnessTest {
diff --git a/src/material/chips/testing/chip-input-harness.spec.ts b/src/material/chips/testing/chip-input-harness.spec.ts
index 913087581098..2172c1b1aa18 100644
--- a/src/material/chips/testing/chip-input-harness.spec.ts
+++ b/src/material/chips/testing/chip-input-harness.spec.ts
@@ -94,7 +94,6 @@ describe('MatChipInputHarness', () => {
`,
- standalone: true,
imports: [MatChipsModule],
})
class ChipInputHarnessTest {
diff --git a/src/material/chips/testing/chip-listbox-harness.spec.ts b/src/material/chips/testing/chip-listbox-harness.spec.ts
index 237706b1e8eb..c3db9add005f 100644
--- a/src/material/chips/testing/chip-listbox-harness.spec.ts
+++ b/src/material/chips/testing/chip-listbox-harness.spec.ts
@@ -125,7 +125,6 @@ describe('MatChipListboxHarness', () => {
}
`,
- standalone: true,
imports: [MatChipsModule],
})
class ChipListboxHarnessTest {
diff --git a/src/material/chips/testing/chip-option-harness.spec.ts b/src/material/chips/testing/chip-option-harness.spec.ts
index 44a1a21eb721..5f5be693bcd8 100644
--- a/src/material/chips/testing/chip-option-harness.spec.ts
+++ b/src/material/chips/testing/chip-option-harness.spec.ts
@@ -88,7 +88,6 @@ describe('MatChipOptionHarness', () => {
`,
- standalone: true,
imports: [MatChipsModule],
})
class ChipOptionHarnessTest {}
diff --git a/src/material/chips/testing/chip-row-harness.spec.ts b/src/material/chips/testing/chip-row-harness.spec.ts
index 6f62fc3b0453..419e96d104eb 100644
--- a/src/material/chips/testing/chip-row-harness.spec.ts
+++ b/src/material/chips/testing/chip-row-harness.spec.ts
@@ -41,7 +41,6 @@ describe('MatChipRowHarness', () => {
`,
- standalone: true,
imports: [MatChipsModule],
})
class ChipRowHarnessTest {
diff --git a/src/material/chips/testing/chip-set-harness.spec.ts b/src/material/chips/testing/chip-set-harness.spec.ts
index 576784f358df..2d5bc7b3af14 100644
--- a/src/material/chips/testing/chip-set-harness.spec.ts
+++ b/src/material/chips/testing/chip-set-harness.spec.ts
@@ -39,7 +39,6 @@ describe('MatChipSetHarness', () => {
Chip C
`,
- standalone: true,
imports: [MatChipsModule],
})
class ChipSetHarnessTest {}
diff --git a/src/material/core/option/option.spec.ts b/src/material/core/option/option.spec.ts
index cd0fd98aaf65..a358a65f93a5 100644
--- a/src/material/core/option/option.spec.ts
+++ b/src/material/core/option/option.spec.ts
@@ -243,7 +243,6 @@ describe('MatOption component', () => {
@Component({
template: ``,
- standalone: true,
imports: [MatOptionModule],
})
class BasicOption {
@@ -257,7 +256,6 @@ class BasicOption {
Option
`,
- standalone: true,
imports: [MatOptionModule],
})
class InsideGroup {}
diff --git a/src/material/core/ripple/ripple.spec.ts b/src/material/core/ripple/ripple.spec.ts
index 96019a45fcd8..5a42b6eb9920 100644
--- a/src/material/core/ripple/ripple.spec.ts
+++ b/src/material/core/ripple/ripple.spec.ts
@@ -836,7 +836,6 @@ describe('MatRipple', () => {
style="position: relative; width:300px; height:200px;">
`,
- standalone: true,
imports: [MatRippleModule],
})
class BasicRippleContainer {
@@ -856,7 +855,6 @@ class BasicRippleContainer {
`,
- standalone: true,
imports: [MatRippleModule],
})
class RippleContainerWithInputBindings {
@@ -871,14 +869,12 @@ class RippleContainerWithInputBindings {
@Component({
template: ``,
- standalone: true,
imports: [MatRippleModule],
})
class RippleContainerWithoutBindings {}
@Component({
template: `@if (!isDestroyed) {}`,
- standalone: true,
imports: [MatRippleModule],
})
class RippleContainerWithNgIf {
@@ -890,7 +886,6 @@ class RippleContainerWithNgIf {
styles: `* { transition: none !important; }`,
template: ``,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [MatRippleModule],
})
class RippleCssTransitionNone {}
@@ -899,7 +894,6 @@ class RippleCssTransitionNone {}
styles: `* { transition-duration: 0ms !important; }`,
template: ``,
encapsulation: ViewEncapsulation.None,
- standalone: true,
imports: [MatRippleModule],
})
class RippleCssTransitionDurationZero {}
@@ -910,7 +904,6 @@ class RippleCssTransitionDurationZero {}
Click to remove this element.
}
`,
- standalone: true,
imports: [MatRippleModule],
})
class RippleWithDomRemovalOnClick {
diff --git a/src/material/core/ripple/ripple.zone.spec.ts b/src/material/core/ripple/ripple.zone.spec.ts
index 3ec711a2536a..01dbc761c150 100644
--- a/src/material/core/ripple/ripple.zone.spec.ts
+++ b/src/material/core/ripple/ripple.zone.spec.ts
@@ -52,7 +52,6 @@ describe('MatRipple Zone.js integration', () => {
style="position: relative; width:300px; height:200px;">
`,
- standalone: true,
imports: [MatRippleModule],
})
class BasicRippleContainer {
diff --git a/src/material/core/testing/optgroup-harness.spec.ts b/src/material/core/testing/optgroup-harness.spec.ts
index 465418099898..f2fc0492d5ae 100644
--- a/src/material/core/testing/optgroup-harness.spec.ts
+++ b/src/material/core/testing/optgroup-harness.spec.ts
@@ -72,7 +72,6 @@ describe('MatOptgroupHarness', () => {
Disabled option 1
`,
- standalone: true,
imports: [MatOptionModule],
})
class OptgroupHarnessTest {}
diff --git a/src/material/core/testing/option-harness.spec.ts b/src/material/core/testing/option-harness.spec.ts
index 1d94e7cff299..c10cba3afc89 100644
--- a/src/material/core/testing/option-harness.spec.ts
+++ b/src/material/core/testing/option-harness.spec.ts
@@ -112,7 +112,6 @@ describe('MatOptionHarness', () => {
Plain option
Disabled option
`,
- standalone: true,
imports: [MatOptionModule],
})
class OptionHarnessTest implements MatOptionParentComponent {
diff --git a/src/material/datepicker/calendar-body.spec.ts b/src/material/datepicker/calendar-body.spec.ts
index 1e40e18d6ab1..99c3cf246955 100644
--- a/src/material/datepicker/calendar-body.spec.ts
+++ b/src/material/datepicker/calendar-body.spec.ts
@@ -726,7 +726,6 @@ describe('MatCalendarBody', () => {
[activeCell]="10"
(selectedValueChange)="onSelect($event)">
`,
- standalone: true,
imports: [MatCalendarBody],
})
class StandardCalendarBody {
@@ -759,7 +758,6 @@ class StandardCalendarBody {
(dragEnded)="dragEnded($event)"
>
`,
- standalone: true,
imports: [MatCalendarBody],
})
class RangeCalendarBody {
diff --git a/src/material/datepicker/calendar-header.spec.ts b/src/material/datepicker/calendar-header.spec.ts
index c899dcd1285b..d9ed1edf6415 100644
--- a/src/material/datepicker/calendar-header.spec.ts
+++ b/src/material/datepicker/calendar-header.spec.ts
@@ -384,7 +384,6 @@ describe('MatCalendarHeader', () => {
(yearSelected)="selectedYear=$event"
(monthSelected)="selectedMonth=$event">
`,
- standalone: true,
imports: [MatNativeDateModule, MatDatepickerModule],
})
class StandardCalendar {
@@ -402,7 +401,6 @@ class StandardCalendar {
[maxDate]="maxDate">
`,
- standalone: true,
imports: [MatNativeDateModule, MatDatepickerModule],
})
class CalendarWithMinMaxDate {
diff --git a/src/material/datepicker/date-range-input.spec.ts b/src/material/datepicker/date-range-input.spec.ts
index b56002e368cf..b5f594457af4 100644
--- a/src/material/datepicker/date-range-input.spec.ts
+++ b/src/material/datepicker/date-range-input.spec.ts
@@ -1176,7 +1176,6 @@ describe('MatDateRangeInput', () => {
#rangePicker>
`,
- standalone: true,
imports: [
MatDateRangeInput,
MatStartDate,
@@ -1219,7 +1218,6 @@ class StandardRangePicker {
`,
- standalone: true,
imports: [MatDateRangeInput, MatStartDate, MatEndDate, MatFormField, MatDateRangePicker],
})
class RangePickerNoStart {}
@@ -1234,7 +1232,6 @@ class RangePickerNoStart {}
`,
- standalone: true,
imports: [MatDateRangeInput, MatStartDate, MatEndDate, MatFormField, MatDateRangePicker],
})
class RangePickerNoEnd {}
@@ -1250,7 +1247,6 @@ class RangePickerNoEnd {}
`,
- standalone: true,
imports: [
MatDateRangeInput,
MatStartDate,
@@ -1297,7 +1293,6 @@ class RangePickerNgModel {
`,
- standalone: true,
imports: [MatDateRangeInput, MatStartDate, MatEndDate, MatFormField, MatDateRangePicker],
})
class RangePickerNoLabel {
@@ -1314,7 +1309,6 @@ class RangePickerNoLabel {
multi: true,
},
],
- standalone: true,
})
class CustomValidator implements Validator {
validate = jasmine.createSpy('validate spy').and.returnValue(null);
@@ -1331,7 +1325,6 @@ class CustomValidator implements Validator {
`,
- standalone: true,
imports: [
MatDateRangeInput,
MatStartDate,
@@ -1361,7 +1354,6 @@ class RangePickerWithCustomValidator {
`,
- standalone: true,
imports: [MatDateRangeInput, MatStartDate, MatEndDate, MatFormField, MatDateRangePicker],
})
class RangePickerErrorStateMatcher {
diff --git a/src/material/datepicker/month-view.spec.ts b/src/material/datepicker/month-view.spec.ts
index aa3bdf732e84..45823af1fd8f 100644
--- a/src/material/datepicker/month-view.spec.ts
+++ b/src/material/datepicker/month-view.spec.ts
@@ -858,7 +858,6 @@ describe('MatMonthView', () => {
(dragEnded)="dragEnded($event)"
[activeDrag]="activeDrag">
`,
- standalone: true,
imports: [MatMonthView],
})
class StandardMonthView {
@@ -890,7 +889,6 @@ class StandardMonthView {
[dateFilter]="dateFilter"
[minDate]="minDate"
[maxDate]="maxDate">`,
- standalone: true,
imports: [MatMonthView],
})
class MonthViewWithDateFilter {
@@ -904,7 +902,6 @@ class MonthViewWithDateFilter {
@Component({
template: ``,
- standalone: true,
imports: [MatMonthView],
})
class MonthViewWithDateClass {
diff --git a/src/material/datepicker/multi-year-view.spec.ts b/src/material/datepicker/multi-year-view.spec.ts
index bf1bcf5f0449..f305f4008daa 100644
--- a/src/material/datepicker/multi-year-view.spec.ts
+++ b/src/material/datepicker/multi-year-view.spec.ts
@@ -401,7 +401,6 @@ describe('MatMultiYearView', () => {
template: `
`,
- standalone: true,
imports: [MatMultiYearView],
})
class StandardMultiYearView {
@@ -420,7 +419,6 @@ class StandardMultiYearView {
[minDate]="minDate"
[maxDate]="maxDate">
`,
- standalone: true,
imports: [MatMultiYearView],
})
class MultiYearViewWithDateFilter {
@@ -437,7 +435,6 @@ class MultiYearViewWithDateFilter {
`,
- standalone: true,
imports: [MatMultiYearView],
})
class MultiYearViewWithMinMaxDate {
@@ -450,7 +447,6 @@ class MultiYearViewWithMinMaxDate {
template: `
`,
- standalone: true,
imports: [MatMultiYearView],
})
class MultiYearViewWithDateClass {
diff --git a/src/material/datepicker/testing/calendar-harness.spec.ts b/src/material/datepicker/testing/calendar-harness.spec.ts
index e4963994d7ae..31bab381a5f9 100644
--- a/src/material/datepicker/testing/calendar-harness.spec.ts
+++ b/src/material/datepicker/testing/calendar-harness.spec.ts
@@ -329,7 +329,6 @@ describe('MatCalendarHarness', () => {
[comparisonEnd]="comparisonEnd"
(selectedChange)="rangeChanged($event)">
`,
- standalone: true,
imports: [MatNativeDateModule, MatDatepickerModule],
})
class CalendarHarnessTest {
diff --git a/src/material/datepicker/testing/date-range-input-harness.spec.ts b/src/material/datepicker/testing/date-range-input-harness.spec.ts
index fab9074154e0..0877e381e76d 100644
--- a/src/material/datepicker/testing/date-range-input-harness.spec.ts
+++ b/src/material/datepicker/testing/date-range-input-harness.spec.ts
@@ -269,7 +269,6 @@ describe('matDateRangeInputHarness', () => {
`,
- standalone: true,
imports: [
MatNativeDateModule,
MatDateRangeInput,
diff --git a/src/material/datepicker/testing/datepicker-input-harness.spec.ts b/src/material/datepicker/testing/datepicker-input-harness.spec.ts
index 178aeeb15ccc..25cca010c24c 100644
--- a/src/material/datepicker/testing/datepicker-input-harness.spec.ts
+++ b/src/material/datepicker/testing/datepicker-input-harness.spec.ts
@@ -208,7 +208,6 @@ describe('MatDatepickerInputHarness', () => {
`,
- standalone: true,
imports: [MatNativeDateModule, MatDatepickerModule, FormsModule],
})
class DatepickerInputHarnessTest {
diff --git a/src/material/datepicker/testing/datepicker-toggle-harness.spec.ts b/src/material/datepicker/testing/datepicker-toggle-harness.spec.ts
index ab72b88fb2ee..238b643686d2 100644
--- a/src/material/datepicker/testing/datepicker-toggle-harness.spec.ts
+++ b/src/material/datepicker/testing/datepicker-toggle-harness.spec.ts
@@ -89,7 +89,6 @@ describe('MatDatepickerToggleHarness', () => {
`,
- standalone: true,
imports: [MatNativeDateModule, MatDatepickerModule],
})
class DatepickerToggleHarnessTest {
diff --git a/src/material/datepicker/year-view.spec.ts b/src/material/datepicker/year-view.spec.ts
index ce8b3aec18f6..e833fa5153f0 100644
--- a/src/material/datepicker/year-view.spec.ts
+++ b/src/material/datepicker/year-view.spec.ts
@@ -397,7 +397,6 @@ describe('MatYearView', () => {
template: `
`,
- standalone: true,
imports: [MatYearView],
})
class StandardYearView {
@@ -415,7 +414,6 @@ class StandardYearView {
[dateFilter]="dateFilter"
[minDate]="minDate"
[maxDate]="maxDate">`,
- standalone: true,
imports: [MatYearView],
})
class YearViewWithDateFilter {
@@ -435,7 +433,6 @@ class YearViewWithDateFilter {
@Component({
template: ``,
- standalone: true,
imports: [MatYearView],
})
class YearViewWithDateClass {
diff --git a/src/material/dialog/dialog.spec.ts b/src/material/dialog/dialog.spec.ts
index 1523e8ba9892..1aa69b524ff6 100644
--- a/src/material/dialog/dialog.spec.ts
+++ b/src/material/dialog/dialog.spec.ts
@@ -1581,7 +1581,6 @@ describe('MatDialog', () => {
it('should set the aria-labelledby attribute to the id of the title under OnPush host', fakeAsync(() => {
@Component({
- standalone: true,
imports: [MatDialogTitle],
template: `@if (showTitle()) { This is the first title
}`,
})
@@ -1592,7 +1591,6 @@ describe('MatDialog', () => {
@Component({
template: '',
selector: 'child',
- standalone: true,
})
class Child {
readonly viewContainerRef = inject(ViewContainerRef);
@@ -1606,7 +1604,6 @@ describe('MatDialog', () => {
}
@Component({
- standalone: true,
imports: [Child],
template: ``,
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -2113,7 +2110,6 @@ describe('MatDialog with explicit injector provided', () => {
@Directive({
selector: 'dir-with-view-container',
- standalone: true,
})
class DirectiveWithViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -2131,7 +2127,6 @@ class ComponentWithOnPushViewContainer {
@Component({
selector: 'arbitrary-component',
template: `@if (showChildView) {}`,
- standalone: true,
imports: [DirectiveWithViewContainer],
})
class ComponentWithChildViewContainer {
@@ -2148,7 +2143,6 @@ class ComponentWithChildViewContainer {
selector: 'arbitrary-component-with-template-ref',
template: `
Cheese {{localValue}} {{data?.value}}{{setDialogRef(dialogRef)}}`,
- standalone: true,
})
class ComponentWithTemplateRef {
localValue: string;
@@ -2165,7 +2159,6 @@ class ComponentWithTemplateRef {
/** Simple component for testing ComponentPortal. */
@Component({
template: 'Pizza
',
- standalone: true,
})
class PizzaMsg {
dialogRef = inject>(MatDialogRef);
@@ -2196,7 +2189,6 @@ class PizzaMsg {
`,
- standalone: true,
imports: [MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose],
})
class ContentElementDialog {
@@ -2232,7 +2224,6 @@ class ContentElementDialog {
`,
- standalone: true,
imports: [MatDialogTitle, MatDialogContent, MatDialogActions, MatDialogClose],
})
class ComponentWithContentElementTemplateRef {
@@ -2248,7 +2239,6 @@ class ComponentWithContentElementTemplateRef {
@Component({
template: '',
providers: [MatDialog],
- standalone: true,
})
class ComponentThatProvidesMatDialog {
dialog = inject(MatDialog);
@@ -2257,7 +2247,6 @@ class ComponentThatProvidesMatDialog {
/** Simple component for testing ComponentPortal. */
@Component({
template: '',
- standalone: true,
})
class DialogWithInjectedData {
data = inject(MAT_DIALOG_DATA);
@@ -2265,7 +2254,6 @@ class DialogWithInjectedData {
@Component({
template: 'Pasta
',
- standalone: true,
})
class DialogWithoutFocusableElements {}
@@ -2278,7 +2266,6 @@ class ShadowDomComponent {}
@Component({
template: '',
- standalone: true,
})
class ModuleBoundDialogParentComponent {
private _injector = inject(Injector);
@@ -2301,7 +2288,6 @@ class ModuleBoundDialogService {
@Component({
template: '',
- standalone: true,
imports: [forwardRef(() => ModuleBoundDialogChildComponent)],
})
class ModuleBoundDialogComponent {}
@@ -2309,7 +2295,6 @@ class ModuleBoundDialogComponent {}
@Component({
selector: 'module-bound-dialog-child-component',
template: '{{service.name}}
',
- standalone: true,
})
class ModuleBoundDialogChildComponent {
service = inject(ModuleBoundDialogService);
diff --git a/src/material/dialog/dialog.zone.spec.ts b/src/material/dialog/dialog.zone.spec.ts
index 4369949cfbe6..efbbb3496553 100644
--- a/src/material/dialog/dialog.zone.spec.ts
+++ b/src/material/dialog/dialog.zone.spec.ts
@@ -73,7 +73,6 @@ describe('MatDialog', () => {
@Directive({
selector: 'dir-with-view-container',
- standalone: true,
})
class DirectiveWithViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -82,7 +81,6 @@ class DirectiveWithViewContainer {
@Component({
selector: 'arbitrary-component',
template: `@if (showChildView) {}`,
- standalone: true,
imports: [DirectiveWithViewContainer],
})
class ComponentWithChildViewContainer {
@@ -98,7 +96,6 @@ class ComponentWithChildViewContainer {
/** Simple component for testing ComponentPortal. */
@Component({
template: 'Pizza
',
- standalone: true,
})
class PizzaMsg {
dialogRef = inject>(MatDialogRef);
diff --git a/src/material/dialog/testing/dialog-harness.spec.ts b/src/material/dialog/testing/dialog-harness.spec.ts
index 9a166ebd0037..174529ffc617 100644
--- a/src/material/dialog/testing/dialog-harness.spec.ts
+++ b/src/material/dialog/testing/dialog-harness.spec.ts
@@ -122,7 +122,6 @@ describe('MatDialogHarness', () => {
`,
- standalone: true,
imports: [MatDialogTitle, MatDialogContent, MatDialogActions],
})
class DialogHarnessTest {
diff --git a/src/material/dialog/testing/dialog-opener.spec.ts b/src/material/dialog/testing/dialog-opener.spec.ts
index 81666539af4e..8d87ef7d0fed 100644
--- a/src/material/dialog/testing/dialog-opener.spec.ts
+++ b/src/material/dialog/testing/dialog-opener.spec.ts
@@ -61,7 +61,6 @@ interface ExampleDialogResult {
Data: {{data}}
`,
- standalone: true,
})
class ExampleComponent {
dialogRef = inject>(MatDialogRef);
diff --git a/src/material/divider/divider.spec.ts b/src/material/divider/divider.spec.ts
index 3bb8c08c8aee..1884b94bcb5f 100644
--- a/src/material/divider/divider.spec.ts
+++ b/src/material/divider/divider.spec.ts
@@ -63,7 +63,6 @@ describe('MatDivider', () => {
@Component({
template: ``,
- standalone: true,
imports: [MatDividerModule],
})
class MatDividerTestComponent {
diff --git a/src/material/divider/testing/divider-harness.spec.ts b/src/material/divider/testing/divider-harness.spec.ts
index bb4e8a911bbb..c0b784c62488 100644
--- a/src/material/divider/testing/divider-harness.spec.ts
+++ b/src/material/divider/testing/divider-harness.spec.ts
@@ -42,7 +42,6 @@ describe('MatLegacyButtonHarness', () => {
`,
- standalone: true,
imports: [MatDividerModule],
})
class DividerHarnessTest {}
diff --git a/src/material/expansion/accordion.spec.ts b/src/material/expansion/accordion.spec.ts
index cfbfa993da27..64cb07a80b7d 100644
--- a/src/material/expansion/accordion.spec.ts
+++ b/src/material/expansion/accordion.spec.ts
@@ -320,7 +320,6 @@ describe('MatAccordion', () => {
}
`,
- standalone: true,
imports: [MatExpansionModule],
})
class SetOfItems {
@@ -349,7 +348,6 @@ class SetOfItems {
Content 1
`,
- standalone: true,
imports: [MatExpansionModule],
})
class NestedAccordions {
@@ -369,7 +367,6 @@ class NestedAccordions {
`,
- standalone: true,
imports: [MatExpansionModule],
})
class NestedPanel {
@@ -385,7 +382,6 @@ class NestedPanel {
Content
`,
- standalone: true,
imports: [MatExpansionModule],
})
class AccordionWithHideToggle {
@@ -400,7 +396,6 @@ class AccordionWithHideToggle {
Content
`,
- standalone: true,
imports: [MatExpansionModule],
})
class AccordionWithTogglePosition {
diff --git a/src/material/expansion/expansion.spec.ts b/src/material/expansion/expansion.spec.ts
index 6931cde188b3..2fedd3188d8a 100644
--- a/src/material/expansion/expansion.spec.ts
+++ b/src/material/expansion/expansion.spec.ts
@@ -561,7 +561,6 @@ describe('MatExpansionPanel', () => {
Some content
`,
- standalone: true,
imports: [MatExpansionModule],
})
class PanelWithContent {
@@ -583,7 +582,6 @@ class PanelWithContent {
}
`,
- standalone: true,
imports: [MatExpansionModule],
})
class PanelWithContentInNgIf {
@@ -600,7 +598,6 @@ class PanelWithContentInNgIf {
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores officia, aliquam dicta
corrupti maxime voluptate accusamus impedit atque incidunt pariatur.
`,
- standalone: true,
imports: [MatExpansionModule],
})
class PanelWithCustomMargin {
@@ -617,7 +614,6 @@ class PanelWithCustomMargin {
`,
- standalone: true,
imports: [MatExpansionModule],
})
class LazyPanelWithContent {
@@ -633,7 +629,6 @@ class LazyPanelWithContent {
Some content
`,
- standalone: true,
imports: [MatExpansionModule],
})
class LazyPanelOpenOnLoad {}
@@ -643,7 +638,6 @@ class LazyPanelOpenOnLoad {}
Panel Title
`,
- standalone: true,
imports: [MatExpansionModule],
})
class PanelWithTwoWayBinding {
@@ -655,7 +649,6 @@ class PanelWithTwoWayBinding {
Panel Title
`,
- standalone: true,
imports: [MatExpansionModule],
})
class PanelWithHeaderTabindex {}
@@ -670,7 +663,6 @@ class PanelWithHeaderTabindex {}
`,
- standalone: true,
imports: [MatExpansionModule],
})
class NestedLazyPanelWithContent {
diff --git a/src/material/expansion/testing/expansion-harness.spec.ts b/src/material/expansion/testing/expansion-harness.spec.ts
index 807462e41b47..cc93787cf573 100644
--- a/src/material/expansion/testing/expansion-harness.spec.ts
+++ b/src/material/expansion/testing/expansion-harness.spec.ts
@@ -328,7 +328,6 @@ function getActiveElementTag() {
Outside of expansion panel
`,
- standalone: true,
imports: [MatExpansionModule],
})
class ExpansionHarnessTestComponent {
diff --git a/src/material/form-field/testing/form-field-harness.spec.ts b/src/material/form-field/testing/form-field-harness.spec.ts
index b5d7642b1041..dc6a8e34aad2 100644
--- a/src/material/form-field/testing/form-field-harness.spec.ts
+++ b/src/material/form-field/testing/form-field-harness.spec.ts
@@ -357,7 +357,6 @@ describe('MatFormFieldHarness', () => {
`,
- standalone: true,
imports: [
ReactiveFormsModule,
MatNativeDateModule,
diff --git a/src/material/grid-list/testing/grid-list-harness.spec.ts b/src/material/grid-list/testing/grid-list-harness.spec.ts
index 621f39a86e69..f0ceb23f1918 100644
--- a/src/material/grid-list/testing/grid-list-harness.spec.ts
+++ b/src/material/grid-list/testing/grid-list-harness.spec.ts
@@ -182,7 +182,6 @@ describe('MatGridListHarness', () => {
`,
- standalone: true,
imports: [MatGridListModule],
})
class GridListHarnessTest {
diff --git a/src/material/icon/icon.spec.ts b/src/material/icon/icon.spec.ts
index 84f9971285b9..3649f4aa94ee 100644
--- a/src/material/icon/icon.spec.ts
+++ b/src/material/icon/icon.spec.ts
@@ -1464,7 +1464,6 @@ describe('MatIcon with default options', () => {
@Component({
template: `{{iconName}}`,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithLigature {
@@ -1473,7 +1472,6 @@ class IconWithLigature {
@Component({
template: ``,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithLigatureByAttribute {
@@ -1482,7 +1480,6 @@ class IconWithLigatureByAttribute {
@Component({
template: `{{iconName}}`,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithColor {
@@ -1492,7 +1489,6 @@ class IconWithColor {
@Component({
template: ``,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithCustomFontCss {
@@ -1502,7 +1498,6 @@ class IconWithCustomFontCss {
@Component({
template: ``,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconFromSvgName {
@@ -1511,14 +1506,12 @@ class IconFromSvgName {
@Component({
template: 'face',
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithAriaHiddenFalse {}
@Component({
template: `@if (showIcon) {{{iconName}}}`,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithBindingAndNgIf {
@@ -1528,7 +1521,6 @@ class IconWithBindingAndNgIf {
@Component({
template: `{{iconName}}`,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class InlineIcon {
@@ -1537,7 +1529,6 @@ class InlineIcon {
@Component({
template: `Hello
`,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class SvgIconWithUserContent {
@@ -1546,7 +1537,6 @@ class SvgIconWithUserContent {
@Component({
template: 'house',
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class IconWithLigatureAndSvgBinding {
@@ -1555,7 +1545,6 @@ class IconWithLigatureAndSvgBinding {
@Component({
template: ``,
- standalone: true,
imports: [HttpClientTestingModule, MatIconModule],
})
class BlankIcon {
diff --git a/src/material/icon/testing/icon-harness.spec.ts b/src/material/icon/testing/icon-harness.spec.ts
index 892badea88fc..f966db30c634 100644
--- a/src/material/icon/testing/icon-harness.spec.ts
+++ b/src/material/icon/testing/icon-harness.spec.ts
@@ -114,7 +114,6 @@ describe('MatIconHarness', () => {
ligature_icon_with_additional_content Hello
ligature_icon_with_indirect_name
`,
- standalone: true,
imports: [MatIconModule],
})
class IconHarnessTest {}
diff --git a/src/material/input/testing/input-harness.spec.ts b/src/material/input/testing/input-harness.spec.ts
index 49232e69ae02..e546a4561b1d 100644
--- a/src/material/input/testing/input-harness.spec.ts
+++ b/src/material/input/testing/input-harness.spec.ts
@@ -279,7 +279,6 @@ describe('MatInputHarness', () => {
`,
- standalone: true,
imports: [MatInputModule, FormsModule],
})
class InputHarnessTest {
diff --git a/src/material/input/testing/native-select-harness.spec.ts b/src/material/input/testing/native-select-harness.spec.ts
index 5e2249fcf580..4bc7b6c0d5a4 100644
--- a/src/material/input/testing/native-select-harness.spec.ts
+++ b/src/material/input/testing/native-select-harness.spec.ts
@@ -219,7 +219,6 @@ describe('MatNativeSelectHarness', () => {
`,
- standalone: true,
imports: [MatInputModule, FormsModule],
})
class SelectHarnessTest {
diff --git a/src/material/list/list.spec.ts b/src/material/list/list.spec.ts
index 6ba78e3d5508..171467313070 100644
--- a/src/material/list/list.spec.ts
+++ b/src/material/list/list.spec.ts
@@ -434,7 +434,6 @@ class BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithOneAnchorItem extends BaseTestList {
@@ -450,7 +449,6 @@ class ListWithOneAnchorItem extends BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class NavListWithOneAnchorItem extends BaseTestList {
@@ -469,7 +467,6 @@ class NavListWithOneAnchorItem extends BaseTestList {
}
`,
- standalone: true,
imports: [MatListModule],
})
class NavListWithActivatedItem extends BaseTestList {
@@ -488,7 +485,6 @@ class NavListWithActivatedItem extends BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class ActionListWithoutType extends BaseTestList {
@@ -504,7 +500,6 @@ class ActionListWithoutType extends BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class ActionListWithType extends BaseTestList {
@@ -518,7 +513,6 @@ class ActionListWithType extends BaseTestList {
}
`,
- standalone: true,
imports: [MatListModule],
})
class ActionListWithDisabledList extends BaseTestList {
@@ -532,7 +526,6 @@ class ActionListWithDisabledList extends BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class ActionListWithDisabledItem extends BaseTestList {
@@ -547,7 +540,6 @@ class ActionListWithDisabledItem extends BaseTestList {
Paprika
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithOneItem extends BaseTestList {}
@@ -563,7 +555,6 @@ class ListWithOneItem extends BaseTestList {}
}
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithTwoLineItem extends BaseTestList {}
@@ -579,7 +570,6 @@ class ListWithTwoLineItem extends BaseTestList {}
}
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithThreeLineItem extends BaseTestList {}
@@ -595,7 +585,6 @@ class ListWithThreeLineItem extends BaseTestList {}
Pepper
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithAvatar extends BaseTestList {}
@@ -610,7 +599,6 @@ class ListWithAvatar extends BaseTestList {}
}
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithItemWithCssClass extends BaseTestList {}
@@ -628,7 +616,6 @@ class ListWithItemWithCssClass extends BaseTestList {}
}
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithDynamicNumberOfLines extends BaseTestList {}
@@ -640,7 +627,6 @@ class ListWithDynamicNumberOfLines extends BaseTestList {}
{{item.name}}
}
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithMultipleItems extends BaseTestList {}
@@ -652,7 +638,6 @@ class ListWithMultipleItems extends BaseTestList {}
Two
Three
`,
- standalone: true,
imports: [MatListModule],
})
class ListWithDisabledItems {
@@ -662,7 +647,6 @@ class ListWithDisabledItems {
@Component({
template: ``,
- standalone: true,
imports: [MatListModule],
})
class StandaloneListItem {}
diff --git a/src/material/list/selection-list.spec.ts b/src/material/list/selection-list.spec.ts
index ec13b1283864..3bff0576717d 100644
--- a/src/material/list/selection-list.spec.ts
+++ b/src/material/list/selection-list.spec.ts
@@ -1762,7 +1762,6 @@ describe('MatSelectionList with forms', () => {
}
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithListOptions {
@@ -1791,7 +1790,6 @@ class SelectionListWithListOptions {
Drafts
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithCheckboxPositionAfter {}
@@ -1812,7 +1810,6 @@ class SelectionListWithCheckboxPositionAfter {}
Drafts
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithListDisabled {
@@ -1825,7 +1822,6 @@ class SelectionListWithListDisabled {
Item
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithDisabledOption {
@@ -1840,7 +1836,6 @@ class SelectionListWithDisabledOption {
Pre-selected - Item #3
Not selected - Item #4
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithSelectedOption {}
@@ -1851,7 +1846,6 @@ class SelectionListWithSelectedOption {}
Not selected - Item #1
Pre-selected - Item #2
`,
- standalone: true,
imports: [MatListModule],
})
class SingleSelectionListWithSelectedOption {}
@@ -1861,7 +1855,6 @@ class SingleSelectionListWithSelectedOption {}
Item
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithSelectedOptionAndValue {
@@ -1875,7 +1868,6 @@ class SelectionListWithSelectedOptionAndValue {
Inbox
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithOnlyOneOption {}
@@ -1890,7 +1882,6 @@ class SelectionListWithOnlyOneOption {}
{{option}}
}
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithModel {
@@ -1913,7 +1904,6 @@ class SelectionListWithModel {
}
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithFormControl {
@@ -1928,7 +1918,6 @@ class SelectionListWithFormControl {
Option 1
Option 2
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithPreselectedOption {
@@ -1941,7 +1930,6 @@ class SelectionListWithPreselectedOption {
Option 1
Option 2
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithPreselectedOptionAndModel {
@@ -1957,7 +1945,6 @@ class SelectionListWithPreselectedOptionAndModel {
}
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithPreselectedFormControlOnPush {
@@ -1972,7 +1959,6 @@ class SelectionListWithPreselectedFormControlOnPush {
{{option.label}}
}
`,
- standalone: true,
imports: [MatListModule, FormsModule, ReactiveFormsModule],
})
class SelectionListWithCustomComparator {
@@ -1995,7 +1981,6 @@ class SelectionListWithCustomComparator {
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithAvatar {
@@ -2011,7 +1996,6 @@ class SelectionListWithAvatar {
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithIcon {
@@ -2027,7 +2011,6 @@ class SelectionListWithIcon {
Two
}
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListWithIndirectChildOptions {
@@ -2040,7 +2023,6 @@ class SelectionListWithIndirectChildOptions {
Item
`,
- standalone: true,
imports: [MatListModule],
})
class ListOptionWithTwoWayBinding {
diff --git a/src/material/list/testing/list-harness.spec.ts b/src/material/list/testing/list-harness.spec.ts
index 16ee4d12e22c..d39f4d650588 100644
--- a/src/material/list/testing/list-harness.spec.ts
+++ b/src/material/list/testing/list-harness.spec.ts
@@ -541,7 +541,6 @@ describe('MatSelectionListHarness', () => {
`,
- standalone: true,
imports: [MatListModule],
})
class ListHarnessTest {
@@ -582,7 +581,6 @@ class ListHarnessTest {
`,
- standalone: true,
imports: [MatListModule],
})
class ActionListHarnessTest {
@@ -625,7 +623,6 @@ class ActionListHarnessTest {
`,
- standalone: true,
imports: [MatListModule],
})
class NavListHarnessTest {
@@ -669,7 +666,6 @@ class NavListHarnessTest {
`,
- standalone: true,
imports: [MatListModule],
})
class SelectionListHarnessTest {
diff --git a/src/material/menu/testing/menu-harness.spec.ts b/src/material/menu/testing/menu-harness.spec.ts
index 3178dec315cd..3238f0b85b3d 100644
--- a/src/material/menu/testing/menu-harness.spec.ts
+++ b/src/material/menu/testing/menu-harness.spec.ts
@@ -163,7 +163,6 @@ describe('MatMenuHarness', () => {
`,
- standalone: true,
imports: [MatMenuModule],
})
class MenuHarnessTest {}
@@ -190,7 +189,6 @@ class MenuHarnessTest {}
`,
- standalone: true,
imports: [MatMenuModule],
})
class NestedMenuHarnessTest {
diff --git a/src/material/paginator/testing/paginator-harness.spec.ts b/src/material/paginator/testing/paginator-harness.spec.ts
index 3f728f9ab474..1b77d893f510 100644
--- a/src/material/paginator/testing/paginator-harness.spec.ts
+++ b/src/material/paginator/testing/paginator-harness.spec.ts
@@ -137,7 +137,6 @@ describe('MatPaginatorHarness', () => {
[pageIndex]="pageIndex()">
`,
- standalone: true,
imports: [MatPaginatorModule],
})
class PaginatorHarnessTest {
diff --git a/src/material/progress-bar/progress-bar.spec.ts b/src/material/progress-bar/progress-bar.spec.ts
index 265b6811e64f..0ef8a0fd48ea 100644
--- a/src/material/progress-bar/progress-bar.spec.ts
+++ b/src/material/progress-bar/progress-bar.spec.ts
@@ -336,14 +336,12 @@ describe('MatProgressBar', () => {
@Component({
template: '',
- standalone: true,
imports: [MatProgressBar],
})
class BasicProgressBar {}
@Component({
template: '',
- standalone: true,
imports: [MatProgressBar],
})
class BufferProgressBar {}
diff --git a/src/material/progress-bar/testing/progress-bar-harness.spec.ts b/src/material/progress-bar/testing/progress-bar-harness.spec.ts
index 2d20a2666ab9..3415805f14ac 100644
--- a/src/material/progress-bar/testing/progress-bar-harness.spec.ts
+++ b/src/material/progress-bar/testing/progress-bar-harness.spec.ts
@@ -44,7 +44,6 @@ describe('MatProgressBarHarness', () => {
`,
- standalone: true,
imports: [MatProgressBarModule],
})
class ProgressBarHarnessTest {
diff --git a/src/material/progress-spinner/progress-spinner.spec.ts b/src/material/progress-spinner/progress-spinner.spec.ts
index 60a337d3a248..0bd90174d129 100644
--- a/src/material/progress-spinner/progress-spinner.spec.ts
+++ b/src/material/progress-spinner/progress-spinner.spec.ts
@@ -395,14 +395,12 @@ describe('MatProgressSpinner', () => {
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class BasicProgressSpinner {}
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerCustomStrokeWidth {
@@ -411,7 +409,6 @@ class ProgressSpinnerCustomStrokeWidth {
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerCustomDiameter {
@@ -420,14 +417,12 @@ class ProgressSpinnerCustomDiameter {
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class IndeterminateProgressSpinner {}
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerWithValueAndBoundMode {
@@ -438,7 +433,6 @@ class ProgressSpinnerWithValueAndBoundMode {
@Component({
template: `
`,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class SpinnerWithColor {
@@ -448,7 +442,6 @@ class SpinnerWithColor {
@Component({
template: `
`,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerWithColor {
@@ -459,7 +452,6 @@ class ProgressSpinnerWithColor {
template: `
`,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerWithStringValues {}
@@ -469,7 +461,6 @@ class ProgressSpinnerWithStringValues {}
`,
encapsulation: ViewEncapsulation.ShadowDom,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class IndeterminateSpinnerInShadowDom {
@@ -485,7 +476,6 @@ class IndeterminateSpinnerInShadowDom {
}
`,
encapsulation: ViewEncapsulation.ShadowDom,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class IndeterminateSpinnerInShadowDomWithNgIf {
@@ -497,7 +487,6 @@ class IndeterminateSpinnerInShadowDomWithNgIf {
@Component({
template: '',
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class SpinnerWithMode {}
diff --git a/src/material/progress-spinner/testing/progress-spinner-harness.spec.ts b/src/material/progress-spinner/testing/progress-spinner-harness.spec.ts
index bac8d2eb0d60..5ddd5d1ce558 100644
--- a/src/material/progress-spinner/testing/progress-spinner-harness.spec.ts
+++ b/src/material/progress-spinner/testing/progress-spinner-harness.spec.ts
@@ -48,7 +48,6 @@ describe('MatProgressSpinnerHarness', () => {
`,
- standalone: true,
imports: [MatProgressSpinnerModule],
})
class ProgressSpinnerHarnessTest {
diff --git a/src/material/radio/radio.spec.ts b/src/material/radio/radio.spec.ts
index a1c8f235dad9..0d2e0ccb5af4 100644
--- a/src/material/radio/radio.spec.ts
+++ b/src/material/radio/radio.spec.ts
@@ -1089,7 +1089,6 @@ describe('MatRadioDefaultOverrides', () => {
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadiosInsideRadioGroup {
@@ -1112,7 +1111,6 @@ class RadiosInsideRadioGroup {
Bulbasaur
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadiosInsidePreCheckedRadioGroup {}
@@ -1138,7 +1136,6 @@ class RadiosInsidePreCheckedRadioGroup {}
Raspberry
No name
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class StandaloneRadioButtons {
@@ -1155,7 +1152,6 @@ class StandaloneRadioButtons {
}
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadioGroupWithNgModel {
@@ -1174,7 +1170,6 @@ class RadioGroupWithNgModel {
One`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class DisableableRadioButton {
@@ -1191,7 +1186,6 @@ class DisableableRadioButton {
Two
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadioGroupWithFormControl {
@@ -1201,7 +1195,6 @@ class RadioGroupWithFormControl {
@Component({
template: ``,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class FocusableRadioButton {
@@ -1214,7 +1207,6 @@ class FocusableRadioButton {
template: `
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class TranscludingWrapper {}
@@ -1229,7 +1221,6 @@ class TranscludingWrapper {}
}
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule, TranscludingWrapper],
})
class InterleavedRadioGroup {
@@ -1243,21 +1234,18 @@ class InterleavedRadioGroup {
@Component({
template: ``,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadioButtonWithPredefinedTabindex {}
@Component({
template: ``,
- standalone: true,
imports: [MatRadioModule, FormsModule],
})
class DefaultRadioButton {}
@Component({
template: ``,
- standalone: true,
imports: [MatRadioModule, FormsModule],
})
class RadioButtonWithColorBinding {}
@@ -1268,7 +1256,6 @@ class RadioButtonWithColorBinding {}
aria-label="Radio button"
aria-describedby="something"
aria-labelledby="something-else">`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class RadioButtonWithPredefinedAriaAttributes {}
@@ -1289,7 +1276,6 @@ class RadioButtonWithPredefinedAriaAttributes {}
}
`,
- standalone: true,
imports: [MatRadioModule, FormsModule, ReactiveFormsModule],
})
class PreselectedRadioWithStaticValueAndNgIf {
diff --git a/src/material/radio/testing/radio-harness.spec.ts b/src/material/radio/testing/radio-harness.spec.ts
index 0a448b8a2ddc..929a1f5b8537 100644
--- a/src/material/radio/testing/radio-harness.spec.ts
+++ b/src/material/radio/testing/radio-harness.spec.ts
@@ -312,7 +312,6 @@ describe('radio harness', () => {
`,
- standalone: true,
imports: [MatRadioModule, ReactiveFormsModule],
})
class MultipleRadioButtonsHarnessTest {
diff --git a/src/material/select/testing/select-harness.spec.ts b/src/material/select/testing/select-harness.spec.ts
index b08b9a8d992e..01a48d30617d 100644
--- a/src/material/select/testing/select-harness.spec.ts
+++ b/src/material/select/testing/select-harness.spec.ts
@@ -306,7 +306,6 @@ describe('MatSelectHarness', () => {
`,
- standalone: true,
imports: [MatSelectModule, MatFormFieldModule, ReactiveFormsModule],
})
class SelectHarnessTest {
diff --git a/src/material/sidenav/drawer.spec.ts b/src/material/sidenav/drawer.spec.ts
index 71cbbc619868..144207131276 100644
--- a/src/material/sidenav/drawer.spec.ts
+++ b/src/material/sidenav/drawer.spec.ts
@@ -1207,7 +1207,6 @@ describe('MatDrawerContainer', () => {
/** Test component that contains an MatDrawerContainer but no MatDrawer. */
@Component({
template: ``,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerContainerNoDrawerTestApp {}
@@ -1219,7 +1218,6 @@ class DrawerContainerNoDrawerTestApp {}
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerContainerTwoDrawerTestApp {
@@ -1248,7 +1246,6 @@ class DrawerContainerTwoDrawerTestApp {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class BasicTestApp {
@@ -1294,7 +1291,6 @@ class BasicTestApp {
Closed Drawer.
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerSetToOpenedFalse {}
@@ -1306,7 +1302,6 @@ class DrawerSetToOpenedFalse {}
Closed Drawer.
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerSetToOpenedTrue {
@@ -1320,7 +1315,6 @@ class DrawerSetToOpenedTrue {
Closed Drawer.
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerOpenBinding {
@@ -1333,7 +1327,6 @@ class DrawerOpenBinding {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerDynamicPosition {
@@ -1351,7 +1344,6 @@ class DrawerDynamicPosition {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerWithFocusableElements {
@@ -1366,7 +1358,6 @@ class DrawerWithFocusableElements {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerWithoutFocusableElements {}
@@ -1379,7 +1370,6 @@ class DrawerWithoutFocusableElements {}
}
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerDelayed {
@@ -1394,7 +1384,6 @@ class DrawerDelayed {
}
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerContainerStateChangesTestApp {
@@ -1414,7 +1403,6 @@ class DrawerContainerStateChangesTestApp {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class AutosizeDrawer {
@@ -1430,7 +1418,6 @@ class AutosizeDrawer {
Content
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class DrawerContainerWithContent {
@@ -1446,7 +1433,6 @@ class DrawerContainerWithContent {
Drawer
}
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class IndirectDescendantDrawer {
@@ -1465,7 +1451,6 @@ class IndirectDescendantDrawer {
`,
- standalone: true,
imports: [MatSidenavModule, A11yModule],
})
class NestedDrawerContainers {
diff --git a/src/material/sidenav/sidenav.spec.ts b/src/material/sidenav/sidenav.spec.ts
index 93cc5b9599ca..d325d20a51ad 100644
--- a/src/material/sidenav/sidenav.spec.ts
+++ b/src/material/sidenav/sidenav.spec.ts
@@ -101,7 +101,6 @@ describe('MatSidenav', () => {
Some content.
`,
- standalone: true,
imports: [MatSidenavModule],
})
class SidenavWithFixedPosition {
@@ -120,7 +119,6 @@ class SidenavWithFixedPosition {
}
Some content.
`,
- standalone: true,
imports: [MatSidenavModule],
})
class IndirectDescendantSidenav {
@@ -139,7 +137,6 @@ class IndirectDescendantSidenav {
`,
- standalone: true,
imports: [MatSidenavModule],
})
class NestedSidenavContainers {
diff --git a/src/material/sidenav/testing/sidenav-harness.spec.ts b/src/material/sidenav/testing/sidenav-harness.spec.ts
index 33d5db19b037..14d42b2761e5 100644
--- a/src/material/sidenav/testing/sidenav-harness.spec.ts
+++ b/src/material/sidenav/testing/sidenav-harness.spec.ts
@@ -176,7 +176,6 @@ describe('MatSidenavHarness', () => {
Content
`,
- standalone: true,
imports: [MatSidenavModule],
})
class DrawerHarnessTest {
@@ -196,7 +195,6 @@ class DrawerHarnessTest {
Content
`,
- standalone: true,
imports: [MatSidenavModule],
})
class SidenavHarnessTest {}
diff --git a/src/material/slide-toggle/slide-toggle.spec.ts b/src/material/slide-toggle/slide-toggle.spec.ts
index 8a775f2f66f8..facc0f15038d 100644
--- a/src/material/slide-toggle/slide-toggle.spec.ts
+++ b/src/material/slide-toggle/slide-toggle.spec.ts
@@ -883,7 +883,6 @@ describe('MatSlideToggle with forms', () => {
(click)="onSlideClick($event)">
Test Slide Toggle
`,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleBasic {
@@ -918,7 +917,6 @@ class SlideToggleBasic {
Required
`,
- standalone: true,
imports: [MatSlideToggleModule, FormsModule, ReactiveFormsModule],
})
class SlideToggleWithForm {
@@ -929,7 +927,6 @@ class SlideToggleWithForm {
@Component({
template: ``,
- standalone: true,
imports: [MatSlideToggleModule, FormsModule, ReactiveFormsModule],
})
class SlideToggleWithModel {
@@ -940,7 +937,6 @@ class SlideToggleWithModel {
@Component({
template: `Label`,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleCheckedAndDisabledAttr {}
@@ -950,7 +946,6 @@ class SlideToggleCheckedAndDisabledAttr {}
Test Slide Toggle
`,
- standalone: true,
imports: [MatSlideToggleModule, FormsModule, ReactiveFormsModule],
})
class SlideToggleWithFormControl {
@@ -959,7 +954,6 @@ class SlideToggleWithFormControl {
@Component({
template: ``,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleWithTabindexAttr {
@@ -968,7 +962,6 @@ class SlideToggleWithTabindexAttr {
@Component({
template: `{{label}}`,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleWithoutLabel {
@@ -977,7 +970,6 @@ class SlideToggleWithoutLabel {
@Component({
template: ``,
- standalone: true,
imports: [MatSlideToggleModule, FormsModule, ReactiveFormsModule],
})
class SlideToggleWithModelAndChangeEvent {
@@ -987,7 +979,6 @@ class SlideToggleWithModelAndChangeEvent {
@Component({
template: ``,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleProjectedLabel {}
@@ -995,7 +986,6 @@ class SlideToggleProjectedLabel {}
@Component({
selector: 'some-text',
template: `{{text}}`,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class TextBindingComponent {
@@ -1006,7 +996,6 @@ class TextBindingComponent {
template: `
`,
- standalone: true,
imports: [MatSlideToggleModule, BidiModule],
})
class SlideToggleWithStaticAriaAttributes {}
diff --git a/src/material/slide-toggle/testing/slide-toggle-harness.spec.ts b/src/material/slide-toggle/testing/slide-toggle-harness.spec.ts
index d1aabd8a8819..aa2e6e64220d 100644
--- a/src/material/slide-toggle/testing/slide-toggle-harness.spec.ts
+++ b/src/material/slide-toggle/testing/slide-toggle-harness.spec.ts
@@ -190,7 +190,6 @@ describe('MatSlideToggleHarness', () => {
Second slide-toggle
`,
- standalone: true,
imports: [MatSlideToggleModule, ReactiveFormsModule],
})
class SlideToggleHarnessTest {
diff --git a/src/material/slider/testing/slider-harness.spec.ts b/src/material/slider/testing/slider-harness.spec.ts
index 4237f95b8f43..6a264b827b2f 100644
--- a/src/material/slider/testing/slider-harness.spec.ts
+++ b/src/material/slider/testing/slider-harness.spec.ts
@@ -202,7 +202,6 @@ describe('MatSliderHarness', () => {
`,
- standalone: true,
imports: [MatSliderModule],
})
class SliderHarnessTest {
diff --git a/src/material/snack-bar/snack-bar.spec.ts b/src/material/snack-bar/snack-bar.spec.ts
index 28a54c2fd5bb..17a6b72b5915 100644
--- a/src/material/snack-bar/snack-bar.spec.ts
+++ b/src/material/snack-bar/snack-bar.spec.ts
@@ -1057,7 +1057,6 @@ describe('MatSnackBar Positioning', () => {
@Directive({
selector: 'dir-with-view-container',
- standalone: true,
})
class DirectiveWithViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -1066,7 +1065,6 @@ class DirectiveWithViewContainer {
@Component({
selector: 'arbitrary-component',
template: `@if (childComponentExists()) {}`,
- standalone: true,
imports: [DirectiveWithViewContainer],
changeDetection: ChangeDetectionStrategy.OnPush,
})
@@ -1087,7 +1085,6 @@ class ComponentWithChildViewContainer {
Fries {{localValue}} {{data?.value}}
`,
- standalone: true,
})
class ComponentWithTemplateRef {
@ViewChild(TemplateRef) templateRef: TemplateRef;
@@ -1097,7 +1094,6 @@ class ComponentWithTemplateRef {
/** Simple component for testing ComponentPortal. */
@Component({
template: 'Burritos are on the way.
',
- standalone: true,
})
class BurritosNotification {
snackBarRef = inject>(MatSnackBarRef);
@@ -1107,7 +1103,6 @@ class BurritosNotification {
@Component({
template: '',
providers: [MatSnackBar],
- standalone: true,
})
class ComponentThatProvidesMatSnackBar {
snackBar = inject(MatSnackBar);
diff --git a/src/material/snack-bar/snack-bar.zone.spec.ts b/src/material/snack-bar/snack-bar.zone.spec.ts
index 403cdf9be9e9..1db0ee44e135 100644
--- a/src/material/snack-bar/snack-bar.zone.spec.ts
+++ b/src/material/snack-bar/snack-bar.zone.spec.ts
@@ -64,7 +64,6 @@ describe('MatSnackBar Zone.js integration', () => {
@Directive({
selector: 'dir-with-view-container',
- standalone: true,
})
class DirectiveWithViewContainer {
viewContainerRef = inject(ViewContainerRef);
@@ -73,7 +72,6 @@ class DirectiveWithViewContainer {
@Component({
selector: 'arbitrary-component',
template: `@if (childComponentExists()) {}`,
- standalone: true,
imports: [DirectiveWithViewContainer],
changeDetection: ChangeDetectionStrategy.OnPush,
})
diff --git a/src/material/snack-bar/testing/snack-bar-harness.spec.ts b/src/material/snack-bar/testing/snack-bar-harness.spec.ts
index 869e0e8f719a..e876df34dcc6 100644
--- a/src/material/snack-bar/testing/snack-bar-harness.spec.ts
+++ b/src/material/snack-bar/testing/snack-bar-harness.spec.ts
@@ -171,7 +171,6 @@ describe('MatSnackBarHarness', () => {
`,
- standalone: true,
imports: [MatSnackBarLabel, MatSnackBarActions, MatSnackBarAction],
})
class SnackbarHarnessTest {
diff --git a/src/material/sort/sort.spec.ts b/src/material/sort/sort.spec.ts
index 383721086209..55d21297694e 100644
--- a/src/material/sort/sort.spec.ts
+++ b/src/material/sort/sort.spec.ts
@@ -510,7 +510,6 @@ type SimpleMatSortAppColumnIds = 'defaultA' | 'defaultB' | 'overrideStart' | 'ov
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class SimpleMatSortApp {
@@ -569,7 +568,6 @@ class FakeDataSource extends DataSource {
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class CdkTableMatSortApp {
@@ -601,7 +599,6 @@ class CdkTableMatSortApp {
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatTableMatSortApp {
@@ -613,7 +610,6 @@ class MatTableMatSortApp {
@Component({
template: ` A
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortHeaderMissingMatSortApp {}
@@ -625,7 +621,6 @@ class MatSortHeaderMissingMatSortApp {}
A
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortDuplicateMatSortableIdsApp {}
@@ -636,7 +631,6 @@ class MatSortDuplicateMatSortableIdsApp {}
A
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortableMissingIdApp {}
@@ -647,7 +641,6 @@ class MatSortableMissingIdApp {}
A
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortableInvalidDirection {}
@@ -663,7 +656,6 @@ class MatSortableInvalidDirection {}
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortWithoutExplicitInputs {
@@ -696,7 +688,6 @@ class MatSortWithoutExplicitInputs {
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortWithArrowPosition {
@@ -717,7 +708,6 @@ class MatSortWithArrowPosition {
`,
- standalone: true,
imports: [MatSortModule, MatTableModule, CdkTableModule],
})
class MatSortWithoutInputs {
diff --git a/src/material/sort/testing/sort-harness.spec.ts b/src/material/sort/testing/sort-harness.spec.ts
index f14d405aa46d..b5afa713b56c 100644
--- a/src/material/sort/testing/sort-harness.spec.ts
+++ b/src/material/sort/testing/sort-harness.spec.ts
@@ -137,7 +137,6 @@ describe('MatSortHarness', () => {
}
`,
- standalone: true,
imports: [MatSortModule],
})
class SortHarnessTest {
diff --git a/src/material/stepper/stepper.spec.ts b/src/material/stepper/stepper.spec.ts
index a57c5bb326cd..ea1d4a38050e 100644
--- a/src/material/stepper/stepper.spec.ts
+++ b/src/material/stepper/stepper.spec.ts
@@ -1923,7 +1923,6 @@ class SimpleMatVerticalStepperApp {
}
@Component({
- standalone: true,
template: `
diff --git a/src/material/stepper/testing/stepper-harness.spec.ts b/src/material/stepper/testing/stepper-harness.spec.ts
index dbe03cf1159c..3755becf1e5e 100644
--- a/src/material/stepper/testing/stepper-harness.spec.ts
+++ b/src/material/stepper/testing/stepper-harness.spec.ts
@@ -301,7 +301,6 @@ describe('MatStepperHarness', () => {
`,
- standalone: true,
imports: [MatStepperModule, ReactiveFormsModule],
})
class StepperHarnessTest {
diff --git a/src/material/table/table.spec.ts b/src/material/table/table.spec.ts
index fee8085f6fa8..2dbc82426740 100644
--- a/src/material/table/table.spec.ts
+++ b/src/material/table/table.spec.ts
@@ -720,7 +720,6 @@ class FakeDataSource extends DataSource {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class MatTableApp {
@@ -756,7 +755,6 @@ class MatTableApp {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class NativeHtmlTableApp {
@@ -811,7 +809,6 @@ class NativeHtmlTableApp {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class NestedTableApp {
@@ -831,7 +828,6 @@ class NestedTableApp {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class StickyTableApp {
@@ -860,7 +856,6 @@ class StickyTableApp {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class MatTableWithWhenRowApp {
@@ -899,7 +894,6 @@ class MatTableWithWhenRowApp {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class ArrayDataSourceMatTableApp implements AfterViewInit {
@@ -953,7 +947,6 @@ class ArrayDataSourceMatTableApp implements AfterViewInit {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class MatTableWithSortApp implements OnInit {
@@ -1006,7 +999,6 @@ class MatTableWithSortApp implements OnInit {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class MatTableWithPaginatorApp implements OnInit {
@@ -1049,7 +1041,6 @@ class MatTableWithPaginatorApp implements OnInit {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class TableWithNgContainerRow {
@@ -1088,7 +1079,6 @@ class TableWithNgContainerRow {
`,
- standalone: true,
imports: [MatTableModule, MatPaginatorModule, MatSortModule],
})
class MatFlexTableApp {
diff --git a/src/material/table/testing/table-harness.spec.ts b/src/material/table/testing/table-harness.spec.ts
index b2c4c41b650e..eb8426f88120 100644
--- a/src/material/table/testing/table-harness.spec.ts
+++ b/src/material/table/testing/table-harness.spec.ts
@@ -214,7 +214,6 @@ describe('MatTableHarness', () => {
`,
- standalone: true,
imports: [MatTableModule],
})
class TableHarnessTest {
diff --git a/src/material/tabs/tab-body.spec.ts b/src/material/tabs/tab-body.spec.ts
index 3511c7939ed3..71ac2ffdb376 100644
--- a/src/material/tabs/tab-body.spec.ts
+++ b/src/material/tabs/tab-body.spec.ts
@@ -215,7 +215,6 @@ describe('MatTabBody', () => {
Tab Body Content
`,
- standalone: true,
imports: [PortalModule, MatRippleModule, MatTabBody],
})
class SimpleTabBodyApp implements AfterViewInit {
diff --git a/src/material/tabs/tab-group.spec.ts b/src/material/tabs/tab-group.spec.ts
index e70bad58464e..f60b3c232df2 100644
--- a/src/material/tabs/tab-group.spec.ts
+++ b/src/material/tabs/tab-group.spec.ts
@@ -1301,7 +1301,6 @@ describe('MatTabGroup labels aligned with a config', () => {
`,
- standalone: true,
imports: [MatTabsModule],
})
class SimpleTabsTestApp {
@@ -1339,7 +1338,6 @@ class SimpleTabsTestApp {
}
`,
- standalone: true,
imports: [MatTabsModule],
})
class SimpleDynamicTabsTestApp {
@@ -1368,7 +1366,6 @@ class SimpleDynamicTabsTestApp {
}
`,
- standalone: true,
imports: [MatTabsModule],
})
class BindedTabsTestApp {
@@ -1404,7 +1401,6 @@ class BindedTabsTestApp {
`,
- standalone: true,
imports: [MatTabsModule],
})
class DisabledTabsTestApp {
@@ -1423,7 +1419,6 @@ class DisabledTabsTestApp {
}
`,
- standalone: true,
imports: [MatTabsModule, AsyncPipe],
})
class AsyncTabsTestApp implements OnInit {
@@ -1451,7 +1446,6 @@ class AsyncTabsTestApp implements OnInit {
Peanuts
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithSimpleApi {
@@ -1474,7 +1468,6 @@ class TabGroupWithSimpleApi {
`,
- standalone: true,
imports: [MatTabsModule],
})
class NestedTabs {
@@ -1494,7 +1487,6 @@ class NestedTabs {
`,
- standalone: true,
imports: [MatTabsModule],
})
class TemplateTabs {}
@@ -1505,7 +1497,6 @@ class TemplateTabs {}
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithAriaInputs {
@@ -1524,7 +1515,6 @@ class TabGroupWithAriaInputs {
pizza is active
}
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithIsActiveBinding {}
@@ -1536,7 +1526,6 @@ class TabGroupWithIsActiveBinding {}
Tab two content
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabsWithCustomAnimationDuration {}
@@ -1550,7 +1539,6 @@ class TabsWithCustomAnimationDuration {}
}
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithIndirectDescendantTabs {
@@ -1564,7 +1552,6 @@ class TabGroupWithIndirectDescendantTabs {
Tab two content
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithInkBarFitToContent {
@@ -1587,7 +1574,6 @@ class TabGroupWithInkBarFitToContent {
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupWithSpaceAbove {
@@ -1611,7 +1597,6 @@ class TabGroupWithSpaceAbove {
Parent 3
`,
- standalone: true,
imports: [MatTabsModule],
})
class NestedTabGroupWithLabel {}
@@ -1628,7 +1613,6 @@ class NestedTabGroupWithLabel {}
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabsWithClassesTestApp {
@@ -1647,7 +1631,6 @@ class TabsWithClassesTestApp {
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabsWithAlignConfig {}
@@ -1663,7 +1646,6 @@ class TabsWithAlignConfig {}
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabsWithAlignCenter {}
diff --git a/src/material/tabs/tab-header.spec.ts b/src/material/tabs/tab-header.spec.ts
index 2b2e41dc4797..2e56a2f211f6 100644
--- a/src/material/tabs/tab-header.spec.ts
+++ b/src/material/tabs/tab-header.spec.ts
@@ -754,7 +754,6 @@ interface Tab {
width: 130px;
}
`,
- standalone: true,
imports: [Dir, MatTabHeader, MatTabLabelWrapper],
})
class SimpleTabHeaderApp {
diff --git a/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts b/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts
index ce75ae3ed058..f3cb50704c18 100644
--- a/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts
+++ b/src/material/tabs/tab-nav-bar/tab-nav-bar.spec.ts
@@ -573,7 +573,6 @@ describe('MatTabNavBar with enabled animations', () => {
Tab panel
`,
- standalone: true,
imports: [MatTabsModule],
})
class SimpleTabNavBarTestApp {
@@ -599,7 +598,6 @@ class SimpleTabNavBarTestApp {
Tab panel
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabLinkWithNgIf {
@@ -615,7 +613,6 @@ class TabLinkWithNgIf {
Tab panel
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabBarWithInactiveTabsOnInit {
@@ -631,7 +628,6 @@ class TabBarWithInactiveTabsOnInit {
,
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabsWithCustomAnimationDuration {
diff --git a/src/material/tabs/testing/tab-group-harness.spec.ts b/src/material/tabs/testing/tab-group-harness.spec.ts
index eaf0d73490ef..1bb0abfc32f1 100644
--- a/src/material/tabs/testing/tab-group-harness.spec.ts
+++ b/src/material/tabs/testing/tab-group-harness.spec.ts
@@ -174,7 +174,6 @@ describe('MatTabGroupHarness', () => {
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabGroupHarnessTest {
diff --git a/src/material/tabs/testing/tab-nav-bar-harness.spec.ts b/src/material/tabs/testing/tab-nav-bar-harness.spec.ts
index 259add2a8fe6..510abdb65c4d 100644
--- a/src/material/tabs/testing/tab-nav-bar-harness.spec.ts
+++ b/src/material/tabs/testing/tab-nav-bar-harness.spec.ts
@@ -111,7 +111,6 @@ describe('MatTabNavBarHarness', () => {
Tab content
`,
- standalone: true,
imports: [MatTabsModule],
})
class TabNavBarHarnessTest {
diff --git a/src/material/timepicker/testing/timepicker-harness.spec.ts b/src/material/timepicker/testing/timepicker-harness.spec.ts
index bc670144dc6c..838dba190b21 100644
--- a/src/material/timepicker/testing/timepicker-harness.spec.ts
+++ b/src/material/timepicker/testing/timepicker-harness.spec.ts
@@ -74,7 +74,6 @@ describe('MatTimepickerHarness', () => {
`,
- standalone: true,
imports: [MatTimepickerInput, MatTimepicker],
})
class TimepickerHarnessTest {
diff --git a/src/material/timepicker/testing/timepicker-input-harness.spec.ts b/src/material/timepicker/testing/timepicker-input-harness.spec.ts
index 5ee6a178a985..90c14aaeaabc 100644
--- a/src/material/timepicker/testing/timepicker-input-harness.spec.ts
+++ b/src/material/timepicker/testing/timepicker-input-harness.spec.ts
@@ -170,7 +170,6 @@ describe('MatTimepickerInputHarness', () => {
`,
- standalone: true,
imports: [MatTimepickerInput, MatTimepicker],
})
class TimepickerInputHarnessTest {
diff --git a/src/material/timepicker/testing/timepicker-toggle-harness.spec.ts b/src/material/timepicker/testing/timepicker-toggle-harness.spec.ts
index d6d87b8ca072..c1e48bbb0898 100644
--- a/src/material/timepicker/testing/timepicker-toggle-harness.spec.ts
+++ b/src/material/timepicker/testing/timepicker-toggle-harness.spec.ts
@@ -56,7 +56,6 @@ describe('MatTimepickerToggleHarness', () => {
`,
- standalone: true,
imports: [MatTimepickerInput, MatTimepicker, MatTimepickerToggle],
})
class TimepickerHarnessTest {
diff --git a/src/material/timepicker/timepicker.spec.ts b/src/material/timepicker/timepicker.spec.ts
index 24198da61930..080745926f98 100644
--- a/src/material/timepicker/timepicker.spec.ts
+++ b/src/material/timepicker/timepicker.spec.ts
@@ -1274,7 +1274,6 @@ describe('MatTimepicker', () => {
[disabled]="toggleDisabled()"
[tabIndex]="toggleTabIndex()"/>
`,
- standalone: true,
imports: [MatTimepicker, MatTimepickerInput, MatTimepickerToggle],
})
class StandaloneTimepicker {
@@ -1305,7 +1304,6 @@ class StandaloneTimepicker {
`,
- standalone: true,
imports: [
MatTimepicker,
MatTimepickerInput,
@@ -1326,7 +1324,6 @@ class TimepickerInFormField {
`,
- standalone: true,
imports: [MatTimepicker, MatTimepickerInput],
})
class TimepickerTwoWayBinding {
@@ -1343,7 +1340,6 @@ class TimepickerTwoWayBinding {
[matTimepickerMax]="max()"/>
`,
- standalone: true,
imports: [MatTimepicker, MatTimepickerInput, ReactiveFormsModule],
})
class TimepickerWithForms {
@@ -1359,14 +1355,12 @@ class TimepickerWithForms {
`,
- standalone: true,
imports: [MatTimepicker, MatTimepickerInput],
})
class TimepickerWithMultipleInputs {}
@Component({
template: '',
- standalone: true,
imports: [MatTimepicker],
})
class TimepickerWithoutInput {
diff --git a/src/material/toolbar/testing/toolbar-harness.spec.ts b/src/material/toolbar/testing/toolbar-harness.spec.ts
index 2344bb9bec7b..81315d1984db 100644
--- a/src/material/toolbar/testing/toolbar-harness.spec.ts
+++ b/src/material/toolbar/testing/toolbar-harness.spec.ts
@@ -74,7 +74,6 @@ describe('MatToolbarHarness', () => {
`,
- standalone: true,
imports: [MatToolbarModule],
})
class ToolbarHarnessTest {}
diff --git a/src/material/toolbar/toolbar.spec.ts b/src/material/toolbar/toolbar.spec.ts
index ce1d0df979c2..42f2e5a053a9 100644
--- a/src/material/toolbar/toolbar.spec.ts
+++ b/src/material/toolbar/toolbar.spec.ts
@@ -104,7 +104,6 @@ describe('MatToolbar', () => {
First Row
`,
- standalone: true,
imports: [MatToolbarModule],
})
class ToolbarSingleRow {
@@ -118,7 +117,6 @@ class ToolbarSingleRow {
Second Row
`,
- standalone: true,
imports: [MatToolbarModule],
})
class ToolbarMultipleRows {}
@@ -132,7 +130,6 @@ class ToolbarMultipleRows {}
}
`,
- standalone: true,
imports: [MatToolbarModule],
})
class ToolbarMixedRowModes {
@@ -149,7 +146,6 @@ class ToolbarMixedRowModes {
}
`,
- standalone: true,
imports: [MatToolbarModule],
})
class ToolbarMultipleIndirectRows {}
diff --git a/src/material/tooltip/testing/tooltip-harness.spec.ts b/src/material/tooltip/testing/tooltip-harness.spec.ts
index 246417390db9..538433b8090a 100644
--- a/src/material/tooltip/testing/tooltip-harness.spec.ts
+++ b/src/material/tooltip/testing/tooltip-harness.spec.ts
@@ -72,7 +72,6 @@ describe('MatTooltipHarness', () => {
`,
- standalone: true,
imports: [MatTooltipModule],
})
class TooltipHarnessTest {
diff --git a/src/material/tooltip/tooltip.spec.ts b/src/material/tooltip/tooltip.spec.ts
index 3aff10c8f728..fccac2350c6b 100644
--- a/src/material/tooltip/tooltip.spec.ts
+++ b/src/material/tooltip/tooltip.spec.ts
@@ -1604,7 +1604,6 @@ describe('MatTooltip', () => {
[matTooltipTouchGestures]="touchGestures"
[matTooltipDisabled]="tooltipDisabled">Button
}`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class BasicTooltipDemo {
@@ -1629,7 +1628,6 @@ class BasicTooltipDemo {
[matTooltipPosition]="position">Button
}
`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class ScrollableTooltipDemo {
@@ -1658,7 +1656,6 @@ class ScrollableTooltipDemo {
Button
`,
changeDetection: ChangeDetectionStrategy.OnPush,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class OnPushTooltipDemo {
@@ -1673,7 +1670,6 @@ class OnPushTooltipDemo {
}
`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class DynamicTooltipsDemo {
@@ -1682,7 +1678,6 @@ class DynamicTooltipsDemo {
@Component({
template: ``,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class DataBoundAriaLabelTooltip {
@@ -1701,7 +1696,6 @@ class DataBoundAriaLabelTooltip {
matTooltip="Another thing"
[matTooltipTouchGestures]="touchGestures">
`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class TooltipOnTextFields {
@@ -1718,7 +1712,6 @@ class TooltipOnTextFields {
matTooltip="Drag me"
[matTooltipTouchGestures]="touchGestures">
`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class TooltipOnDraggableElement {
diff --git a/src/material/tooltip/tooltip.zone.spec.ts b/src/material/tooltip/tooltip.zone.spec.ts
index e519ca5af276..4d8c8cf1de4d 100644
--- a/src/material/tooltip/tooltip.zone.spec.ts
+++ b/src/material/tooltip/tooltip.zone.spec.ts
@@ -74,7 +74,6 @@ describe('MatTooltip Zone.js integration', () => {
[matTooltipPosition]="position">Button
}
`,
- standalone: true,
imports: [MatTooltipModule, OverlayModule],
})
class ScrollableTooltipDemo {
diff --git a/src/material/tree/testing/tree-harness.spec.ts b/src/material/tree/testing/tree-harness.spec.ts
index c281d4d28b4e..222ab037abaa 100644
--- a/src/material/tree/testing/tree-harness.spec.ts
+++ b/src/material/tree/testing/tree-harness.spec.ts
@@ -250,7 +250,6 @@ interface ExampleFlatNode {
`,
- standalone: true,
imports: [MatTreeModule],
})
class TreeHarnessTest {
diff --git a/src/youtube-player/youtube-player.spec.ts b/src/youtube-player/youtube-player.spec.ts
index 9e37727eecb9..757baf8bf435 100644
--- a/src/youtube-player/youtube-player.spec.ts
+++ b/src/youtube-player/youtube-player.spec.ts
@@ -758,7 +758,6 @@ describe('YoutubePlayer', () => {
/** Test component that contains a YouTubePlayer. */
@Component({
selector: 'test-app',
- standalone: true,
imports: [YouTubePlayer],
template: `
@if (visible) {
@@ -806,7 +805,6 @@ class TestApp {
}
@Component({
- standalone: true,
imports: [YouTubePlayer],
template: `
@@ -817,7 +815,6 @@ class StaticStartEndSecondsApp {
}
@Component({
- standalone: true,
imports: [YouTubePlayer],
template: ``,
})