Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ suite('include-fragment-element', function () {
}, 100)

await when(div.firstChild, 'load')
assert.ok(!failed, 'Load occured too early')
assert.ok(!failed, 'Load occurred too early')
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

})

test('loading=lazy does not observably change during load cycle', async function () {
Expand Down Expand Up @@ -568,7 +568,7 @@ suite('include-fragment-element', function () {
}, 100)

await when(div.firstChild, 'load')
assert.ok(!failed, 'Load occured too early')
assert.ok(!failed, 'Load occurred too early')
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

})

test('loading=lazy wont load twice even if load is manually called', async function () {
Expand All @@ -587,7 +587,7 @@ suite('include-fragment-element', function () {

await load
await replacedPromise
assert.equal(loadCount, 1, 'Load occured too many times')
assert.equal(loadCount, 1, 'Load occurred too many times')
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

assert.equal(document.querySelector('include-fragment'), null)
assert.equal(document.querySelector('#replaced').textContent, 'hello')
})
Expand All @@ -606,7 +606,7 @@ suite('include-fragment-element', function () {
}, 0)

await when(div.firstChild, 'include-fragment-replaced')
assert.equal(loadCount, 1, 'Load occured too many times')
assert.equal(loadCount, 1, 'Load occurred too many times')
Copy link

Copilot AI May 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The typo in the error message has been corrected from 'occured' to 'occurred'.

Copilot uses AI. Check for mistakes.

assert.equal(document.querySelector('include-fragment'), null)
assert.equal(document.querySelector('#replaced').textContent, 'hello')
})
Expand Down