-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=113390 Patch by Andrey Lushnikov <lushnikov@chromium.org> on 2013-03-27 Reviewed by Pavel Feldman. Source/WebCore: Test: inspector/editor/text-editor-token-at-position.html - Add TextEditor.tokenAtTextPosition method - Implement tokenAtTextPosition method in DefaultTextEditor * inspector/front-end/DefaultTextEditor.js: (WebInspector.DefaultTextEditor.prototype.tokenAtTextPosition): (WebInspector.TextEditorMainPanel.prototype.compare): (WebInspector.TextEditorMainPanel.prototype.tokenAtTextPosition): (WebInspector.TextEditorMainPanel.prototype._tokenAtUnhighlightedLine): (WebInspector.TextEditorMainPanel.prototype.set mimeType): (WebInspector.TextEditorMainPanel.prototype.get mimeType): * inspector/front-end/TextEditor.js: (WebInspector.TextEditor.prototype.tokenAtTextPosition): * inspector/front-end/TextEditorHighlighter.js: (WebInspector.TextEditorHighlighter): (WebInspector.TextEditorHighlighter.prototype.get mimeType): (WebInspector.TextEditorHighlighter.prototype.set mimeType): LayoutTests: Add a test to verify TextEditor.tokenAtTextPosition method. * inspector/editor/text-editor-token-at-position-expected.txt: Added. * inspector/editor/text-editor-token-at-position.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fa0f4dde