aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2023-12-30 06:59:18 +0700
committerGitHub <noreply@github.com>2023-12-29 23:59:18 +0000
commit1b0e0c551d1505ed4242c04ebac224e5fff81f04 (patch)
treee2f64b146ff43395ebe943d4a1a734ccec3ee8a0 /test
parentea85770563a18216a49d191e42704ebcf7e67519 (diff)
fix document-util tests (#490)
* fix document-util tests * fix unintentional line deletion
Diffstat (limited to 'test')
-rw-r--r--test/document-util.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/document-util.test.js b/test/document-util.test.js
index 5f2e49ea..109345d1 100644
--- a/test/document-util.test.js
+++ b/test/document-util.test.js
@@ -114,7 +114,7 @@ const test = createDomTest(path.join(dirname, 'data/html/document-util.html'));
describe('DocumentUtil', () => {
test('Text scanning functions', ({window}) => {
const {document} = window;
- for (const testElement of /** @type {NodeListOf<HTMLElement>} */ (document.querySelectorAll('.test[data-test-type=scan]'))) {
+ for (const testElement of /** @type {NodeListOf<HTMLElement>} */ (document.querySelectorAll('test-case[data-test-type=scan]'))) {
// Get test parameters
const {
elementFromPointSelector,
@@ -231,7 +231,7 @@ describe('DocumentUtil', () => {
describe('DOMTextScanner', () => {
test('Seek functions', async ({window}) => {
const {document} = window;
- for (const testElement of /** @type {NodeListOf<HTMLElement>} */ (document.querySelectorAll('.test[data-test-type=text-source-range-seek]'))) {
+ for (const testElement of /** @type {NodeListOf<HTMLElement>} */ (document.querySelectorAll('test-case[data-test-type=text-source-range-seek]'))) {
// Get test parameters
const {
seekNodeSelector,