aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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});