You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2021/04/04 04:47:28 UTC

[incubator-annotator] 14/14: Remove references to window

This is an automated email from the ASF dual-hosted git repository.

randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit fb8b1282bba01a369fc2fc35d106da8add7c1a7f
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Sat Apr 3 21:46:54 2021 -0700

    Remove references to window
---
 packages/dom/test/highlight-range/highlight-range.test.ts | 2 +-
 packages/dom/test/text-position/describe.test.ts          | 2 +-
 packages/dom/test/text-position/match.test.ts             | 2 +-
 packages/dom/test/text-quote/describe.test.ts             | 2 +-
 packages/dom/test/text-quote/match.test.ts                | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/packages/dom/test/highlight-range/highlight-range.test.ts b/packages/dom/test/highlight-range/highlight-range.test.ts
index cb1c4dc..dae8212 100644
--- a/packages/dom/test/highlight-range/highlight-range.test.ts
+++ b/packages/dom/test/highlight-range/highlight-range.test.ts
@@ -23,7 +23,7 @@ import { highlightRange } from '../../src/highlight-range';
 import type { RangeInfo } from '../utils';
 import { hydrateRange, evaluateXPath } from '../utils';
 
-const domParser = new window.DOMParser();
+const domParser = new DOMParser();
 
 const testCases: {
   [name: string]: {
diff --git a/packages/dom/test/text-position/describe.test.ts b/packages/dom/test/text-position/describe.test.ts
index 9bc9957..3c4f2c9 100644
--- a/packages/dom/test/text-position/describe.test.ts
+++ b/packages/dom/test/text-position/describe.test.ts
@@ -23,7 +23,7 @@ import { describeTextPosition } from '../../src/text-position/describe';
 import { hydrateRange } from '../utils';
 import { testCases } from './match-cases';
 
-const domParser = new window.DOMParser();
+const domParser = new DOMParser();
 
 describe('createTextPositionSelectorMatcher', () => {
   describe('inverts test cases of text position matcher', () => {
diff --git a/packages/dom/test/text-position/match.test.ts b/packages/dom/test/text-position/match.test.ts
index bd0e1ea..6d51c95 100644
--- a/packages/dom/test/text-position/match.test.ts
+++ b/packages/dom/test/text-position/match.test.ts
@@ -25,7 +25,7 @@ import { evaluateXPath } from '../utils';
 import type { RangeInfo } from '../utils';
 import { testCases } from './match-cases';
 
-const domParser = new window.DOMParser();
+const domParser = new DOMParser();
 
 describe('createTextPositionSelectorMatcher', () => {
   for (const [name, { html, selector, expected }] of Object.entries(
diff --git a/packages/dom/test/text-quote/describe.test.ts b/packages/dom/test/text-quote/describe.test.ts
index 28119d2..b0113e0 100644
--- a/packages/dom/test/text-quote/describe.test.ts
+++ b/packages/dom/test/text-quote/describe.test.ts
@@ -30,7 +30,7 @@ import {
 } from './describe-cases';
 import { testCases as testMatchCases } from './match-cases';
 
-const domParser = new window.DOMParser();
+const domParser = new DOMParser();
 
 function runTestCases(testCases: DescribeTextQuoteTestCases) {
   for (const [name, { html, range, expected, options }] of Object.entries(
diff --git a/packages/dom/test/text-quote/match.test.ts b/packages/dom/test/text-quote/match.test.ts
index 5c805fa..d2aefdb 100644
--- a/packages/dom/test/text-quote/match.test.ts
+++ b/packages/dom/test/text-quote/match.test.ts
@@ -25,7 +25,7 @@ import { evaluateXPath } from '../utils';
 import type { RangeInfo } from '../utils';
 import { testCases } from './match-cases';
 
-const domParser = new window.DOMParser();
+const domParser = new DOMParser();
 
 describe('createTextQuoteSelectorMatcher', () => {
   for (const [name, { html, selector, expected }] of Object.entries(