diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test-document-util.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-document-util.js b/test/test-document-util.js index 34f4f8b3..ad4da269 100644 --- a/test/test-document-util.js +++ b/test/test-document-util.js @@ -166,8 +166,7 @@ async function testDocumentTextScanningFunctions(dom, {DocumentUtil, TextSourceR }; // Test docRangeFromPoint - const documentUtil = new DocumentUtil(); - const source = documentUtil.getRangeFromPoint(0, 0, { + const source = DocumentUtil.getRangeFromPoint(0, 0, { deepContentScan: false, normalizeCssZoom: true }); @@ -202,7 +201,7 @@ async function testDocumentTextScanningFunctions(dom, {DocumentUtil, TextSourceR } // Test docSentenceExtract - const sentenceActual = documentUtil.extractSentence( + const sentenceActual = DocumentUtil.extractSentence( source, false, sentenceScanExtent, |