Changeset 64524 in webkit
- Timestamp:
- Aug 2, 2010 7:20:09 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r64523 r64524 1 2010-08-02 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT implement execCommand() 6 https://bugs.webkit.org/show_bug.cgi?id=35351 7 8 Enable tests which are now passing and re-organize some others that 9 will pass once we have editing callbacks enabled. 10 11 * platform/gtk/Skipped: 12 * platform/gtk/editing/deleting/5300379-expected.txt: Added. 13 * platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt: 14 * platform/gtk/editing/deleting/smart-delete-003-expected.txt: Added. 15 * platform/gtk/editing/deleting/smart-delete-004-expected.txt: Added. 16 * platform/gtk/editing/selection/selection-actions-expected.txt: Added. 17 1 18 2010-08-02 Andrew Wilson <atwilson@chromium.org> 2 19 -
trunk/LayoutTests/platform/gtk/Skipped
r64506 r64524 623 623 editing/deleting/pruning-after-merge-1.html 624 624 editing/deleting/skip-virama-001.html 625 editing/deleting/smart-editing-disabled.html626 625 editing/inserting/5994480-2.html 627 626 editing/inserting/insert-thai-characters-001.html … … 663 662 editing/deleting/5144139-2.html 664 663 editing/deleting/5168598.html 665 editing/deleting/5300379.html666 664 editing/deleting/5408255.html 667 665 editing/deleting/delete-3857753-fix.html … … 740 738 editing/deleting/smart-delete-001.html 741 739 editing/deleting/smart-delete-002.html 742 editing/deleting/smart-delete-003.html743 editing/deleting/smart-delete-004.html744 740 editing/deleting/table-cells.html 745 741 editing/deleting/transpose-empty.html … … 938 934 editing/selection/4932260-2.html 939 935 editing/selection/4932260-3.html 940 editing/selection/4947387.html941 936 editing/selection/4975120.html 942 editing/selection/5195166-1.html943 editing/selection/5195166-2.html944 937 editing/selection/5240265.html 945 938 editing/selection/after-line-wrap.html … … 1005 998 editing/selection/select-missing-image.html 1006 999 editing/selection/selection-3748164-fix.html 1007 editing/selection/selection-actions.html1008 1000 editing/selection/selection-background.html 1009 1001 editing/selection/table-caret-1.html … … 5037 5029 editing/undo/redo-style.html 5038 5030 editing/undo/undo-indent.html 5031 editing/execCommand/indent-with-style.html 5032 editing/execCommand/4641880-1.html 5033 editing/execCommand/4641880-2.html 5034 editing/execCommand/create-list-from-range-selection.html 5035 editing/execCommand/create-list-with-hr.html 5036 editing/execCommand/find-after-replace.html 5037 editing/execCommand/findString-2.html 5038 editing/execCommand/findString.html 5039 editing/execCommand/format-block-from-range-selection.html 5040 editing/execCommand/format-block-with-braces.html 5041 editing/execCommand/format-block-with-trailing-br.html 5042 editing/execCommand/format-block.html 5043 editing/execCommand/hilitecolor.html 5044 editing/execCommand/indent-empty-root.html 5045 editing/execCommand/indent-list-item.html 5046 editing/execCommand/indent-selection.html 5047 editing/execCommand/insert-list-and-stitch.html 5048 editing/execCommand/insertHorizontalRule.html 5049 editing/execCommand/insertImage.html 5050 editing/execCommand/nsresponder-indent.html 5051 editing/execCommand/nsresponder-outdent.html 5052 editing/execCommand/outdent-selection.html 5053 editing/execCommand/paste-1.html 5054 editing/execCommand/paste-2.html 5055 editing/execCommand/print.html 5056 editing/execCommand/remove-formatting-2.html 5057 editing/execCommand/remove-formatting.html 5058 editing/execCommand/remove-list-from-range-selection.html 5059 editing/execCommand/remove-list-item-1.html 5060 editing/execCommand/selectAll.html 5061 editing/execCommand/createLink.html 5062 editing/execCommand/enabling-and-selection-2.html 5063 editing/execCommand/findString-diacriticals.html 5064 editing/execCommand/indent-nested-lists-1.html 5065 editing/execCommand/indent-nested-lists-2.html 5066 editing/execCommand/indent-nested-lists-3.html 5067 editing/execCommand/indent-nested-lists-4.html 5068 editing/execCommand/indent-nested-lists-5.html 5069 editing/execCommand/indent-nested-lists-6.html 5070 editing/execCommand/indent-nested-lists-7.html 5071 editing/execCommand/insertHTML.html 5072 editing/execCommand/outdent-blockquote-test1.html 5073 editing/execCommand/outdent-blockquote-test2.html 5074 editing/execCommand/outdent-blockquote-test3.html 5075 editing/execCommand/outdent-blockquote-test4.html 5076 editing/execCommand/outdent-nested-lists-1.html 5077 editing/execCommand/outdent-nested-lists-2.html 5078 editing/execCommand/outdent-nested-lists-3.html 5079 editing/execCommand/outdent-nested-lists-4.html 5080 editing/execCommand/queryCommandState-01.html 5081 editing/execCommand/remove-list-1.html 5082 editing/execCommand/remove-list-items.html 5083 editing/execCommand/switch-list-type.html 5084 editing/execCommand/unlink.html 5085 editing/selection/4947387.html 5086 editing/selection/5195166-2.html 5039 5087 5040 5088 # Requires expected results that we don't have atm … … 5734 5782 fast/speech 5735 5783 5736 # Tests failing because we lack execCommand support.5737 # https://bugs.webkit.org/show_bug.cgi?id=353515738 editing/execCommand/indent-with-style.html5739 editing/execCommand/4641880-1.html5740 editing/execCommand/4641880-2.html5741 editing/execCommand/create-list-from-range-selection.html5742 editing/execCommand/create-list-with-hr.html5743 editing/execCommand/find-after-replace.html5744 editing/execCommand/findString-2.html5745 editing/execCommand/findString.html5746 editing/execCommand/format-block-from-range-selection.html5747 editing/execCommand/format-block-with-braces.html5748 editing/execCommand/format-block-with-trailing-br.html5749 editing/execCommand/format-block.html5750 editing/execCommand/hilitecolor.html5751 editing/execCommand/indent-empty-root.html5752 editing/execCommand/indent-list-item.html5753 editing/execCommand/indent-selection.html5754 editing/execCommand/insert-list-and-stitch.html5755 editing/execCommand/insertHorizontalRule.html5756 editing/execCommand/insertImage.html5757 editing/execCommand/nsresponder-indent.html5758 editing/execCommand/nsresponder-outdent.html5759 editing/execCommand/outdent-selection.html5760 editing/execCommand/paste-1.html5761 editing/execCommand/paste-2.html5762 editing/execCommand/print.html5763 editing/execCommand/remove-formatting-2.html5764 editing/execCommand/remove-formatting.html5765 editing/execCommand/remove-list-from-range-selection.html5766 editing/execCommand/remove-list-item-1.html5767 editing/execCommand/selectAll.html5768 editing/execCommand/createLink.html5769 editing/execCommand/delete-image-in-anchor.html5770 editing/execCommand/enabling-and-selection-2.html5771 editing/execCommand/findString-diacriticals.html5772 editing/execCommand/indent-nested-lists-1.html5773 editing/execCommand/indent-nested-lists-2.html5774 editing/execCommand/indent-nested-lists-3.html5775 editing/execCommand/indent-nested-lists-4.html5776 editing/execCommand/indent-nested-lists-5.html5777 editing/execCommand/indent-nested-lists-6.html5778 editing/execCommand/indent-nested-lists-7.html5779 editing/execCommand/insertHTML.html5780 editing/execCommand/outdent-blockquote-test1.html5781 editing/execCommand/outdent-blockquote-test2.html5782 editing/execCommand/outdent-blockquote-test3.html5783 editing/execCommand/outdent-blockquote-test4.html5784 editing/execCommand/outdent-nested-lists-1.html5785 editing/execCommand/outdent-nested-lists-2.html5786 editing/execCommand/outdent-nested-lists-3.html5787 editing/execCommand/outdent-nested-lists-4.html5788 editing/execCommand/queryCommandState-01.html5789 editing/execCommand/remove-list-1.html5790 editing/execCommand/remove-list-items.html5791 editing/execCommand/switch-list-type.html5792 editing/execCommand/unlink.html5793 editing/selection/extend-forward-after-set-base-and-extent.html5794 5795 5784 # Missing DRT API. 5796 5785 http/tests/loading/preload-slow-loading.php … … 5871 5860 # https://bugs.webkit.org/show_bug.cgi?id=43034 5872 5861 inspector/debugger-breakpoints-not-activated-on-reload.html 5862 5863 # Fails because multiple clicks in a row in the same place 5864 # register as a triple-click even though the mouse have moved 5865 # outside of the double-click distance. 5866 editing/selection/5195166-1.html -
trunk/LayoutTests/platform/gtk/editing/deleting/delete-to-end-of-paragraph-expected.txt
r63295 r64524 4 4 RenderBlock {HTML} at (0,0) size 800x600 5 5 RenderBody {BODY} at (8,8) size 784x584 6 RenderBlock {DIV} at (0,0) size 600x30 7 RenderText {#text} at (0,0) size 132x30 8 text run at (0,0) width 132: "one two three" 9 RenderBlock {DIV} at (0,30) size 784x20 10 RenderText {#text} at (0,0) size 76x20 11 text run at (0,0) width 76: "four five six" 12 caret: position 0 of child 0 {#text} of child 1 {DIV} of body 6 RenderBlock {DIV} at (0,0) size 600x20 7 RenderInline {SPAN} at (0,0) size 76x20 8 RenderText {#text} at (0,0) size 76x20 9 text run at (0,0) width 76: "four five six" 10 caret: position 0 of child 0 {#text} of child 0 {SPAN} of child 1 {DIV} of body -
trunk/WebKit/gtk/ChangeLog
r64513 r64524 1 2010-08-02 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT implement execCommand() 6 https://bugs.webkit.org/show_bug.cgi?id=35351 7 8 * webkit/webkitprivate.h: Add some private methods for the DRT which enable 9 LayoutTestController.execCommand and LayoutTestController.isCommandEnabled: 10 webkit_web_view_execute_core_command_by_name and webkit_web_view_is_command_enabled. 11 * webkit/webkitwebview.cpp: 12 (webkit_web_view_execute_core_command_by_name): added. 13 (webkit_web_view_is_command_enabled): Added. 14 1 15 2010-07-27 Luiz Agostini <luiz.agostini@openbossa.org> 2 16 -
trunk/WebKit/gtk/webkit/webkitprivate.h
r64496 r64524 274 274 webkit_web_view_set_tooltip_text(WebKitWebView*, const char*); 275 275 276 WEBKIT_API void 277 webkit_web_view_execute_core_command_by_name(WebKitWebView* webView, const gchar* name, const gchar* value); 278 279 WEBKIT_API gboolean 280 webkit_web_view_is_command_enabled(WebKitWebView* webView, const gchar* name); 281 276 282 WebKitDownload* 277 283 webkit_download_new_with_handle(WebKitNetworkRequest* request, WebCore::ResourceHandle* handle, const WebCore::ResourceResponse& response); -
trunk/WebKit/gtk/webkit/webkitwebview.cpp
r64496 r64524 4659 4659 return cacheModel; 4660 4660 } 4661 4662 void webkit_web_view_execute_core_command_by_name(WebKitWebView* webView, const gchar* name, const gchar* value) 4663 { 4664 g_return_if_fail(WEBKIT_IS_WEB_VIEW(webView)); 4665 g_return_if_fail(name); 4666 g_return_if_fail(value); 4667 4668 core(webView)->focusController()->focusedOrMainFrame()->editor()->command(name).execute(value); 4669 } 4670 4671 gboolean webkit_web_view_is_command_enabled(WebKitWebView* webView, const gchar* name) 4672 { 4673 g_return_val_if_fail(WEBKIT_IS_WEB_VIEW(webView), FALSE); 4674 g_return_val_if_fail(name, FALSE); 4675 4676 return core(webView)->focusController()->focusedOrMainFrame()->editor()->command(name).isEnabled(); 4677 } -
trunk/WebKitTools/ChangeLog
r64519 r64524 1 2010-08-02 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] DRT implement execCommand() 6 https://bugs.webkit.org/show_bug.cgi?id=35351 7 8 * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp: 9 (LayoutTestController::execCommand): Implement using webkit_web_view_execute_core_command_by_name. 10 (LayoutTestController::isCommandEnabled): Implement using webkit_web_view_is_command_enabled. 11 (LayoutTestController::setCacheModel): Move below LayoutTestController::isCommandEnabled. 12 1 13 2010-08-02 Sam Weinig <sam@webkit.org> 2 14 -
trunk/WebKitTools/DumpRenderTree/gtk/LayoutTestControllerGtk.cpp
r64356 r64524 61 61 void webkit_web_inspector_execute_script(WebKitWebInspector* inspector, long callId, const gchar* script); 62 62 gchar* webkit_web_frame_marker_text_for_list_item(WebKitWebFrame* frame, JSContextRef context, JSValueRef nodeObject); 63 void webkit_web_view_execute_core_command_by_name(WebKitWebView* webView, const gchar* name, const gchar* value); 64 gboolean webkit_web_view_is_command_enabled(WebKitWebView* webView, const gchar* name); 63 65 } 64 66 … … 505 507 void LayoutTestController::execCommand(JSStringRef name, JSStringRef value) 506 508 { 507 // FIXME: implement 509 WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame); 510 ASSERT(view); 511 512 gchar* cName = JSStringCopyUTF8CString(name); 513 gchar* cValue = JSStringCopyUTF8CString(value); 514 webkit_web_view_execute_core_command_by_name(view, cName, cValue); 515 g_free(cName); 516 g_free(cValue); 517 } 518 519 bool LayoutTestController::isCommandEnabled(JSStringRef name) 520 { 521 WebKitWebView* view = webkit_web_frame_get_web_view(mainFrame); 522 ASSERT(view); 523 524 gchar* cName = JSStringCopyUTF8CString(name); 525 gboolean result = webkit_web_view_is_command_enabled(view, cName); 526 g_free(cName); 527 return result; 508 528 } 509 529 … … 511 531 { 512 532 // FIXME: implement 513 }514 515 bool LayoutTestController::isCommandEnabled(JSStringRef /*name*/)516 {517 // FIXME: implement518 return false;519 533 } 520 534
Note: See TracChangeset
for help on using the changeset viewer.