@spectrum-web-components/grid 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/test/grid.test.js CHANGED
@@ -1,184 +1,176 @@
1
- /*
2
- Copyright 2020 Adobe. All rights reserved.
3
- This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License. You may obtain a copy
5
- of the License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- Unless required by applicable law or agreed to in writing, software distributed under
8
- the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
- OF ANY KIND, either express or implied. See the License for the specific language
10
- governing permissions and limitations under the License.
11
- */
12
- import { elementUpdated, expect, fixture, nextFrame } from '@open-wc/testing';
13
- import { html } from '@spectrum-web-components/base';
14
- import '../sp-grid.js';
15
- import { Default } from '../stories/grid.stories.js';
16
- import { sendKeys } from '@web/test-runner-commands';
17
- describe('Grid', () => {
18
- it('loads default grid accessibly', async () => {
19
- const test = await fixture(html `
1
+ import { elementUpdated, expect, fixture, nextFrame } from "@open-wc/testing";
2
+ import { html } from "@spectrum-web-components/base";
3
+ import "@spectrum-web-components/grid/sp-grid.js";
4
+ import { Default } from "../stories/grid.stories.js";
5
+ import { sendKeys } from "@web/test-runner-commands";
6
+ import { testForLitDevWarnings } from "../../../test/testing-helpers.js";
7
+ describe("Grid", () => {
8
+ testForLitDevWarnings(async () => await fixture(html`
9
+ <div>${Default()}</div>
10
+ `));
11
+ it("loads default grid accessibly", async () => {
12
+ const test = await fixture(html`
20
13
  <div>${Default()}</div>
21
14
  `);
22
- const el = test.querySelector('sp-grid');
23
- await elementUpdated(el);
24
- await expect(el).to.be.accessible();
25
- });
26
- it('accepts focus', async () => {
27
- const test = await fixture(html `
15
+ const el = test.querySelector("sp-grid");
16
+ await elementUpdated(el);
17
+ await expect(el).to.be.accessible();
18
+ });
19
+ it("accepts focus", async () => {
20
+ const test = await fixture(html`
28
21
  <div>${Default()}</div>
29
22
  `);
30
- const el = test.querySelector('sp-grid');
31
- await elementUpdated(el);
32
- expect(el.tabIndex).to.equal(0);
33
- el.focus();
34
- await nextFrame();
35
- await nextFrame();
36
- expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
37
- });
38
- it('allows to tab in and out', async () => {
39
- const test = await fixture(html `
23
+ const el = test.querySelector("sp-grid");
24
+ await elementUpdated(el);
25
+ expect(el.tabIndex).to.equal(0);
26
+ el.focus();
27
+ await nextFrame();
28
+ await nextFrame();
29
+ expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
30
+ });
31
+ it("allows to tab in and out", async () => {
32
+ const test = await fixture(html`
40
33
  <div>${Default()}</div>
41
34
  `);
42
- const el = test.querySelector('sp-grid');
43
- const firstInput = test.querySelector('#first-input');
44
- const lastInput = test.querySelector('#last-input');
45
- await elementUpdated(el);
46
- expect(el.tabIndex).to.equal(0);
47
- firstInput.focus();
48
- expect(firstInput === document.activeElement).to.be.true;
49
- expect(el.tabIndex).to.equal(0);
50
- await sendKeys({
51
- press: 'Tab',
52
- });
53
- await nextFrame();
54
- await nextFrame();
55
- expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
56
- expect(el.tabIndex).to.equal(-1);
57
- await sendKeys({
58
- press: 'Tab',
59
- });
60
- await nextFrame();
61
- await nextFrame();
62
- await elementUpdated(el);
63
- expect(lastInput === document.activeElement).to.be.true;
64
- expect(el.tabIndex).to.equal(0);
65
- await sendKeys({
66
- press: 'Shift+Tab',
67
- });
68
- await nextFrame();
69
- await nextFrame();
70
- await nextFrame();
71
- await nextFrame();
72
- expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
73
- expect(el.tabIndex).to.equal(-1);
35
+ const el = test.querySelector("sp-grid");
36
+ const firstInput = test.querySelector("#first-input");
37
+ const lastInput = test.querySelector("#last-input");
38
+ await elementUpdated(el);
39
+ expect(el.tabIndex).to.equal(0);
40
+ firstInput.focus();
41
+ expect(firstInput === document.activeElement).to.be.true;
42
+ expect(el.tabIndex).to.equal(0);
43
+ await sendKeys({
44
+ press: "Tab"
45
+ });
46
+ await nextFrame();
47
+ await nextFrame();
48
+ expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
49
+ expect(el.tabIndex).to.equal(-1);
50
+ await sendKeys({
51
+ press: "Tab"
74
52
  });
75
- it('manages roving tabindex', async () => {
76
- const test = await fixture(html `
53
+ await nextFrame();
54
+ await nextFrame();
55
+ await elementUpdated(el);
56
+ expect(lastInput === document.activeElement).to.be.true;
57
+ expect(el.tabIndex).to.equal(0);
58
+ await sendKeys({
59
+ press: "Shift+Tab"
60
+ });
61
+ await nextFrame();
62
+ await nextFrame();
63
+ await nextFrame();
64
+ await nextFrame();
65
+ expect(el.querySelector(el.focusableSelector) === document.activeElement).to.be.true;
66
+ expect(el.tabIndex).to.equal(-1);
67
+ });
68
+ it("manages roving tabindex", async () => {
69
+ const test = await fixture(html`
77
70
  <div>${Default()}</div>
78
71
  `);
79
- const el = test.querySelector('sp-grid');
80
- await elementUpdated(el);
81
- expect(el.tabIndex).to.equal(0);
82
- el.focus();
83
- await nextFrame();
84
- await nextFrame();
85
- let focused = el.querySelector(el.focusableSelector);
86
- await elementUpdated(focused);
87
- expect(focused === document.activeElement).to.be.true;
88
- expect(focused.focused).to.be.true;
89
- await sendKeys({
90
- press: 'ArrowRight',
91
- });
92
- focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
93
- await elementUpdated(focused);
94
- expect(focused === document.activeElement).to.be.true;
95
- expect(focused.focused).to.be.true;
96
- await sendKeys({
97
- press: 'ArrowDown',
98
- });
99
- focused = el.querySelector(`${el.focusableSelector}:nth-child(5)`);
100
- await elementUpdated(focused);
101
- expect(focused === document.activeElement).to.be.true;
102
- expect(focused.focused).to.be.true;
103
- await sendKeys({
104
- press: 'ArrowLeft',
105
- });
106
- focused = el.querySelector(`${el.focusableSelector}:nth-child(4)`);
107
- await elementUpdated(focused);
108
- expect(focused === document.activeElement).to.be.true;
109
- expect(focused.focused).to.be.true;
110
- await sendKeys({
111
- press: 'ArrowUp',
112
- });
113
- focused = el.querySelector(`${el.focusableSelector}`);
114
- await elementUpdated(focused);
115
- expect(focused === document.activeElement).to.be.true;
116
- expect(focused.focused).to.be.true;
72
+ const el = test.querySelector("sp-grid");
73
+ await elementUpdated(el);
74
+ expect(el.tabIndex).to.equal(0);
75
+ el.focus();
76
+ await nextFrame();
77
+ await nextFrame();
78
+ let focused = el.querySelector(el.focusableSelector);
79
+ await elementUpdated(focused);
80
+ expect(focused === document.activeElement).to.be.true;
81
+ expect(focused.focused).to.be.true;
82
+ await sendKeys({
83
+ press: "ArrowRight"
84
+ });
85
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
86
+ await elementUpdated(focused);
87
+ expect(focused === document.activeElement).to.be.true;
88
+ expect(focused.focused).to.be.true;
89
+ await sendKeys({
90
+ press: "ArrowDown"
91
+ });
92
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(5)`);
93
+ await elementUpdated(focused);
94
+ expect(focused === document.activeElement).to.be.true;
95
+ expect(focused.focused).to.be.true;
96
+ await sendKeys({
97
+ press: "ArrowLeft"
117
98
  });
118
- it('manages selection', async () => {
119
- const test = await fixture(html `
99
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(4)`);
100
+ await elementUpdated(focused);
101
+ expect(focused === document.activeElement).to.be.true;
102
+ expect(focused.focused).to.be.true;
103
+ await sendKeys({
104
+ press: "ArrowUp"
105
+ });
106
+ focused = el.querySelector(`${el.focusableSelector}`);
107
+ await elementUpdated(focused);
108
+ expect(focused === document.activeElement).to.be.true;
109
+ expect(focused.focused).to.be.true;
110
+ });
111
+ it("manages selection", async () => {
112
+ const test = await fixture(html`
120
113
  <div>${Default()}</div>
121
114
  `);
122
- const el = test.querySelector('sp-grid');
123
- await elementUpdated(el);
124
- expect(el.tabIndex).to.equal(0);
125
- el.focus();
126
- await nextFrame();
127
- await nextFrame();
128
- let focused = el.querySelector(el.focusableSelector);
129
- await elementUpdated(focused);
130
- expect(focused === document.activeElement).to.be.true;
131
- expect(focused.focused).to.be.true;
132
- await sendKeys({
133
- press: 'ArrowRight',
134
- });
135
- focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
136
- await elementUpdated(focused);
137
- expect(focused === document.activeElement).to.be.true;
138
- expect(focused.focused).to.be.true;
139
- await sendKeys({
140
- press: 'Space',
141
- });
142
- await elementUpdated(el);
143
- expect(el.selected).to.deep.equal([{ id: 1 }]);
144
- await sendKeys({
145
- press: 'ArrowDown',
146
- });
147
- focused = el.querySelector(`${el.focusableSelector}:nth-child(5)`);
148
- await elementUpdated(focused);
149
- expect(focused === document.activeElement).to.be.true;
150
- expect(focused.focused).to.be.true;
151
- await sendKeys({
152
- press: 'Space',
153
- });
154
- await elementUpdated(el);
155
- expect(el.selected).to.deep.equal([{ id: 1 }, { id: 4 }]);
156
- await sendKeys({
157
- press: 'ArrowUp',
158
- });
159
- focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
160
- await elementUpdated(focused);
161
- expect(focused === document.activeElement).to.be.true;
162
- expect(focused.focused).to.be.true;
163
- await sendKeys({
164
- press: 'Space',
165
- });
166
- await elementUpdated(el);
167
- expect(el.selected).to.deep.equal([{ id: 4 }]);
115
+ const el = test.querySelector("sp-grid");
116
+ await elementUpdated(el);
117
+ expect(el.tabIndex).to.equal(0);
118
+ el.focus();
119
+ await nextFrame();
120
+ await nextFrame();
121
+ let focused = el.querySelector(el.focusableSelector);
122
+ await elementUpdated(focused);
123
+ expect(focused === document.activeElement).to.be.true;
124
+ expect(focused.focused).to.be.true;
125
+ await sendKeys({
126
+ press: "ArrowRight"
127
+ });
128
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
129
+ await elementUpdated(focused);
130
+ expect(focused === document.activeElement).to.be.true;
131
+ expect(focused.focused).to.be.true;
132
+ await sendKeys({
133
+ press: "Space"
134
+ });
135
+ await elementUpdated(el);
136
+ expect(el.selected).to.deep.equal([{ id: 1 }]);
137
+ await sendKeys({
138
+ press: "ArrowDown"
139
+ });
140
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(5)`);
141
+ await elementUpdated(focused);
142
+ expect(focused === document.activeElement).to.be.true;
143
+ expect(focused.focused).to.be.true;
144
+ await sendKeys({
145
+ press: "Space"
146
+ });
147
+ await elementUpdated(el);
148
+ expect(el.selected).to.deep.equal([{ id: 1 }, { id: 4 }]);
149
+ await sendKeys({
150
+ press: "ArrowUp"
151
+ });
152
+ focused = el.querySelector(`${el.focusableSelector}:nth-child(2)`);
153
+ await elementUpdated(focused);
154
+ expect(focused === document.activeElement).to.be.true;
155
+ expect(focused.focused).to.be.true;
156
+ await sendKeys({
157
+ press: "Space"
168
158
  });
169
- it('does not claim lit-virtualizer on the global registry', async () => {
170
- const test = await fixture(html `
159
+ await elementUpdated(el);
160
+ expect(el.selected).to.deep.equal([{ id: 4 }]);
161
+ });
162
+ it("does not claim lit-virtualizer on the global registry", async () => {
163
+ const test = await fixture(html`
171
164
  <div>${Default()}</div>
172
165
  `);
173
- const el = test.querySelector('sp-grid');
174
- await elementUpdated(el);
175
- customElements.define('lit-virtualizer', class extends HTMLElement {
176
- });
177
- // make sure we also don't prevent *any* registration of lit-virtualizer
178
- expect(() => {
179
- customElements.define('lit-virtualizer', class extends HTMLElement {
180
- });
181
- }).to.throw();
166
+ const el = test.querySelector("sp-grid");
167
+ await elementUpdated(el);
168
+ customElements.define("lit-virtualizer", class extends HTMLElement {
182
169
  });
170
+ expect(() => {
171
+ customElements.define("lit-virtualizer", class extends HTMLElement {
172
+ });
173
+ }).to.throw();
174
+ });
183
175
  });
184
- //# sourceMappingURL=grid.test.js.map
176
+ //# sourceMappingURL=grid.test.js.map
@@ -1 +1,7 @@
1
- {"version":3,"file":"grid.test.js","sourceRoot":"","sources":["grid.test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;EAUE;AAEF,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,E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sourcesContent":["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, nextFrame } from '@open-wc/testing';\nimport { html } from '@spectrum-web-components/base';\nimport { Card } from '@spectrum-web-components/card';\n\nimport '../sp-grid.js';\nimport { Grid } from '..';\nimport { Default } from '../stories/grid.stories.js';\nimport { sendKeys } from '@web/test-runner-commands';\n\ndescribe('Grid', () => {\n it('loads default grid accessibly', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('accepts focus', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n });\n it('allows to tab in and out', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n const firstInput = test.querySelector('#first-input') as HTMLElement;\n const lastInput = test.querySelector('#last-input') as HTMLElement;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n firstInput.focus();\n expect(firstInput === document.activeElement).to.be.true;\n expect(el.tabIndex).to.equal(0);\n\n await sendKeys({\n press: 'Tab',\n });\n\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n expect(el.tabIndex).to.equal(-1);\n\n await sendKeys({\n press: 'Tab',\n });\n\n await nextFrame();\n await nextFrame();\n\n await elementUpdated(el);\n expect(lastInput === document.activeElement).to.be.true;\n expect(el.tabIndex).to.equal(0);\n\n await sendKeys({\n press: 'Shift+Tab',\n });\n\n await nextFrame();\n await nextFrame();\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n expect(el.tabIndex).to.equal(-1);\n });\n it('manages roving tabindex', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n let focused = el.querySelector(el.focusableSelector) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowRight',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowDown',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(5)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowLeft',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(4)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowUp',\n });\n\n focused = el.querySelector(`${el.focusableSelector}`) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n });\n it('manages selection', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n let focused = el.querySelector(el.focusableSelector) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowRight',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 1 }]);\n\n await sendKeys({\n press: 'ArrowDown',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(5)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 1 }, { id: 4 }]);\n\n await sendKeys({\n press: 'ArrowUp',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 4 }]);\n });\n it('does not claim lit-virtualizer on the global registry', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n customElements.define('lit-virtualizer', class extends HTMLElement {});\n\n // make sure we also don't prevent *any* registration of lit-virtualizer\n expect(() => {\n customElements.define(\n 'lit-virtualizer',\n class extends HTMLElement {}\n );\n }).to.throw();\n });\n});\n"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["grid.test.ts"],
4
+ "sourcesContent": ["/*\nCopyright 2020 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport { elementUpdated, expect, fixture, nextFrame } from '@open-wc/testing';\nimport { html } from '@spectrum-web-components/base';\nimport { Card } from '@spectrum-web-components/card';\n\nimport '@spectrum-web-components/grid/sp-grid.js';\nimport { Grid } from '@spectrum-web-components/grid';\nimport { Default } from '../stories/grid.stories.js';\nimport { sendKeys } from '@web/test-runner-commands';\nimport { testForLitDevWarnings } from '../../../test/testing-helpers.js';\n\ndescribe('Grid', () => {\n testForLitDevWarnings(\n async () =>\n await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n )\n );\n it('loads default grid accessibly', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n await expect(el).to.be.accessible();\n });\n it('accepts focus', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n });\n it('allows to tab in and out', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n const firstInput = test.querySelector('#first-input') as HTMLElement;\n const lastInput = test.querySelector('#last-input') as HTMLElement;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n firstInput.focus();\n expect(firstInput === document.activeElement).to.be.true;\n expect(el.tabIndex).to.equal(0);\n\n await sendKeys({\n press: 'Tab',\n });\n\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n expect(el.tabIndex).to.equal(-1);\n\n await sendKeys({\n press: 'Tab',\n });\n\n await nextFrame();\n await nextFrame();\n\n await elementUpdated(el);\n expect(lastInput === document.activeElement).to.be.true;\n expect(el.tabIndex).to.equal(0);\n\n await sendKeys({\n press: 'Shift+Tab',\n });\n\n await nextFrame();\n await nextFrame();\n await nextFrame();\n await nextFrame();\n\n expect(\n el.querySelector(el.focusableSelector) === document.activeElement\n ).to.be.true;\n expect(el.tabIndex).to.equal(-1);\n });\n it('manages roving tabindex', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n let focused = el.querySelector(el.focusableSelector) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowRight',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowDown',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(5)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowLeft',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(4)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowUp',\n });\n\n focused = el.querySelector(`${el.focusableSelector}`) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n });\n it('manages selection', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n expect(el.tabIndex).to.equal(0);\n\n el.focus();\n\n await nextFrame();\n await nextFrame();\n\n let focused = el.querySelector(el.focusableSelector) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'ArrowRight',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 1 }]);\n\n await sendKeys({\n press: 'ArrowDown',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(5)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 1 }, { id: 4 }]);\n\n await sendKeys({\n press: 'ArrowUp',\n });\n\n focused = el.querySelector(\n `${el.focusableSelector}:nth-child(2)`\n ) as Card;\n await elementUpdated(focused);\n expect(focused === document.activeElement).to.be.true;\n expect(focused.focused).to.be.true;\n\n await sendKeys({\n press: 'Space',\n });\n\n await elementUpdated(el);\n\n expect(el.selected).to.deep.equal([{ id: 4 }]);\n });\n it('does not claim lit-virtualizer on the global registry', async () => {\n const test = await fixture<HTMLDivElement>(\n html`\n <div>${Default()}</div>\n `\n );\n const el = test.querySelector('sp-grid') as Grid;\n\n await elementUpdated(el);\n\n customElements.define('lit-virtualizer', class extends HTMLElement {});\n\n // make sure we also don't prevent *any* registration of lit-virtualizer\n expect(() => {\n customElements.define(\n 'lit-virtualizer',\n class extends HTMLElement {}\n );\n }).to.throw();\n });\n});\n"],
5
+ "mappings": "AAYA;AACA;AAGA;AAEA;AACA;AACA;AAEA,SAAS,QAAQ,MAAM;AACnB,wBACI,YACI,MAAM,QACF;AAAA,2BACW,QAAQ;AAAA,iBAEvB,CACR;AACA,KAAG,iCAAiC,YAAY;AAC5C,UAAM,OAAO,MAAM,QACf;AAAA,uBACW,QAAQ;AAAA,aAEvB;AACA,UAAM,KAAK,KAAK,cAAc,SAAS;AAEvC,UAAM,eAAe,EAAE;AAEvB,UAAM,OAAO,EAAE,EAAE,GAAG,GAAG,WAAW;AAAA,EACtC,CAAC;AACD,KAAG,iBAAiB,YAAY;AAC5B,UAAM,OAAO,MAAM,QACf;AAAA,uBACW,QAAQ;AAAA,aAEvB;AACA,UAAM,KAAK,KAAK,cAAc,SAAS;AAEvC,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;AAE9B,OAAG,MAAM;AAET,UAAM,UAAU;AAChB,UAAM,UAAU;AAEhB,WACI,GAAG,cAAc,GAAG,iBAAiB,MAAM,SAAS,aACxD,EAAE,GAAG,GAAG;AAAA,EACZ,CAAC;AACD,KAAG,4BAA4B,YAAY;AACvC,UAAM,OAAO,MAAM,QACf;AAAA,uBACW,QAAQ;AAAA,aAEvB;AACA,UAAM,KAAK,KAAK,cAAc,SAAS;AACvC,UAAM,aAAa,KAAK,cAAc,cAAc;AACpD,UAAM,YAAY,KAAK,cAAc,aAAa;AAElD,UAAM,eAAe,EAAE;AAEvB,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;AAE9B,eAAW,MAAM;AACjB,WAAO,eAAe,SAAS,aAAa,EAAE,GAAG,GAAG;AACpD,WAAO,GAAG,QAAQ,EAAE,GAAG,MAAM,CAAC;AAE9B,UAAM,SAAS;AAAA,MACX,OAAO;AAAA,IACX,CAAC;AAED,UAAM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