Changeset 46926 in webkit


Ignore:
Timestamp:
Aug 7, 2009 4:25:57 PM (15 years ago)
Author:
Darin Adler
Message:

"Shadow tree" DOM nodes are being accidentally exposed to JavaScript
https://bugs.webkit.org/show_bug.cgi?id=28086

Patch by Darin Adler <Darin Adler> on 2009-08-07
Reviewed by Adele Peterson.

Rewrite tests that depend on selection inside <input> and <textarea> elements
from showing up with getSelection(), since does not match Firefox and needs to
change soon.

  • editing/deleting/delete-ligature-002-expected.txt: Updated.
  • editing/deleting/delete-ligature-002.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • editing/deleting/delete-ligature-003-expected.txt: Updated.
  • editing/deleting/delete-ligature-003.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • editing/deleting/skip-virama-001-expected.txt: Updated.
  • editing/deleting/skip-virama-001.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • editing/input/textarea-arrow-navigation-expected.txt: Moved to fast/forms.
  • editing/input/textarea-arrow-navigation.html: Ditto.
  • editing/inserting/insert-thai-characters-001-expected.txt: Updated.
  • editing/inserting/insert-thai-characters-001.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • editing/selection/5213963-expected.txt: Added. This is now a text-only test.
  • editing/selection/5213963.html: Added a call to dumpAsText(). Changed selection

testing to use selectionEnd instead of getSelection().type.

  • editing/selection/find-in-text-control-expected.txt: Updated.
  • editing/selection/find-in-text-control.html: Changed test to distinguish the

different text controls. Made it use activeElement to find out if the selection
is inside a control.

  • editing/selection/move-begin-end-expected.txt: Updated.
  • editing/selection/move-begin-end.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • editing/text-iterator/thai-cursor-movement-expected.txt: Updated.
  • editing/text-iterator/thai-cursor-movement.html: Changed to use a contenteditable

<div> element instead of a <textarea> element.

  • fast/forms/textarea-arrow-navigation-expected.txt: Moved from editing/input since

this is a <textarea> test, not a general editing test.

  • fast/forms/textarea-arrow-navigation.html: Ditto.

Changed to use eventSender instead of the editing machinery to test the down arrow.

  • platform/mac/editing/selection/5213963-expected.checksum: Removed.

This is now a text-only test.

  • platform/mac/editing/selection/5213963-expected.png: Ditto.
  • platform/mac/editing/selection/5213963-expected.txt: Ditto.
  • platform/qt/editing/selection/5213963-expected.txt: Ditto.
  • platform/win/editing/selection/5213963-expected.txt: Ditto.
Location:
trunk/LayoutTests
Files:
1 added
5 deleted
16 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r46925 r46926  
     12009-08-07  Darin Adler  <darin@apple.com>
     2
     3        Reviewed by Adele Peterson.
     4
     5        "Shadow tree" DOM nodes are being accidentally exposed to JavaScript
     6        https://bugs.webkit.org/show_bug.cgi?id=28086
     7
     8        Rewrite tests that depend on selection inside <input> and <textarea> elements
     9        from showing up with getSelection(), since does not match Firefox and needs to
     10        change soon.
     11
     12        * editing/deleting/delete-ligature-002-expected.txt: Updated.
     13        * editing/deleting/delete-ligature-002.html: Changed to use a contenteditable
     14        <div> element instead of a <textarea> element.
     15
     16        * editing/deleting/delete-ligature-003-expected.txt: Updated.
     17        * editing/deleting/delete-ligature-003.html: Changed to use a contenteditable
     18        <div> element instead of a <textarea> element.
     19
     20        * editing/deleting/skip-virama-001-expected.txt: Updated.
     21        * editing/deleting/skip-virama-001.html: Changed to use a contenteditable
     22        <div> element instead of a <textarea> element.
     23
     24        * editing/input/textarea-arrow-navigation-expected.txt: Moved to fast/forms.
     25        * editing/input/textarea-arrow-navigation.html: Ditto.
     26
     27        * editing/inserting/insert-thai-characters-001-expected.txt: Updated.
     28        * editing/inserting/insert-thai-characters-001.html: Changed to use a contenteditable
     29        <div> element instead of a <textarea> element.
     30
     31        * editing/selection/5213963-expected.txt: Added. This is now a text-only test.
     32        * editing/selection/5213963.html: Added a call to dumpAsText(). Changed selection
     33        testing to use selectionEnd instead of getSelection().type.
     34
     35        * editing/selection/find-in-text-control-expected.txt: Updated.
     36        * editing/selection/find-in-text-control.html: Changed test to distinguish the
     37        different text controls. Made it use activeElement to find out if the selection
     38        is inside a control.
     39
     40        * editing/selection/move-begin-end-expected.txt: Updated.
     41        * editing/selection/move-begin-end.html: Changed to use a contenteditable
     42        <div> element instead of a <textarea> element.
     43
     44        * editing/text-iterator/thai-cursor-movement-expected.txt: Updated.
     45        * editing/text-iterator/thai-cursor-movement.html: Changed to use a contenteditable
     46        <div> element instead of a <textarea> element.
     47
     48        * fast/forms/textarea-arrow-navigation-expected.txt: Moved from editing/input since
     49        this is a <textarea> test, not a general editing test.
     50        * fast/forms/textarea-arrow-navigation.html: Ditto.
     51        Changed to use eventSender instead of the editing machinery to test the down arrow.
     52
     53        * platform/mac/editing/selection/5213963-expected.checksum: Removed.
     54        This is now a text-only test.
     55        * platform/mac/editing/selection/5213963-expected.png: Ditto.
     56        * platform/mac/editing/selection/5213963-expected.txt: Ditto.
     57        * platform/qt/editing/selection/5213963-expected.txt: Ditto.
     58        * platform/win/editing/selection/5213963-expected.txt: Ditto.
     59
    1602009-08-07  Drew Wilson  <atwilson@google.com>
    261
  • trunk/LayoutTests/editing/deleting/delete-ligature-002-expected.txt

    r39169 r46926  
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    13EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV to 0 of DIV toDOMRange:range from 1 of #text > DIV to 1 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     4EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    45EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    56EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 2 of #text > DIV to 2 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     7EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    89EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    910EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1011EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    11 EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV to 2 of #text > DIV
    12 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 1 of #text > DIV to 1 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     12EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document
     13EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1314EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1415EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     
    1718If this test succeeds, you can see "ว" (U+0E27) and a string "succeeded" below.
    1819
    19 
     20
    2021Succeeded.
  • trunk/LayoutTests/editing/deleting/delete-ligature-002.html

    r39169 r46926  
    1515        function editingTest() {
    1616            if (window.layoutTestController)
    17                 window.layoutTestController.dumpAsText();
    18             var textarea = document.getElementById("test");
    19             textarea.focus();
     17                layoutTestController.dumpAsText();
     18            var testarea = document.getElementById("test");
     19            testarea.focus();
    2020            typeCharacterCommand(String.fromCharCode(0x0E27));
    2121            typeCharacterCommand(String.fromCharCode(0x0E31));
     
    2323            moveSelectionForwardByCharacterCommand();
    2424            sendBackwardDeleteKey();
    25             if (textarea.value == "\u0E27")
     25            if (testarea.textContent == "\u0E27")
    2626                log("Succeeded.");
    2727            else
    28                 log("Failed. Actual: \"" + textarea.value + "\", Expected: \"\u0E27\"");
     28                log("Failed. Actual: \"" + testarea.textContent + "\", Expected: \"\u0E27\"");
    2929        }
    3030        </script>
     
    3434        <p>This test tests whether the BackSpace key deletes only the last character of a ligature "&#x0E27;&#x0E31;".</p>
    3535        <p>If this test succeeds, you can see "&#x0E27;" (U+0E27) and a string "succeeded" below.</p>
    36         <textarea id="test" rows="1" cols="40"></textarea>
     36        <div id="test" contenteditable></div>
    3737        <ul id="console"></ul>
    3838        <script language="javascript" type="text/javascript">
  • trunk/LayoutTests/editing/deleting/delete-ligature-003-expected.txt

    r39169 r46926  
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    13EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    24EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    4 EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV to 2 of #text > DIV
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 1 of #text > DIV to 1 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document
     6EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    67EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    78EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    8 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 1 of #text > DIV to 2 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     9EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    910EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1011EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     
    1314If this test succeeds, you can see "วั" (U+0E27,U+0E31) and a string "succeeded" below.
    1415
    15 
     16วั
    1617Succeeded.
  • trunk/LayoutTests/editing/deleting/delete-ligature-003.html

    r39169 r46926  
    1515        function editingTest() {
    1616            if (window.layoutTestController)
    17                 window.layoutTestController.dumpAsText();
    18             var textarea = document.getElementById("test");
    19             textarea.focus();
     17                layoutTestController.dumpAsText();
     18            var testarea = document.getElementById("test");
     19            testarea.focus();
    2020            moveSelectionForwardByCharacterCommand();
    2121            moveSelectionForwardByCharacterCommand();
    2222            sendBackwardDeleteKey();
    2323            execUndoCommand();
    24             if (textarea.value == "\u0E27\u0E31")
     24            if (testarea.textContent == "\u0E27\u0E31")
    2525                log("Succeeded.");
    2626            else
    27                 log("Failed. Actual: \"" + textarea.value + "\", Expected: \"\u0E27\u0E31\"");
     27                log("Failed. Actual: \"" + testarea.value + "\", Expected: \"\u0E27\u0E31\"");
    2828        }
    2929        </script>
     
    3333        <p>This test tests whether the undo command works when the BackSpace key deletes the last character of a ligature "&#x0E27;&#x0E31;".</p>
    3434        <p>If this test succeeds, you can see "&#x0E27;&#x0E31;" (U+0E27,U+0E31) and a string "succeeded" below.</p>
    35         <textarea id="test" rows="1" cols="40">&#x0E27;&#x0E31;</textarea>
     35        <div id="test" contenteditable>&#x0E27;&#x0E31;</div>
    3636        <ul id="console"></ul>
    3737        <script language="javascript" type="text/javascript">
  • trunk/LayoutTests/editing/deleting/skip-virama-001-expected.txt

    r41588 r46926  
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    13EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV to 0 of DIV toDOMRange:range from 1 of #text > DIV to 1 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     4EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    45EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    56EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 2 of #text > DIV to 2 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     7EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    89EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV to 2 of #text > DIV toDOMRange:range from 3 of #text > DIV to 3 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     10EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1011EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1112EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     
    1516If this test succeeds, you can see a string "succeeded" below.
    1617
    17 
     18क्ष
    1819Succeeded.
  • trunk/LayoutTests/editing/deleting/skip-virama-001.html

    r41588 r46926  
    1717function editingTest() {
    1818    if (window.layoutTestController)
    19         window.layoutTestController.dumpAsText();
    20     var textarea = document.getElementById("test");
    21     textarea.focus();
     19        layoutTestController.dumpAsText();
     20    var testarea = document.getElementById("test");
     21    testarea.focus();
    2222    typeCharacterCommand(String.fromCharCode(0x0915));
    2323    typeCharacterCommand(String.fromCharCode(0x094D));
     
    2626    sendBackwardDeleteKey();
    2727    var expected_result = "\u0915\u094D\u0937";
    28     if (textarea.value == expected_result)
     28    if (testarea.textContent == expected_result)
    2929        log("Succeeded.");
    3030    else
    31         log("Failed. Actual: \"" + textarea.value + "\", Expected: \"" + expected_result + "\".");
     31        log("Failed. Actual: \"" + testarea.textContent + "\", Expected: \"" + expected_result + "\".");
    3232}
    3333</script>
     
    3636<p>This test tests whether or not we can prevent a cursor from moving after a virama sign.</p>
    3737<p>If this test succeeds, you can see a string "succeeded" below.</p>
    38 <textarea id="test" rows="1" cols="40"></textarea>
     38<div contenteditable id="test"></div>
    3939<ul id="console"></ul>
    4040<script language="javascript" type="text/javascript">
  • trunk/LayoutTests/editing/inserting/insert-thai-characters-001-expected.txt

    r41477 r46926  
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    13EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV to 0 of DIV toDOMRange:range from 1 of #text > DIV to 1 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     4EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    45EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    56EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    6 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV to 1 of #text > DIV toDOMRange:range from 2 of #text > DIV to 2 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     7EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of #text > DIV > BODY > HTML > #document to 1 of #text > DIV > BODY > HTML > #document toDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    89EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV to 2 of #text > DIV toDOMRange:range from 3 of #text > DIV to 3 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     10EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 2 of #text > DIV > BODY > HTML > #document to 2 of #text > DIV > BODY > HTML > #document toDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1011EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1112EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    12 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV to 3 of #text > DIV toDOMRange:range from 4 of #text > DIV to 4 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     13EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 3 of #text > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document toDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1314EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1415EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    15 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV to 4 of #text > DIV toDOMRange:range from 5 of #text > DIV to 5 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     16EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1617EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1718EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    18 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV to 5 of #text > DIV toDOMRange:range from 6 of #text > DIV to 6 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     19EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1920EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2021EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    21 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV to 6 of #text > DIV toDOMRange:range from 7 of #text > DIV to 7 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     22EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document toDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    2223EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2324EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    24 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV to 7 of #text > DIV toDOMRange:range from 8 of #text > DIV to 8 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     25EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document toDOMRange:range from 8 of #text > DIV > BODY > HTML > #document to 8 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    2526EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2627EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    27 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV to 8 of #text > DIV toDOMRange:range from 9 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     28EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 8 of #text > DIV > BODY > HTML > #document to 8 of #text > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    2829EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2930EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    30 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV to 9 of #text > DIV toDOMRange:range from 10 of #text > DIV to 10 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     31EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document toDOMRange:range from 10 of #text > DIV > BODY > HTML > #document to 10 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    3132EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3233EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    33 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > DIV to 10 of #text > DIV toDOMRange:range from 11 of #text > DIV to 11 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     34EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 10 of #text > DIV > BODY > HTML > #document to 10 of #text > DIV > BODY > HTML > #document toDOMRange:range from 11 of #text > DIV > BODY > HTML > #document to 11 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    3435EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3536EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     
    3738EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3839EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    39 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV to 4 of #text > DIV toDOMRange:range from 5 of #text > DIV to 5 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     40EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 4 of #text > DIV > BODY > HTML > #document to 4 of #text > DIV > BODY > HTML > #document toDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    4041EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    4142EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
    42 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV to 5 of #text > DIV toDOMRange:range from 6 of #text > DIV to 6 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     43EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 5 of #text > DIV > BODY > HTML > #document to 5 of #text > DIV > BODY > HTML > #document toDOMRange:range from 6 of #text > DIV > BODY > HTML > #document to 6 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    4344EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    4445EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
     
    4748If this test succeeds, you can see a string "succeeded" below.
    4849
    49 
     50อยากไปญี่ปุ่น
    5051Succeeded.
  • trunk/LayoutTests/editing/inserting/insert-thai-characters-001.html

    r41477 r46926  
    1212function editingTest() {
    1313    if (window.layoutTestController)
    14         window.layoutTestController.dumpAsText();
    15     var textarea = document.getElementById("test");
    16     textarea.focus();
     14        layoutTestController.dumpAsText();
     15    var testarea = document.getElementById("test");
     16    testarea.focus();
    1717    typeCharacterCommand(String.fromCharCode(0x0E2D));
    1818    typeCharacterCommand(String.fromCharCode(0x0E22));
     
    3232    typeCharacterCommand(String.fromCharCode(0x0E1B));
    3333    var expected_result = "\u0E2D\u0E22\u0E32\u0E01\u0E44\u0E1B\u0E0D\u0E35\u0E48\u0E1B\u0E38\u0E48\u0E19";
    34     if (textarea.value == expected_result)
     34    if (testarea.textContent == expected_result)
    3535        log("Succeeded.");
    3636     else
    37         log("Failed. Actual: \"" + textarea.value + "\", Expected: \"" + expected_result + "\".");
     37        log("Failed. Actual: \"" + testarea.textContent.value + "\", Expected: \"" + expected_result + "\".");
    3838}
    3939</script>
     
    4242<p>This test tests whether we can insert a Thai character after a Thai "prepend" character.</p>
    4343<p>If this test succeeds, you can see a string "succeeded" below.</p>
    44 <textarea id="test" rows="1" cols="40"></textarea>
     44<div contenteditable id="test"></div>
    4545<ul id="console"></ul>
    4646<script language="javascript" type="text/javascript">
  • trunk/LayoutTests/editing/selection/5213963.html

    r21642 r46926  
    1313}
    1414
     15if (window.layoutTestController)
     16    layoutTestController.dumpAsText();
    1517var input = document.getElementById("input");
    1618input.focus();
    1719input.setSelectionRange(0, input.value.length);
    18 if (window.layoutTestController) {
    19     if (window.getSelection().type == "None")
    20         log("Failure: There was no selection inside the input field when the test began.")
     20if (!input.selectionEnd)
     21    log("Failure: There was no selection inside the input field when the test began.");
     22if (!window.eventSender)
     23    log("Test not run because there is no event sender.");
     24else {
    2125    var button = document.getElementById("button");
    2226    var x = button.offsetParent.offsetLeft + button.offsetLeft + button.offsetWidth / 2;
     
    2529    eventSender.mouseDown();
    2630    eventSender.mouseUp();
    27     if (window.getSelection().type != "None")
    28         log("Failure: There was still a selection after clicking a button.")
     31    if (!input.selectionEnd)
     32        log("Failure: There was still a selection after clicking a button.");
     33    log("Success");
    2934}
    3035</script>
  • trunk/LayoutTests/editing/selection/find-in-text-control-expected.txt

    r44901 r46926  
    44Target m matched at:
    55    outer text node 1, at offset 9
    6     text control, at offset 2
     6    textarea, at offset 2
    77    outer text node 2, at offset 3
    88    outer text node 2, at offset 15
    9     text control, at offset 2
     9    input: text, at offset 2
    1010    outer text node 3, at offset 3
    1111    outer text node 3, at offset 15
    12     text control, at offset 2
     12    input: search, at offset 2
    1313    outer text node 4, at offset 3
    1414    outer text node 4, at offset 15
    1515    outer text node 5, at offset 3
    1616Target s matched at:
    17     text control, at offset 0
    18     text control, at offset 10
    19     text control, at offset 0
    20     text control, at offset 10
    21     text control, at offset 0
    22     text control, at offset 10
     17    textarea, at offset 0
     18    textarea, at offset 10
     19    input: text, at offset 0
     20    input: text, at offset 10
     21    input: search, at offset 0
     22    input: search, at offset 10
    2323Target si matched at:
    24     text control, at offset 10
    25     text control, at offset 10
    26     text control, at offset 10
     24    textarea, at offset 10
     25    input: text, at offset 10
     26    input: search, at offset 10
    2727Target rem matched at:
    2828    outer text node 1, at offset 7
  • trunk/LayoutTests/editing/selection/find-in-text-control.html

    r44901 r46926  
    44<div id="div">
    55    Lorem ip<textarea id="textarea">sum dolor si</textarea>t amet
    6     Lorem ip<input type="text" value="sum dolor si">t amet
    7     Lorem ip<input type="search" value="sum dolor si">t amet
    8     Lorem ip<input type="password" value="sum dolor si">t amet
     6    Lorem ip<input id="input: text" type="text" value="sum dolor si">t amet
     7    Lorem ip<input id="input: search" type="search" value="sum dolor si">t amet
     8    Lorem ip<input id="input: password" type="password" value="sum dolor si">t amet
    99</div>
    1010<script>
     
    1313
    1414    var result = "";
    15 
    16     function elementIndex(node)
    17     {
    18         var index = 1;
    19         while (node = node.previousSibling) {
    20             if (node.nodeType == Node.ELEMENT_NODE)
    21                 ++index;
    22         }
    23         return index;
    24     }
    2515
    2616    function textNodeIndex(node)
     
    3424    }
    3525
     26    function clearSelection()
     27    {
     28        getSelection().selectAllChildren(document.body);
     29        getSelection().empty();
     30    }
     31
     32    function selectionLocationAsString()
     33    {
     34        if (document.activeElement.selectionStart != document.activeElement.selectionEnd)
     35            return document.activeElement.id + ", at offset " + document.activeElement.selectionStart;
     36        if (getSelection().rangeCount == 0)
     37            return "";
     38        var range = getSelection().getRangeAt(0);
     39        return "outer text node " + textNodeIndex(range.startContainer) + ", at offset " + range.startOffset;
     40    }
     41
    3642    function findAll(target)
    3743    {
     44        var sel = getSelection();
    3845        var ranges = [];
    3946
    40         var sel = getSelection();
    41         sel.empty();
     47        clearSelection();
    4248        document.execCommand("FindString", false, target);
    43         if (!sel.rangeCount) {
     49
     50        var firstMatch = selectionLocationAsString();
     51        if (firstMatch == "") {
    4452            result += "Target " + target + " not matched\n";
    4553            return;
    4654        }
    47         var range = sel.getRangeAt(0);
    48         while (!ranges[0] || range.startContainer != ranges[0].startContainer || range.startOffset != ranges[0].startOffset) {
    49             ranges.push(range);
     55
     56        result += "Target " + target + " matched at:\n    " + firstMatch + "\n";
     57
     58        document.execCommand("FindString", false, target);
     59        var match = selectionLocationAsString();
     60        while (match !== firstMatch) {
     61            result += "    " + match + "\n";
    5062            document.execCommand("FindString", false, target);
    51             range = sel.getRangeAt(0);
     63            match = selectionLocationAsString();
    5264        }
    53         sel.empty();
    5465
    55         var div = document.getElementById("div");
    56         result += "Target " + target + " matched at:\n";
    57         while (range = ranges.shift()) {
    58             result += "    ";
    59             result += range.startContainer.parentNode != div ? "text control" : "outer text node " + textNodeIndex(range.startContainer);
    60             result += ", at offset " + range.startOffset + "\n";
    61         }
     66        clearSelection();
    6267    }
    6368
  • trunk/LayoutTests/editing/selection/move-begin-end-expected.txt

    r30635 r46926  
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 8 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    14EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 0 of #text > DIV toDOMRange:range from 0 of #text > DIV to 0 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 0 of #text > DIV toDOMRange:range from 9 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    46EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV to 9 of #text > DIV toDOMRange:range from 0 of #text > DIV to 0 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     7EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    68EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    7 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 0 of #text > DIV toDOMRange:range from 0 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     9EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    810EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV to 9 of #text > DIV toDOMRange:range from 9 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     11EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1012EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    11 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV to 9 of #text > DIV toDOMRange:range from 0 of #text > DIV to 9 of #text > DIV affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     13EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    1214EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    13 
     15EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     16EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     17Some text
    1418This tests that moving the caret and selecting using Command+Left/Right arrows work correctly. If this text is successful, the text "SUCCESS" will be shown below.
    1519SUCCESS
  • trunk/LayoutTests/editing/selection/move-begin-end.html

    r29184 r46926  
    7373    </head>
    7474    <body onload="runTest();">
    75         <textarea id="area">Some text</textarea>
     75        <div contenteditable id="area">Some text</textarea>
    7676        <div>This tests that moving the caret and selecting using Command+Left/Right arrows work correctly. If this text is successful, the text "SUCCESS" will be shown below.</div>
    7777        <div id="result">FAILURE</div>
  • trunk/LayoutTests/editing/text-iterator/thai-cursor-movement-expected.txt

    r46069 r46926  
    1 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     1EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 5 of DIV > BODY > HTML > #document
     2EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    23EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    34EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     
    1516Should say PASS:
    1617
    17 
     18อยากไปความ
    1819PASS
  • trunk/LayoutTests/editing/text-iterator/thai-cursor-movement.html

    r46069 r46926  
    1515{
    1616    if (window.layoutTestController)
    17         window.layoutTestController.dumpAsText();
    18     var textarea = document.getElementById("test");
    19     textarea.focus();
     17        layoutTestController.dumpAsText();
     18    var editableArea = document.getElementById("test");
     19    editableArea.focus();
    2020
    2121    var i = 1;
    22     for (; i <= textarea.textContent.length; ++i) {
     22    for (; i <= editableArea.firstChild.data.length; ++i) {
    2323        moveSelectionForwardByCharacterCommand();
    24         if (window.getSelection().baseOffset != i) {
     24        if (getSelection().baseOffset != i) {
    2525            log("FAIL: " + i);
    2626            return;
     
    3535<p>Test that moving insertion point over Thai text (without ligatures) always moves one character at a time.</p>
    3636<p>Should say PASS:</p>
    37 <textarea id="test" rows="1" cols="40">อยากไปความ</textarea>
     37<div contenteditable id="test">อยากไปความ</textarea>
    3838<ul id="console"></ul>
    3939<script language="javascript" type="text/javascript">
  • trunk/LayoutTests/fast/forms/textarea-arrow-navigation-expected.txt

    r46850 r46926  
    1 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    7 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    91This tests that the cursor doesn't get 'stuck' when advancing through a text area with the down arrow key. See bug #19465 for more information
    102
  • trunk/LayoutTests/fast/forms/textarea-arrow-navigation.html

    r46850 r46926  
    11<html>
    22<head>
    3 <link rel=stylesheet href="../editingStyle.css" type="text/css">
    4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
    53<script>
    64
    7 function log(str) {
     5function log(str)
     6{
    87    var li = document.createElement("li");
    98    li.appendChild(document.createTextNode(str));
     
    1211}
    1312
    14 function editingTest() {
     13function runTest()
     14{
    1515    if (window.layoutTestController)
    16         window.layoutTestController.dumpAsText();
     16        layoutTestController.dumpAsText();
     17
     18    if (!window.eventSender)
     19        return;
    1720
    1821    var textarea = document.getElementById("test");
     
    2326    textarea.setSelectionRange(5, 5);
    2427    for (var i = 0; i < 10; i++) {
    25         // press the 'down arrow' a bunch of times to try to get to the end of
    26         // the text area
    27         moveSelectionForwardByLineCommand();
     28        // press the 'down arrow' a bunch of times to try to get to the end of the text area
     29        eventSender.keyDown("downArrow");
    2830    }
    2931    if (textarea.selectionStart != textarea.value.length)
    30         log ("Fail.  Expected: selectionStart == " + textarea.value.length + ", Found: " + textarea.selectionStart);
     32        log("Fail.  Expected: selectionStart == " + textarea.value.length + ", Found: " + textarea.selectionStart);
    3133    else
    3234        log("Success");
     
    3638
    3739</head>
    38     <body>
     40    <body onload="runTest()">
    3941        <p>
    4042        This tests that the cursor doesn't get 'stuck' when advancing through a
     
    5254
    5355<ul id="console"></ul>
    54 <script>
    55 runEditingTest();
    56 </script>
    5756
    5857    </body>
Note: See TracChangeset for help on using the changeset viewer.