From 1b0e0c551d1505ed4242c04ebac224e5fff81f04 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 30 Dec 2023 06:59:18 +0700 Subject: fix document-util tests (#490) * fix document-util tests * fix unintentional line deletion --- test/document-util.test.js | 4 ++-- 1 file 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} */ (document.querySelectorAll('.test[data-test-type=scan]'))) { + for (const testElement of /** @type {NodeListOf} */ (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} */ (document.querySelectorAll('.test[data-test-type=text-source-range-seek]'))) { + for (const testElement of /** @type {NodeListOf} */ (document.querySelectorAll('test-case[data-test-type=text-source-range-seek]'))) { // Get test parameters const { seekNodeSelector, -- cgit v1.2.3