@m3ui-vue/m3ui-vue 1.4.3 → 1.5.0
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/dist/API.md +29 -7
- package/dist/{MButton-D7M324r9.js → MButton-D_uxtJa-.js} +2 -2
- package/dist/{MButton-D7M324r9.js.map → MButton-D_uxtJa-.js.map} +1 -1
- package/dist/{MDialog-DuOnNF9s.js → MDialog-DT4KAPmn.js} +2 -2
- package/dist/{MDialog-DuOnNF9s.js.map → MDialog-DT4KAPmn.js.map} +1 -1
- package/dist/{MListItem-Bb84X6ex.js → MListItem-CwYrxpPZ.js} +2 -2
- package/dist/{MListItem-Bb84X6ex.js.map → MListItem-CwYrxpPZ.js.map} +1 -1
- package/dist/{MLoadingIndicator-BUGRo2Tu.js → MLoadingIndicator-DhzECYRI.js} +2 -2
- package/dist/{MLoadingIndicator-BUGRo2Tu.js.map → MLoadingIndicator-DhzECYRI.js.map} +1 -1
- package/dist/{MSeekBar-BQUvUqb9.js → MSeekBar-DQPF5FTp.js} +2 -2
- package/dist/{MSeekBar-BQUvUqb9.js.map → MSeekBar-DQPF5FTp.js.map} +1 -1
- package/dist/{MSlider-SFdjE1Hy.js → MSlider-BvoMZTy9.js} +2 -2
- package/dist/{MSlider-SFdjE1Hy.js.map → MSlider-BvoMZTy9.js.map} +1 -1
- package/dist/{MSpinner-DKGNN64_.js → MSpinner-CgcCQhS9.js} +2 -2
- package/dist/{MSpinner-DKGNN64_.js.map → MSpinner-CgcCQhS9.js.map} +1 -1
- package/dist/{MTextField-Utsef6Kk.js → MTextField-B72dwF6V.js} +2 -2
- package/dist/{MTextField-Utsef6Kk.js.map → MTextField-B72dwF6V.js.map} +1 -1
- package/dist/{MTooltip-BhTFQ9Z2.js → MTooltip-YyF1CO75.js} +4 -4
- package/dist/{MTooltip-BhTFQ9Z2.js.map → MTooltip-YyF1CO75.js.map} +1 -1
- package/dist/api.json +1 -1
- package/dist/code-editor.js +1 -1
- package/dist/components/MGantt.vue.d.ts +11 -6
- package/dist/components/MGanttControls.vue.d.ts +9 -3
- package/dist/components/MResourceTimeline.vue.d.ts +4 -4
- package/dist/components/MTreeTable.vue.d.ts +1 -1
- package/dist/components/_MTimeSplitter.vue.d.ts +10 -0
- package/dist/composables/_dragCursor.d.ts +2 -0
- package/dist/composables/_useTimeAxis.d.ts +5 -1
- package/dist/composables/useGantt.d.ts +13 -0
- package/dist/composables/useLocale.d.ts +3 -0
- package/dist/draw.js +2 -2
- package/dist/flow.js +1 -1
- package/dist/gantt.js +1608 -1422
- package/dist/gantt.js.map +1 -1
- package/dist/locales/index.js +21 -0
- package/dist/locales/index.js.map +1 -1
- package/dist/m3ui-vue.css +1 -1
- package/dist/m3ui.js +5854 -5791
- package/dist/m3ui.js.map +1 -1
- package/dist/map.js +5 -5
- package/dist/media.js +4 -4
- package/dist/pdf.js +4 -4
- package/dist/rich-text-editor.js +4 -4
- package/dist/styles.css +1 -1
- package/dist/{useLocale-B8YKWg-H.js → useLocale-DLcG3qPC.js} +4 -1
- package/dist/useLocale-DLcG3qPC.js.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/MGantt.test.ts +105 -0
- package/src/__tests__/MResourceTimeline.test.ts +16 -0
- package/src/__tests__/MTabs.test.ts +112 -4
- package/src/components/MGantt.vue +138 -43
- package/src/components/MGanttControls.vue +36 -8
- package/src/components/MResourceTimeline.vue +59 -24
- package/src/components/MTabs.vue +163 -77
- package/src/components/_MTimeHeader.vue +3 -2
- package/src/components/_MTimeSplitter.vue +37 -0
- package/src/composables/_dragCursor.ts +15 -0
- package/src/composables/_ganttTime.ts +2 -1
- package/src/composables/_useTimeAxis.ts +10 -3
- package/src/composables/useGantt.ts +13 -0
- package/src/composables/useLocale.ts +6 -0
- package/src/locales/de.ts +3 -0
- package/src/locales/es.ts +3 -0
- package/src/locales/fr.ts +3 -0
- package/src/locales/ja.ts +3 -0
- package/src/locales/ko.ts +3 -0
- package/src/locales/pt.ts +3 -0
- package/src/locales/zh.ts +3 -0
- package/dist/useLocale-B8YKWg-H.js.map +0 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
|
|
2
2
|
import { mount, flushPromises } from '@vue/test-utils'
|
|
3
3
|
import { nextTick } from 'vue'
|
|
4
|
+
import { h } from 'vue'
|
|
4
5
|
import MGantt from '../components/MGantt.vue'
|
|
6
|
+
import MGanttControls from '../components/MGanttControls.vue'
|
|
5
7
|
import type { GanttTask } from '../composables/ganttSchedule'
|
|
6
8
|
|
|
7
9
|
// A 1200 × 600 chart at 40 px per day, the list 320 wide
|
|
@@ -127,4 +129,107 @@ describe('MGantt', () => {
|
|
|
127
129
|
pointer(window, 'pointerup', 600)
|
|
128
130
|
expect(w.emitted('update:tasks')).toBeUndefined()
|
|
129
131
|
})
|
|
132
|
+
it('readonly: dragging a bar with a mouse pans the chart, and presses claim the mouse (no native drag)', async () => {
|
|
133
|
+
const w = await gantt({ readonly: true })
|
|
134
|
+
const scroller = w.find('.overflow-auto').element as HTMLElement
|
|
135
|
+
scroller.scrollLeft = 300
|
|
136
|
+
scroller.scrollTop = 0
|
|
137
|
+
const down = new PointerEvent('pointerdown', { bubbles: true, cancelable: true, clientX: 500, clientY: 100, pointerId: 1, pointerType: 'mouse', button: 0, buttons: 1 })
|
|
138
|
+
bar(w, 'a').dispatchEvent(down)
|
|
139
|
+
expect(down.defaultPrevented).toBe(true)
|
|
140
|
+
pointer(window, 'pointermove', 520)
|
|
141
|
+
pointer(window, 'pointermove', 560)
|
|
142
|
+
expect(scroller.scrollLeft).toBe(240)
|
|
143
|
+
expect(document.body.style.cursor).toBe('grabbing')
|
|
144
|
+
pointer(window, 'pointerup', 560)
|
|
145
|
+
expect(document.body.style.cursor).toBe('')
|
|
146
|
+
expect(w.emitted('update:tasks')).toBeUndefined()
|
|
147
|
+
// A pan is not a click
|
|
148
|
+
expect(w.emitted('task-click')).toBeUndefined()
|
|
149
|
+
|
|
150
|
+
// The background's press too
|
|
151
|
+
const pane = w.find('.cursor-grab').element
|
|
152
|
+
const paneDown = new PointerEvent('pointerdown', { bubbles: true, cancelable: true, clientX: 700, clientY: 300, pointerId: 1, pointerType: 'mouse', button: 0, buttons: 1 })
|
|
153
|
+
pane.dispatchEvent(paneDown)
|
|
154
|
+
expect(paneDown.defaultPrevented).toBe(true)
|
|
155
|
+
pointer(window, 'pointermove', 650, 300)
|
|
156
|
+
expect(scroller.scrollLeft).toBe(290)
|
|
157
|
+
pointer(window, 'pointerup', 650, 300)
|
|
158
|
+
// And native drags never start on the timeline
|
|
159
|
+
const drag = new Event('dragstart', { bubbles: true, cancelable: true })
|
|
160
|
+
bar(w, 'b').dispatchEvent(drag)
|
|
161
|
+
expect(drag.defaultPrevented).toBe(true)
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
it('a bar with draggable: false pans; a click on it is still a click', async () => {
|
|
165
|
+
const w = await gantt({ tasks: tasks().map((t) => (t.id === 'a' ? { ...t, draggable: false } : t)) })
|
|
166
|
+
const scroller = w.find('.overflow-auto').element as HTMLElement
|
|
167
|
+
scroller.scrollLeft = 300
|
|
168
|
+
pointer(bar(w, 'a'), 'pointerdown', 500)
|
|
169
|
+
pointer(window, 'pointermove', 540)
|
|
170
|
+
pointer(window, 'pointerup', 540)
|
|
171
|
+
expect(scroller.scrollLeft).toBe(260)
|
|
172
|
+
expect(w.emitted('update:tasks')).toBeUndefined()
|
|
173
|
+
pointer(bar(w, 'a'), 'pointerdown', 500)
|
|
174
|
+
pointer(window, 'pointerup', 500)
|
|
175
|
+
expect(w.emitted('task-click')).toHaveLength(1)
|
|
176
|
+
})
|
|
177
|
+
|
|
178
|
+
it('keeps the col-resize cursor while the divider is dragged; double-click restores the width', async () => {
|
|
179
|
+
const w = await gantt({ gridWidth: 320 })
|
|
180
|
+
const sep = w.find('[role="separator"]')
|
|
181
|
+
pointer(sep.element, 'pointerdown', 320)
|
|
182
|
+
expect(document.body.style.cursor).toBe('col-resize')
|
|
183
|
+
expect(document.body.classList.contains('m3-drag-cursor')).toBe(true)
|
|
184
|
+
pointer(window, 'pointermove', 400)
|
|
185
|
+
expect(w.emitted('update:gridWidth')!.at(-1)![0]).toBe(400)
|
|
186
|
+
pointer(window, 'pointerup', 400)
|
|
187
|
+
expect(document.body.style.cursor).toBe('')
|
|
188
|
+
expect(document.body.classList.contains('m3-drag-cursor')).toBe(false)
|
|
189
|
+
await sep.trigger('dblclick')
|
|
190
|
+
expect(w.emitted('update:gridWidth')!.at(-1)![0]).toBe(320)
|
|
191
|
+
})
|
|
192
|
+
|
|
193
|
+
it('collapses and expands the task list (gridCollapsed, and the controls button)', async () => {
|
|
194
|
+
const w = await gantt({ gridCollapsed: true })
|
|
195
|
+
expect(w.find('[role="treegrid"]').exists()).toBe(false)
|
|
196
|
+
await w.setProps({ gridCollapsed: false })
|
|
197
|
+
expect(w.find('[role="treegrid"]').exists()).toBe(true)
|
|
198
|
+
|
|
199
|
+
const c = mount(MGantt, { props: { tasks: tasks(), today: null }, slots: { default: () => h(MGanttControls) }, attachTo: document.body })
|
|
200
|
+
await flushPromises()
|
|
201
|
+
await c.find('[aria-label="Hide task list"]').trigger('click')
|
|
202
|
+
expect(c.emitted('update:gridCollapsed')![0]![0]).toBe(true)
|
|
203
|
+
expect(c.find('[role="treegrid"]').exists()).toBe(false)
|
|
204
|
+
await c.find('[aria-label="Show task list"]').trigger('click')
|
|
205
|
+
expect(c.emitted('update:gridCollapsed')![1]![0]).toBe(false)
|
|
206
|
+
expect(c.find('[role="treegrid"]').exists()).toBe(true)
|
|
207
|
+
})
|
|
208
|
+
|
|
209
|
+
it('hides columns with hideBelow on a narrow chart', async () => {
|
|
210
|
+
vi.spyOn(HTMLElement.prototype, 'clientWidth', 'get').mockReturnValue(400)
|
|
211
|
+
const w = await gantt()
|
|
212
|
+
expect(w.findAll('[role="columnheader"]').map((c) => c.text())).toEqual(['Task'])
|
|
213
|
+
})
|
|
214
|
+
|
|
215
|
+
it('a tap on a bar shows its card', async () => {
|
|
216
|
+
const w = await gantt({ readonly: true })
|
|
217
|
+
pointer(bar(w, 'a'), 'pointerdown', 500, 100, { pointerType: 'touch' })
|
|
218
|
+
pointer(window, 'pointerup', 500, 100, { pointerType: 'touch' })
|
|
219
|
+
await nextTick()
|
|
220
|
+
expect(document.body.querySelector('[role="tooltip"]')?.textContent).toContain('Design')
|
|
221
|
+
// Tapping elsewhere hides it
|
|
222
|
+
pointer(w.find('.cursor-grab').element, 'pointerdown', 900, 400, { pointerType: 'touch' })
|
|
223
|
+
await nextTick()
|
|
224
|
+
expect(document.body.querySelector('[role="tooltip"]')).toBeNull()
|
|
225
|
+
w.unmount()
|
|
226
|
+
})
|
|
227
|
+
|
|
228
|
+
it('fits every task in the width', async () => {
|
|
229
|
+
const w = await gantt()
|
|
230
|
+
;(w.vm as unknown as { fit(): void }).fit()
|
|
231
|
+
await nextTick()
|
|
232
|
+
// 7 days (Mar 2 → the milestone at the start of Mar 9) in 1200 − 320 − 48 px
|
|
233
|
+
expect((w.vm as unknown as { pxPerDay: number }).pxPerDay).toBeCloseTo(832 / 7, 0)
|
|
234
|
+
})
|
|
130
235
|
})
|
|
@@ -99,4 +99,20 @@ describe('MResourceTimeline', () => {
|
|
|
99
99
|
expect(w.emitted('update:collapsed')![0]![0]).toEqual(['Kitchen'])
|
|
100
100
|
expect(w.findAll('[data-timeline-event]')).toHaveLength(2)
|
|
101
101
|
})
|
|
102
|
+
it('readonly: dragging an event with a mouse pans, and the press claims the mouse (no native drag)', async () => {
|
|
103
|
+
const w = await timeline({ readonly: true })
|
|
104
|
+
const scroller = w.find('.overflow-auto').element as HTMLElement
|
|
105
|
+
scroller.scrollLeft = 300
|
|
106
|
+
const down = new PointerEvent('pointerdown', { bubbles: true, cancelable: true, clientX: 500, clientY: 100, pointerId: 1, pointerType: 'mouse', button: 0, buttons: 1 })
|
|
107
|
+
block(w, 'Morning').element.dispatchEvent(down)
|
|
108
|
+
expect(down.defaultPrevented).toBe(true)
|
|
109
|
+
pointer(window, 'pointermove', 520, 100)
|
|
110
|
+
pointer(window, 'pointermove', 560, 100)
|
|
111
|
+
expect(scroller.scrollLeft).toBe(240)
|
|
112
|
+
expect(document.body.style.cursor).toBe('grabbing')
|
|
113
|
+
pointer(window, 'pointerup', 560, 100)
|
|
114
|
+
expect(document.body.style.cursor).toBe('')
|
|
115
|
+
expect(w.emitted('update:events')).toBeUndefined()
|
|
116
|
+
expect(w.emitted('event-click')).toBeUndefined()
|
|
117
|
+
})
|
|
102
118
|
})
|
|
@@ -46,16 +46,20 @@ describe('MTabs', () => {
|
|
|
46
46
|
(k) => [k, Object.getOwnPropertyDescriptor(proto, k)] as const,
|
|
47
47
|
)
|
|
48
48
|
const isTab = (el: HTMLElement) => el.tagName === 'BUTTON'
|
|
49
|
-
|
|
49
|
+
// Per-tab widths, editable mid-test to simulate a tab resizing after mount.
|
|
50
|
+
let widths: number[] = []
|
|
51
|
+
const tabIndex = (el: HTMLElement) => [...el.parentElement!.querySelectorAll(':scope > button')].indexOf(el)
|
|
52
|
+
function mockLayout(w: number[] = Array(8).fill(120)) {
|
|
53
|
+
widths = w
|
|
50
54
|
Object.defineProperty(proto, 'offsetLeft', {
|
|
51
55
|
configurable: true,
|
|
52
|
-
get(this: HTMLElement) { return isTab(this) ?
|
|
56
|
+
get(this: HTMLElement) { return isTab(this) ? widths.slice(0, tabIndex(this)).reduce((a, b) => a + b, 0) : 0 },
|
|
53
57
|
})
|
|
54
|
-
Object.defineProperty(proto, 'offsetWidth', { configurable: true, get(this: HTMLElement) { return isTab(this) ?
|
|
58
|
+
Object.defineProperty(proto, 'offsetWidth', { configurable: true, get(this: HTMLElement) { return isTab(this) ? widths[tabIndex(this)]! : 390 } })
|
|
55
59
|
Object.defineProperty(proto, 'clientWidth', { configurable: true, get() { return 390 } })
|
|
56
60
|
Object.defineProperty(proto, 'scrollWidth', {
|
|
57
61
|
configurable: true,
|
|
58
|
-
get(this: HTMLElement) { return this.querySelector('
|
|
62
|
+
get(this: HTMLElement) { return this.querySelector('button') ? Math.max(390, widths.reduce((a, b) => a + b, 0)) : 390 },
|
|
59
63
|
})
|
|
60
64
|
}
|
|
61
65
|
function spyScroll() {
|
|
@@ -133,5 +137,109 @@ describe('MTabs', () => {
|
|
|
133
137
|
await flushPromises()
|
|
134
138
|
expect(calls).toEqual([])
|
|
135
139
|
})
|
|
140
|
+
|
|
141
|
+
// A fake ResizeObserver the test can fire by hand (happy-dom's never reports).
|
|
142
|
+
class FakeRO {
|
|
143
|
+
static instances: FakeRO[] = []
|
|
144
|
+
targets = new Set<Element>()
|
|
145
|
+
disconnected = false
|
|
146
|
+
constructor(public cb: ResizeObserverCallback) { FakeRO.instances.push(this) }
|
|
147
|
+
observe(el: Element) { this.targets.add(el); this.fire([el]) }
|
|
148
|
+
unobserve(el: Element) { this.targets.delete(el) }
|
|
149
|
+
disconnect() { this.targets.clear(); this.disconnected = true }
|
|
150
|
+
fire(els: Element[] = [...this.targets]) {
|
|
151
|
+
const entries = els.map((target) => {
|
|
152
|
+
const el = target as HTMLElement
|
|
153
|
+
return { target, contentRect: { width: el.offsetWidth, height: 48 } } as unknown as ResizeObserverEntry
|
|
154
|
+
})
|
|
155
|
+
this.cb(entries, this as unknown as ResizeObserver)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function stubRO() { FakeRO.instances = []; vi.stubGlobal('ResizeObserver', FakeRO) }
|
|
159
|
+
const indicator = (w: ReturnType<typeof mount>) => {
|
|
160
|
+
const el = w.find('button').element.parentElement!.querySelector(':scope > div') as HTMLElement
|
|
161
|
+
return { left: parseFloat(el.style.left), width: parseFloat(el.style.width) }
|
|
162
|
+
}
|
|
163
|
+
// Icons drawn as their ligature names before the font loads: 300px tabs
|
|
164
|
+
const wide = () => [300, 300, 300, 300]
|
|
165
|
+
const iconTabs = Array.from({ length: 4 }, (_, i) => ({ value: i, label: `Tab ${i}`, icon: 'fact_check' }))
|
|
166
|
+
|
|
167
|
+
it('moves the indicator and re-centers, without animation, when the tabs resize after mount', async () => {
|
|
168
|
+
mockLayout(wide()); mockReducedMotion(false); stubRO()
|
|
169
|
+
const calls = spyScroll()
|
|
170
|
+
const w = mount(MTabs, { props: { modelValue: 3, tabs: iconTabs, scrollable: true } })
|
|
171
|
+
await flushPromises()
|
|
172
|
+
// tab 3 at 900–1200 (inset 16): indicator 916–1184; row scrolled to its end
|
|
173
|
+
expect(indicator(w)).toEqual({ left: 916, width: 268 })
|
|
174
|
+
expect(calls).toEqual([{ left: 1200 - 390, behavior: 'auto' }])
|
|
175
|
+
|
|
176
|
+
widths = [108, 108, 108, 108] // the font loaded: tabs shrink
|
|
177
|
+
FakeRO.instances[0]!.fire()
|
|
178
|
+
await flushPromises()
|
|
179
|
+
// tab 3 now at 324–432: indicator 340–416, row clamped to 432 - 390
|
|
180
|
+
expect(indicator(w)).toEqual({ left: 340, width: 76 })
|
|
181
|
+
expect(calls[1]).toEqual({ left: 42, behavior: 'auto' })
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
it('keeps the row where the user scrolled it by hand, but still moves the indicator', async () => {
|
|
185
|
+
mockLayout(wide()); mockReducedMotion(false); stubRO()
|
|
186
|
+
const calls = spyScroll()
|
|
187
|
+
const w = mount(MTabs, { props: { modelValue: 3, tabs: iconTabs, scrollable: true } })
|
|
188
|
+
await flushPromises()
|
|
189
|
+
const row = w.find('button').element.parentElement!.parentElement!
|
|
190
|
+
row.dispatchEvent(new Event('wheel'))
|
|
191
|
+
widths = [108, 108, 108, 108]
|
|
192
|
+
FakeRO.instances[0]!.fire()
|
|
193
|
+
await flushPromises()
|
|
194
|
+
expect(indicator(w)).toEqual({ left: 340, width: 76 })
|
|
195
|
+
expect(calls).toHaveLength(1)
|
|
196
|
+
})
|
|
197
|
+
|
|
198
|
+
it('ignores the first report of a newly observed element (no snap of a running animation)', async () => {
|
|
199
|
+
mockLayout(); mockReducedMotion(false); stubRO()
|
|
200
|
+
const w = mount(MTabs, { props: { modelValue: 0, tabs: many, scrollable: true } })
|
|
201
|
+
await flushPromises()
|
|
202
|
+
const ro = FakeRO.instances[0]!
|
|
203
|
+
widths = widths.map(() => 200)
|
|
204
|
+
const report = (el: Element) => ro.cb([{ target: el, contentRect: { width: 200, height: 48 } } as unknown as ResizeObserverEntry], ro as unknown as ResizeObserver)
|
|
205
|
+
report(document.createElement('button')) // first sight of an element
|
|
206
|
+
await flushPromises()
|
|
207
|
+
expect(indicator(w)).toEqual({ left: 16, width: 88 })
|
|
208
|
+
report(w.find('button').element) // a known tab that changed size
|
|
209
|
+
await flushPromises()
|
|
210
|
+
expect(indicator(w)).toEqual({ left: 16, width: 168 })
|
|
211
|
+
})
|
|
212
|
+
|
|
213
|
+
it('re-measures once fonts are ready', async () => {
|
|
214
|
+
mockLayout(wide()); mockReducedMotion(false)
|
|
215
|
+
let resolveFonts!: () => void
|
|
216
|
+
const ready = new Promise<void>((r) => { resolveFonts = r })
|
|
217
|
+
Object.defineProperty(document, 'fonts', { configurable: true, value: { ready } })
|
|
218
|
+
try {
|
|
219
|
+
const w = mount(MTabs, { props: { modelValue: 1, tabs: iconTabs, scrollable: true } })
|
|
220
|
+
await flushPromises()
|
|
221
|
+
expect(indicator(w)).toEqual({ left: 316, width: 268 })
|
|
222
|
+
widths = [108, 108, 108, 108]
|
|
223
|
+
resolveFonts()
|
|
224
|
+
await flushPromises()
|
|
225
|
+
expect(indicator(w)).toEqual({ left: 124, width: 76 })
|
|
226
|
+
} finally {
|
|
227
|
+
delete (document as unknown as Record<string, unknown>).fonts
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it('keeps the indicator inside a clipping box the width of the tabs, and disconnects on unmount', async () => {
|
|
232
|
+
mockLayout(); mockReducedMotion(false); stubRO()
|
|
233
|
+
const w = mount(MTabs, { props: { modelValue: 0, tabs: many, scrollable: true } })
|
|
234
|
+
await flushPromises()
|
|
235
|
+
const box = w.find('button').element.parentElement!
|
|
236
|
+
expect(box.querySelector(':scope > div.absolute')).not.toBeNull()
|
|
237
|
+
expect(box.classList).toContain('overflow-hidden')
|
|
238
|
+
expect(box.classList).toContain('w-max')
|
|
239
|
+
const ro = FakeRO.instances[0]!
|
|
240
|
+
expect(ro.targets.size).toBe(9) // the row + 8 tabs
|
|
241
|
+
w.unmount()
|
|
242
|
+
expect(ro.disconnected).toBe(true)
|
|
243
|
+
})
|
|
136
244
|
})
|
|
137
245
|
})
|