mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision a184aa4fd5cd8f92eb87ce0035f257f2a4c7c0b2
This commit is contained in:
parent
e1065fa22a
commit
c7e8937c37
84 changed files with 2653 additions and 218 deletions
|
@ -1,5 +1,7 @@
|
|||
"use strict";
|
||||
|
||||
// TODO: extend `EditorTestUtils` in editing/include/edit-test-utils.mjs
|
||||
|
||||
const kBackspaceKey = "\uE003";
|
||||
const kDeleteKey = "\uE017";
|
||||
const kArrowRight = "\uE014";
|
||||
|
@ -323,7 +325,7 @@ function setupEditor(innerHTMLWithRangeMarkers) {
|
|||
return {
|
||||
marker: scanResult[0],
|
||||
container: textNode,
|
||||
offset: scanResult.index + offset,
|
||||
offset: scanResult.index + offset
|
||||
};
|
||||
}
|
||||
if (startContainer.nodeType === Node.TEXT_NODE) {
|
||||
|
@ -359,7 +361,7 @@ function setupEditor(innerHTMLWithRangeMarkers) {
|
|||
return {
|
||||
marker: scanResult[0],
|
||||
container: textNode,
|
||||
offset: scanResult.index + offset,
|
||||
offset: scanResult.index + offset
|
||||
};
|
||||
}
|
||||
if (startContainer.nodeType === Node.TEXT_NODE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue