| Index: third_party/WebKit/LayoutTests/external/wpt/selection/extend.js
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/selection/extend.js b/third_party/WebKit/LayoutTests/external/wpt/selection/extend.js
|
| index 6c4c2cacf8fbd3def27d33d00586636f8d139730..6a2307e5e5396f5b67e5a5b2a6d6685a903ed257 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/selection/extend.js
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/selection/extend.js
|
| @@ -56,6 +56,15 @@ function testExtend(endpoints, target) {
|
| var node = target[0];
|
| var offset = target[1];
|
|
|
| + // "If node's root is not the document associated with the context object,
|
| + // abort these steps."
|
| + if (!document.contains(node)) {
|
| + assertSelectionNoChange(function() {
|
| + selection.extend(node, offset);
|
| + });
|
| + return;
|
| + }
|
| +
|
| // "If the context object's range is null, throw an InvalidStateError
|
| // exception and abort these steps."
|
| if (getSelection().rangeCount == 0) {
|
|
|