projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
editing
/
selection
/
51344.html
diff --git
a/src/third_party/WebKit/LayoutTests/editing/selection/51344.html
b/src/third_party/WebKit/LayoutTests/editing/selection/51344.html
index
0af2165
..
696a3e7
100644
(file)
--- a/
src/third_party/WebKit/LayoutTests/editing/selection/51344.html
+++ b/
src/third_party/WebKit/LayoutTests/editing/selection/51344.html
@@
-31,7
+31,7
@@
function assert(bool) {
var test = document.getElementById('test');
var selection = window.getSelection();
var test = document.getElementById('test');
var selection = window.getSelection();
-selection.
setPosition
(test.firstChild, 6);
+selection.
collapse
(test.firstChild, 6);
selection.modify('move', 'right', 'character');
var offset = selection.anchorOffset;
assert(offset == 1);
selection.modify('move', 'right', 'character');
var offset = selection.anchorOffset;
assert(offset == 1);
@@
-39,7
+39,7
@@
test.style.display = "none";
test = document.getElementById('test_rtl');
selection = window.getSelection();
test = document.getElementById('test_rtl');
selection = window.getSelection();
-selection.
setPosition
(test.firstChild, 3);
+selection.
collapse
(test.firstChild, 3);
selection.modify('move', 'left', 'character');
offset = selection.anchorOffset;
assert(offset == 4);
selection.modify('move', 'left', 'character');
offset = selection.anchorOffset;
assert(offset == 4);