summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2022-08-20 13:11:38 -0400
committerGitHub <noreply@github.com>2022-08-20 13:11:38 -0400
commit4194252fe363e9737abf4aa407d8ce14e7743559 (patch)
tree019470a3f9bf0e18718cb1de69e8a5ae84c5b2d6 /test
parentd3807d88ecf40b2c37ed31d823af038a091ffca0 (diff)
New StringUtil (#2216)
* Create new StringUtil * Use StringUtil in DOMTextScanner * Fix order
Diffstat (limited to 'test')
-rw-r--r--test/test-document-util.js1
-rw-r--r--test/test-dom-text-scanner.js5
2 files changed, 5 insertions, 1 deletions
diff --git a/test/test-document-util.js b/test/test-document-util.js
index 9bcc5e95..334c78a5 100644
--- a/test/test-document-util.js
+++ b/test/test-document-util.js
@@ -94,6 +94,7 @@ async function testDocument1() {
const vm = new VM({document, window, Range, Node});
vm.execute([
+ 'js/data/sandbox/string-util.js',
'js/dom/dom-text-scanner.js',
'js/dom/text-source-range.js',
'js/dom/text-source-element.js',
diff --git a/test/test-dom-text-scanner.js b/test/test-dom-text-scanner.js
index e4ea98cc..f3bd4599 100644
--- a/test/test-dom-text-scanner.js
+++ b/test/test-dom-text-scanner.js
@@ -166,7 +166,10 @@ async function testDocument1() {
window.getComputedStyle = createAbsoluteGetComputedStyle(window);
const vm = new VM({document, window, Range, Node});
- vm.execute('js/dom/dom-text-scanner.js');
+ vm.execute([
+ 'js/data/sandbox/string-util.js',
+ 'js/dom/dom-text-scanner.js'
+ ]);
const DOMTextScanner = vm.get('DOMTextScanner');
await testDomTextScanner(dom, {DOMTextScanner});