Changeset 139617 in webkit


Ignore:
Timestamp:
Jan 14, 2013 9:25:04 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: add text editor formatter test
https://bugs.webkit.org/show_bug.cgi?id=106705

Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-01-14
Reviewed by Pavel Feldman.

Adds a test checking text editor formatting.
The test creates a new text editor and fills it in with some
code by the means of simulated key and textInput events.

  • inspector/editor/text-editor-formatter-expected.txt: Added.
  • inspector/editor/text-editor-formatter.html: Added.
Location:
trunk/LayoutTests
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r139616 r139617  
     12013-01-14  Andrey Lushnikov  <lushnikov@chromium.org>
     2
     3        Web Inspector: add text editor formatter test
     4        https://bugs.webkit.org/show_bug.cgi?id=106705
     5
     6        Reviewed by Pavel Feldman.
     7
     8        Adds a test checking text editor formatting.
     9        The test creates a new text editor and fills it in with some
     10        code by the means of simulated key and textInput events.
     11
     12        * inspector/editor/text-editor-formatter-expected.txt: Added.
     13        * inspector/editor/text-editor-formatter.html: Added.
     14
    1152013-01-14  Vsevolod Vlasov  <vsevik@chromium.org>
    216
  • trunk/LayoutTests/inspector/editor/editor-test.js

    r139605 r139617  
    1818        lines.push(i);
    1919    textModel.setText(lines.join("\n"));
     20}
     21
     22InspectorTest.insertTextLine = function(line)
     23{
     24    function enter()
     25    {
     26        eventSender.keyDown("\n");
     27    }
     28
     29    function innerInsertTextLine()
     30    {
     31        textInputController.insertText(line);
     32    }
     33    setTimeout(innerInsertTextLine);
     34    setTimeout(enter);
    2035}
    2136
  • trunk/LayoutTests/platform/mac/TestExpectations

    r139463 r139617  
    233233# https://bugs.webkit.org/show_bug.cgi?id=42821
    234234animations/play-state.html
     235
     236# window.eventSender doesn't exist in devtools front-end on mac.
     237# https://bugs.webkit.org/show_bug.cgi?id=106793
     238inspector/editor/text-editor-formatter.html [ Skip ]
    235239
    236240# https://bugs.webkit.org/show_bug.cgi?id=71120
Note: See TracChangeset for help on using the changeset viewer.