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

chore: added memory tests for missing packages #4264

Merged
merged 7 commits into from
Apr 30, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/accordion/test/accordion-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/accordion.stories.js';
import { Accordion } from '@spectrum-web-components/accordion';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Accordion>(Default()));
testForMemoryLeaks(Default());
4 changes: 1 addition & 3 deletions packages/action-bar/test/action-bar-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/action-bar.stories.js';
import { ActionBar } from '@spectrum-web-components/action-bar';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<ActionBar>(Default()));
testForMemoryLeaks(Default());
15 changes: 15 additions & 0 deletions packages/action-button/test/action-button-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { m as BlackActionButton } from '../stories/action-button-black.stories.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(BlackActionButton(BlackActionButton.args));
4 changes: 1 addition & 3 deletions packages/action-group/test/action-group-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/action-group.stories.js';
import { ActionGroup } from '@spectrum-web-components/action-group';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<ActionGroup>(Default({})));
testForMemoryLeaks(Default({}));
4 changes: 1 addition & 3 deletions packages/action-menu/test/action-menu-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/action-menu.stories.js';
import { ActionMenu } from '@spectrum-web-components/action-menu';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<ActionMenu>(Default({})));
testForMemoryLeaks(Default({}));
4 changes: 1 addition & 3 deletions packages/alert-dialog/test/alert-dialog-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { confirmation } from '../stories/alert-dialog.stories.js';
import { AlertDialog } from '@spectrum-web-components/alert-dialog';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<AlertDialog>(confirmation()));
testForMemoryLeaks(confirmation());
4 changes: 1 addition & 3 deletions packages/asset/test/asset-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/asset.stories.js';
import { Asset } from '@spectrum-web-components/asset';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Asset>(Default()));
testForMemoryLeaks(Default());
4 changes: 1 addition & 3 deletions packages/avatar/test/avatar-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { linked } from '../stories/avatar.stories.js';
import { Avatar } from '@spectrum-web-components/avatar';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Avatar>(linked()));
testForMemoryLeaks(linked());
4 changes: 1 addition & 3 deletions packages/badge/test/badge-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/badge.stories.js';
import { Badge } from '@spectrum-web-components/badge';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Badge>(Default()));
testForMemoryLeaks(Default());
15 changes: 15 additions & 0 deletions packages/banner/test/banner-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { Default } from '../stories/banner.stories.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(Default({}));
4 changes: 1 addition & 3 deletions packages/button-group/test/button-group-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { buttons } from '../stories/button-group.stories.js';
import { ButtonGroup } from '@spectrum-web-components/button-group';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<ButtonGroup>(buttons({})));
testForMemoryLeaks(buttons({}));
4 changes: 1 addition & 3 deletions packages/button/test/button-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/button-accent-fill.stories.js';
import { Button } from '@spectrum-web-components/button';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Button>(Default({})));
testForMemoryLeaks(Default({}));
4 changes: 1 addition & 3 deletions packages/card/test/card-memory.test.ts
Expand Up @@ -10,9 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
governing permissions and limitations under the License.
*/

import { fixture } from '@open-wc/testing';
import { Default } from '../stories/card.stories.js';
import { Card } from '@spectrum-web-components/card';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(async () => await fixture<Card>(Default({})));
testForMemoryLeaks(Default({}));
15 changes: 15 additions & 0 deletions packages/checkbox/test/checkbox-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { Default } from '../stories/checkbox.stories.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(Default());
18 changes: 18 additions & 0 deletions packages/coachmark/test/coach-indicator-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/coachmark/sp-coach-indicator.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-coach-indicator></sp-coach-indicator>
`);
15 changes: 15 additions & 0 deletions packages/coachmark/test/coach-mark-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { Default } from '../stories/coachmark.stories.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(Default());
18 changes: 18 additions & 0 deletions packages/color-area/test/color-area-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/color-area/sp-color-area.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-color-area></sp-color-area>
`);
15 changes: 15 additions & 0 deletions packages/color-field/test/color-field-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { Template } from '../stories/template.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(Template({ label: 'Enter color value' }));
18 changes: 18 additions & 0 deletions packages/color-handle/test/color-handle-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/color-handle/sp-color-handle.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-color-handle></sp-color-handle>
`);
18 changes: 18 additions & 0 deletions packages/color-loupe/test/color-loupe-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/color-loupe/sp-color-loupe.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-color-loupe></sp-color-loupe>
`);
18 changes: 18 additions & 0 deletions packages/color-slider/test/color-slider-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/color-slider/sp-color-slider.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-color-slider></sp-color-slider>
`);
18 changes: 18 additions & 0 deletions packages/color-wheel/test/color-wheel-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/color-wheel/sp-color-wheel.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-color-wheel></sp-color-wheel>
`);
18 changes: 18 additions & 0 deletions packages/combobox/test/combobox-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/combobox/sp-combobox.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-combobox></sp-combobox>
`);
15 changes: 15 additions & 0 deletions packages/dialog/test/dialog-memory.test.ts
@@ -0,0 +1,15 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { small } from '../stories/dialog.stories.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(small());
18 changes: 18 additions & 0 deletions packages/divider/test/divider-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/divider/sp-divider.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-divider></sp-divider>
`);
18 changes: 18 additions & 0 deletions packages/dropzone/test/dropzone-memory.test.ts
@@ -0,0 +1,18 @@
/*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
governing permissions and limitations under the License.
*/

import { html } from '@open-wc/testing';
import '@spectrum-web-components/dropzone/sp-dropzone.js';
import { testForMemoryLeaks } from '../../../test/testing-helpers.js';

testForMemoryLeaks(html`
<sp-dropzone></sp-dropzone>
`);