<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
selection_test(
'<p>|abc \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^a|bc \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'1');
selection_test(
'<p>^a|bc \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^ab|c \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'2');
selection_test(
'<p>^ab|c \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc| \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'3');
selection_test(
'<p>^abc| \u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc |\u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'4');
selection_test(
'<p>^abc |\u05D0\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc \u05D0|\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'5');
selection_test(
'<p>^abc \u05D0|\u05D1\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc \u05D0\u05D1|\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
'6');
selection_test(
'<p>^abc \u05D0\u05D1|\u05D2 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc \u05D0\u05D1\u05D2| 123 \u05D3\u05D4\u05D5 def</p>',
'7');
selection_test(
'<p>^abc \u05D0\u05D1\u05D2| 123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc \u05D0\u05D1\u05D2 |123 \u05D3\u05D4\u05D5 def</p>',
'8');
selection_test(
'<p>^abc \u05D0\u05D1\u05D2 |123 \u05D3\u05D4\u05D5 def</p>',
selection => selection.modify('extend', 'forward', 'character'),
'<p>^abc \u05D0\u05D1\u05D2 1|23 \u05D3\u05D4\u05D5 def</p>',
'9');
</script>