summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-09 19:02:51 -0500
committerGitHub <noreply@github.com>2021-01-09 19:02:51 -0500
commitd698911bc9bf7cb431bce939412131a90f24ee45 (patch)
treeaffa1b6f5b10180c3aa65ba33160775cff26c856 /test
parent11e9eb2295ebcbbc6e560e4a46c550c979c23500 (diff)
Refactor sentence scanning (#1213)
* Update tests * Update extractSentence implementation * Remove old extractSentence implementation * Optimize maps/sets
Diffstat (limited to 'test')
-rw-r--r--test/data/html/test-document1.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/data/html/test-document1.html b/test/data/html/test-document1.html
index 98a6fb44..37dbb017 100644
--- a/test/data/html/test-document1.html
+++ b/test/data/html/test-document1.html
@@ -46,6 +46,54 @@
<div
class="test"
data-test-type="scan"
+ data-element-from-point-selector="span"
+ data-caret-range-from-point-selector="span"
+ data-start-node-selector="span"
+ data-start-offset="16"
+ data-end-node-selector="span"
+ data-end-offset="16"
+ data-result-type="TextSourceRange",
+ data-sentence-extent="100"
+ data-sentence="心配して「くださって」、ありがと「ございます」"
+ >
+ <span>真白「心配して「くださって」、ありがと「ございます」」</span>
+ </div>
+
+ <div
+ class="test"
+ data-test-type="scan"
+ data-element-from-point-selector="span"
+ data-caret-range-from-point-selector="span"
+ data-start-node-selector="span"
+ data-start-offset="4"
+ data-end-node-selector="span"
+ data-end-offset="4"
+ data-result-type="TextSourceRange",
+ data-sentence-extent="100"
+ data-sentence="ありがとございます。"
+ >
+ <span>ありがとございます。ありがとございます。</span>
+ </div>
+
+ <div
+ class="test"
+ data-test-type="scan"
+ data-element-from-point-selector="span"
+ data-caret-range-from-point-selector="span"
+ data-start-node-selector="span"
+ data-start-offset="14"
+ data-end-node-selector="span"
+ data-end-offset="14"
+ data-result-type="TextSourceRange",
+ data-sentence-extent="100"
+ data-sentence="ありがとございます。"
+ >
+ <span>ありがとございます。ありがとございます。</span>
+ </div>
+
+ <div
+ class="test"
+ data-test-type="scan"
data-element-from-point-selector="input"
data-caret-range-from-point-selector="input"
data-start-node-selector="input"