Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(multiple): remove mdc-based descriptions #29566

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/material/autocomplete/autocomplete.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import {
getMatAutocompleteMissingPanelError,
} from './index';

describe('MDC-based MatAutocomplete', () => {
describe('MatAutocomplete', () => {
let overlayContainerElement: HTMLElement;

// Creates a test component fixture.
Expand Down
2 changes: 1 addition & 1 deletion src/material/autocomplete/autocomplete.zone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {MatAutocomplete} from './autocomplete';
import {MatAutocompleteTrigger} from './autocomplete-trigger';
import {MatAutocompleteModule} from './module';

describe('MDC-based MatAutocomplete Zone.js integration', () => {
describe('MatAutocomplete Zone.js integration', () => {
// Creates a test component fixture.
function createComponent<T>(component: Type<T>, providers: Provider[] = []) {
TestBed.configureTestingModule({
Expand Down
2 changes: 1 addition & 1 deletion src/material/button/button.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
MatFabDefaultOptions,
} from './index';

describe('MDC-based MatButton', () => {
describe('MatButton', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatButtonModule, TestApp],
Expand Down
2 changes: 1 addition & 1 deletion src/material/button/testing/button-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@angular/cdk/testing';
import {ButtonHarnessFilters, ButtonVariant} from './button-harness-filters';

/** Harness for interacting with a MDC-based mat-button in tests. */
/** Harness for interacting with a mat-button in tests. */
export class MatButtonHarness extends ContentContainerComponentHarness {
// TODO(jelbourn) use a single class, like `.mat-button-base`
static hostSelector = `[mat-button], [mat-raised-button], [mat-flat-button],
Expand Down
2 changes: 1 addition & 1 deletion src/material/card/card.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Component, Provider, Type, signal} from '@angular/core';
import {MatCardModule} from './module';
import {MatCard, MAT_CARD_CONFIG, MatCardAppearance} from './card';

describe('MDC-based MatCard', () => {
describe('MatCard', () => {
function createComponent<T>(component: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
TestBed.configureTestingModule({
imports: [MatCardModule, component],
Expand Down
2 changes: 1 addition & 1 deletion src/material/card/testing/card-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export enum MatCardSection {
FOOTER = '.mat-mdc-card-footer',
}

/** Harness for interacting with an MDC-based mat-card in tests. */
/** Harness for interacting with a mat-card in tests. */
export class MatCardHarness extends ContentContainerComponentHarness<MatCardSection> {
/** The selector for the host element of a `MatCard` instance. */
static hostSelector = '.mat-mdc-card';
Expand Down
2 changes: 1 addition & 1 deletion src/material/checkbox/checkbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MatCheckboxModule,
} from './index';

describe('MDC-based MatCheckbox', () => {
describe('MatCheckbox', () => {
let fixture: ComponentFixture<any>;

function createComponent<T>(componentType: Type<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-edit-input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {waitForAsync, TestBed, ComponentFixture} from '@angular/core/testing';
import {MatChipEditInput, MatChipsModule} from './index';
import {By} from '@angular/platform-browser';

describe('MDC-based MatChipEditInput', () => {
describe('MatChipEditInput', () => {
const DEFAULT_INITIAL_VALUE = 'INITIAL_VALUE';

let fixture: ComponentFixture<any>;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-grid.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {By} from '@angular/platform-browser';
import {BrowserAnimationsModule, NoopAnimationsModule} from '@angular/platform-browser/animations';
import {MatChipEvent, MatChipGrid, MatChipInputEvent, MatChipRow, MatChipsModule} from './index';

describe('MDC-based MatChipGrid', () => {
describe('MatChipGrid', () => {
let chipGridDebugElement: DebugElement;
let chipGridNativeElement: HTMLElement;
let chipGridInstance: MatChipGrid;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-input.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
MatChipsModule,
} from './index';

describe('MDC-based MatChipInput', () => {
describe('MatChipInput', () => {
let fixture: ComponentFixture<any>;
let testChipInput: TestChipInput;
let inputDebugElement: DebugElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-listbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms';
import {By} from '@angular/platform-browser';
import {MatChipListbox, MatChipOption, MatChipsModule} from './index';

describe('MDC-based MatChipListbox', () => {
describe('MatChipListbox', () => {
let fixture: ComponentFixture<any>;
let chipListboxDebugElement: DebugElement;
let chipListboxNativeElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-option.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
MatChipsModule,
} from './index';

describe('MDC-based Option Chips', () => {
describe('Option Chips', () => {
let fixture: ComponentFixture<any>;
let chipDebugElement: DebugElement;
let chipNativeElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-remove.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {ComponentFixture, TestBed, fakeAsync, flush, waitForAsync} from '@angula
import {By} from '@angular/platform-browser';
import {MatChip, MatChipsModule} from './index';

describe('MDC-based Chip Remove', () => {
describe('Chip Remove', () => {
let fixture: ComponentFixture<TestChip>;
let testChip: TestChip;
let chipNativeElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-row.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
MatChipsModule,
} from './index';

describe('MDC-based Row Chips', () => {
describe('Row Chips', () => {
let fixture: ComponentFixture<any>;
let chipDebugElement: DebugElement;
let chipNativeElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip-set.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {ComponentFixture, TestBed, fakeAsync, tick, waitForAsync} from '@angular
import {By} from '@angular/platform-browser';
import {MatChip, MatChipSet, MatChipsModule} from './index';

describe('MDC-based MatChipSet', () => {
describe('MatChipSet', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [MatChipsModule, CommonModule, BasicChipSet, IndirectDescendantsChipSet],
Expand Down
2 changes: 1 addition & 1 deletion src/material/chips/chip.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {By} from '@angular/platform-browser';
import {Subject} from 'rxjs';
import {MatChip, MatChipEvent, MatChipSet, MatChipsModule} from './index';

describe('MDC-based MatChip', () => {
describe('MatChip', () => {
let fixture: ComponentFixture<any>;
let chipDebugElement: DebugElement;
let chipNativeElement: HTMLElement;
Expand Down
2 changes: 1 addition & 1 deletion src/material/core/testing/optgroup-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {OptgroupHarnessFilters} from './optgroup-harness-filters';
import {MatOptionHarness} from './option-harness';
import {OptionHarnessFilters} from './option-harness-filters';

/** Harness for interacting with an MDC-based `mat-optgroup` in tests. */
/** Harness for interacting with a `mat-optgroup` in tests. */
export class MatOptgroupHarness extends ComponentHarness {
/** Selector used to locate option group instances. */
static hostSelector = '.mat-mdc-optgroup';
Expand Down
2 changes: 1 addition & 1 deletion src/material/core/testing/option-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from '@angular/cdk/testing';
import {OptionHarnessFilters} from './option-harness-filters';

/** Harness for interacting with an MDC-based `mat-option` in tests. */
/** Harness for interacting with a `mat-option` in tests. */
export class MatOptionHarness extends ContentContainerComponentHarness {
/** Selector used to locate option instances. */
static hostSelector = '.mat-mdc-option';
Expand Down
8 changes: 4 additions & 4 deletions src/material/dialog/dialog.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import {
MatDialogTitle,
} from './index';

describe('MDC-based MatDialog', () => {
describe('MatDialog', () => {
let dialog: MatDialog;
let overlayContainerElement: HTMLElement;
let scrolledSubject = new Subject();
Expand Down Expand Up @@ -1890,7 +1890,7 @@ describe('MDC-based MatDialog', () => {
}));
});

describe('MDC-based MatDialog with a parent MatDialog', () => {
describe('MatDialog with a parent MatDialog', () => {
let parentDialog: MatDialog;
let childDialog: MatDialog;
let overlayContainerElement: HTMLElement;
Expand Down Expand Up @@ -1988,7 +1988,7 @@ describe('MDC-based MatDialog with a parent MatDialog', () => {
}));
});

describe('MDC-based MatDialog with default options', () => {
describe('MatDialog with default options', () => {
let dialog: MatDialog;
let overlayContainerElement: HTMLElement;

Expand Down Expand Up @@ -2071,7 +2071,7 @@ describe('MDC-based MatDialog with default options', () => {
}));
});

describe('MDC-based MatDialog with animations enabled', () => {
describe('MatDialog with animations enabled', () => {
let dialog: MatDialog;

let testViewContainerRef: ViewContainerRef;
Expand Down
2 changes: 1 addition & 1 deletion src/material/dialog/dialog.zone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {MatDialog, MatDialogModule, MatDialogRef} from '@angular/material/dialog
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
import {Subject} from 'rxjs';

describe('MDC-based MatDialog', () => {
describe('MatDialog', () => {
let dialog: MatDialog;
let scrolledSubject = new Subject();

Expand Down
2 changes: 1 addition & 1 deletion src/material/dialog/testing/dialog-opener.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {MAT_DIALOG_DATA, MatDialogRef, MatDialogState} from '@angular/material/d
import {MatTestDialogOpener, MatTestDialogOpenerModule} from '@angular/material/dialog/testing';
import {NoopAnimationsModule} from '@angular/platform-browser/animations';

describe('MDC-based MatTestDialogOpener', () => {
describe('MatTestDialogOpener', () => {
beforeEach(fakeAsync(() => {
TestBed.configureTestingModule({
imports: [MatTestDialogOpenerModule, NoopAnimationsModule, ExampleComponent],
Expand Down
2 changes: 1 addition & 1 deletion src/material/form-field/testing/error-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface ErrorHarnessFilters extends BaseHarnessFilters {
text?: string | RegExp;
}

/** Harness for interacting with an MDC-based `mat-error` in tests. */
/** Harness for interacting with a `mat-error` in tests. */
export class MatErrorHarness extends ComponentHarness {
static hostSelector = '.mat-mdc-form-field-error';

Expand Down
2 changes: 1 addition & 1 deletion src/material/list/list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {TestBed, fakeAsync, waitForAsync} from '@angular/core/testing';
import {By} from '@angular/platform-browser';
import {MatListItem, MatListModule} from './index';

describe('MDC-based MatList', () => {
describe('MatList', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
Expand Down
4 changes: 2 additions & 2 deletions src/material/list/selection-list.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
MatSelectionListChange,
} from './index';

describe('MDC-based MatSelectionList without forms', () => {
describe('MatSelectionList without forms', () => {
const typeaheadInterval = 200;

describe('with list option', () => {
Expand Down Expand Up @@ -1251,7 +1251,7 @@ describe('MDC-based MatSelectionList without forms', () => {
});
});

describe('MDC-based MatSelectionList with forms', () => {
describe('MatSelectionList with forms', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/material/list/testing/action-list-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {MatListHarnessBase} from './list-harness-base';
import {ActionListHarnessFilters, ActionListItemHarnessFilters} from './list-harness-filters';
import {getListItemPredicate, MatListItemHarnessBase} from './list-item-harness-base';

/** Harness for interacting with a MDC-based action-list in tests. */
/** Harness for interacting with a action-list in tests. */
export class MatActionListHarness extends MatListHarnessBase<
typeof MatActionListItemHarness,
MatActionListItemHarness,
Expand Down
2 changes: 1 addition & 1 deletion src/material/list/testing/list-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {MatListHarnessBase} from './list-harness-base';
import {ListHarnessFilters, ListItemHarnessFilters} from './list-harness-filters';
import {getListItemPredicate, MatListItemHarnessBase} from './list-item-harness-base';

/** Harness for interacting with a MDC-based list in tests. */
/** Harness for interacting with a list in tests. */
export class MatListHarness extends MatListHarnessBase<
typeof MatListItemHarness,
MatListItemHarness,
Expand Down
2 changes: 1 addition & 1 deletion src/material/list/testing/list-item-harness-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function getListItemPredicate<H extends MatListItemHarnessBase>(
);
}

/** Harness for interacting with a MDC-based list subheader. */
/** Harness for interacting with a list subheader. */
export class MatSubheaderHarness extends ComponentHarness {
static hostSelector = '.mat-mdc-subheader';

Expand Down
4 changes: 2 additions & 2 deletions src/material/list/testing/nav-list-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {MatListHarnessBase} from './list-harness-base';
import {NavListHarnessFilters, NavListItemHarnessFilters} from './list-harness-filters';
import {getListItemPredicate, MatListItemHarnessBase} from './list-item-harness-base';

/** Harness for interacting with a MDC-based mat-nav-list in tests. */
/** Harness for interacting with a mat-nav-list in tests. */
export class MatNavListHarness extends MatListHarnessBase<
typeof MatNavListItemHarness,
MatNavListItemHarness,
Expand All @@ -36,7 +36,7 @@ export class MatNavListHarness extends MatListHarnessBase<
override _itemHarness = MatNavListItemHarness;
}

/** Harness for interacting with a MDC-based nav-list item. */
/** Harness for interacting with a nav-list item. */
export class MatNavListItemHarness extends MatListItemHarnessBase {
/** The selector for the host element of a `MatListItem` instance. */
static hostSelector = `${MatNavListHarness.hostSelector} .mat-mdc-list-item`;
Expand Down
2 changes: 1 addition & 1 deletion src/material/list/testing/selection-list-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class MatSelectionListHarness extends MatListHarnessBase<
}
}

/** Harness for interacting with a MDC-based list option. */
/** Harness for interacting with a list option. */
export class MatListOptionHarness extends MatListItemHarnessBase {
/** The selector for the host element of a `MatListOption` instance. */
static hostSelector = '.mat-mdc-list-option';
Expand Down
2 changes: 1 addition & 1 deletion src/material/menu/menu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import {

const MENU_PANEL_TOP_PADDING = 8;

describe('MDC-based MatMenu', () => {
describe('MatMenu', () => {
let overlayContainerElement: HTMLElement;
let focusMonitor: FocusMonitor;
let viewportRuler: ViewportRuler;
Expand Down
2 changes: 1 addition & 1 deletion src/material/menu/testing/menu-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import {coerceBooleanProperty} from '@angular/cdk/coercion';
import {MenuHarnessFilters, MenuItemHarnessFilters} from './menu-harness-filters';

/** Harness for interacting with an MDC-based mat-menu in tests. */
/** Harness for interacting with a mat-menu in tests. */
export class MatMenuHarness extends ContentContainerComponentHarness<string> {
private _documentRootLocator = this.documentRootLocatorFactory();

Expand Down
2 changes: 1 addition & 1 deletion src/material/paginator/paginator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from './index';
import {MAT_PAGINATOR_DEFAULT_OPTIONS, MatPaginatorDefaultOptions} from './paginator';

describe('MDC-based MatPaginator', () => {
describe('MatPaginator', () => {
function createComponent<T>(type: Type<T>, providers: Provider[] = []): ComponentFixture<T> {
TestBed.configureTestingModule({
imports: [MatPaginatorModule, NoopAnimationsModule],
Expand Down
2 changes: 1 addition & 1 deletion src/material/progress-bar/progress-bar.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {By} from '@angular/platform-browser';
import {MAT_PROGRESS_BAR_DEFAULT_OPTIONS, MatProgressBarModule} from './index';
import {MatProgressBar} from './progress-bar';

describe('MDC-based MatProgressBar', () => {
describe('MatProgressBar', () => {
function createComponent<T>(
componentType: Type<T>,
providers: (Provider | EnvironmentProviders)[] = [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@angular/cdk/testing';
import {ProgressBarHarnessFilters} from './progress-bar-harness-filters';

/** Harness for interacting with an MDC-based `mat-progress-bar` in tests. */
/** Harness for interacting with a `mat-progress-bar` in tests. */
export class MatProgressBarHarness extends ComponentHarness {
static hostSelector = '.mat-mdc-progress-bar';

Expand Down
2 changes: 1 addition & 1 deletion src/material/progress-spinner/progress-spinner.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Component, ElementRef, ViewChild, ViewEncapsulation, signal} from '@angu
import {MatProgressSpinnerModule} from './module';
import {MatProgressSpinner, MAT_PROGRESS_SPINNER_DEFAULT_OPTIONS} from './progress-spinner';

describe('MDC-based MatProgressSpinner', () => {
describe('MatProgressSpinner', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/material/radio/radio.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
MatRadioModule,
} from './index';

describe('MDC-based MatRadio', () => {
describe('MatRadio', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
Expand Down
4 changes: 2 additions & 2 deletions src/material/radio/testing/radio-harness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@angular/cdk/testing';
import {RadioButtonHarnessFilters, RadioGroupHarnessFilters} from './radio-harness-filters';

/** Harness for interacting with an MDC-based mat-radio-group in tests. */
/** Harness for interacting with a mat-radio-group in tests. */
export class MatRadioGroupHarness extends ComponentHarness {
/** The selector for the host element of a `MatRadioGroup` instance. */
static hostSelector = '.mat-mdc-radio-group';
Expand Down Expand Up @@ -166,7 +166,7 @@ export class MatRadioGroupHarness extends ComponentHarness {
}
}

/** Harness for interacting with an MDC-based mat-radio-button in tests. */
/** Harness for interacting with a mat-radio-button in tests. */
export class MatRadioButtonHarness extends ComponentHarness {
/** The selector for the host element of a `MatRadioButton` instance. */
static hostSelector = '.mat-mdc-radio-button';
Expand Down
2 changes: 1 addition & 1 deletion src/material/select/select.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import {
/** Default debounce interval when typing letters to select an option. */
const DEFAULT_TYPEAHEAD_DEBOUNCE_INTERVAL = 200;

describe('MDC-based MatSelect', () => {
describe('MatSelect', () => {
let overlayContainerElement: HTMLElement;
let dir: {value: 'ltr' | 'rtl'; change: Observable<string>};
let scrolledSubject = new Subject();
Expand Down
Loading
Loading