haikuwebkit/LayoutTests/editing/inserting/5607069-3-expected.txt

19 lines
561 B
Plaintext
Raw Permalink Normal View History

2010-11-08 Ryosuke Niwa <rniwa@webkit.org> Reviewed by Kent Tamura. dump-as-markup conversion: editing/inserting/5607069-2.html and 5607069-3.html https://bugs.webkit.org/show_bug.cgi?id=49223 Converted editing/inserting/5607069-2.html and editing/inserting/5607069-3.html to dump-as-markup tests. Re-enabled them on Qt, Gtk, and Chromium platforms. * editing/inserting/5607069-2-expected.txt: Added. * editing/inserting/5607069-2.html: * editing/inserting/5607069-3-expected.txt: Added. * editing/inserting/5607069-3.html: * platform/chromium-linux/editing/inserting/5607069-2-expected.checksum: Removed. * platform/chromium-linux/editing/inserting/5607069-2-expected.png: Removed. * platform/chromium-linux/editing/inserting/5607069-2-expected.txt: Removed. * platform/chromium-linux/editing/inserting/5607069-3-expected.checksum: Removed. * platform/chromium-linux/editing/inserting/5607069-3-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.checksum: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.txt: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.checksum: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.txt: Removed. * platform/chromium/test_expectations.txt: * platform/gtk/Skipped: * platform/mac-leopard/editing/inserting/5607069-2-expected.checksum: Removed. * platform/mac-leopard/editing/inserting/5607069-2-expected.png: Removed. * platform/mac-leopard/editing/inserting/5607069-3-expected.checksum: Removed. * platform/mac-leopard/editing/inserting/5607069-3-expected.png: Removed. * platform/mac/editing/inserting/5607069-2-expected.checksum: Removed. * platform/mac/editing/inserting/5607069-2-expected.png: Removed. * platform/mac/editing/inserting/5607069-2-expected.txt: Removed. * platform/mac/editing/inserting/5607069-3-expected.checksum: Removed. * platform/mac/editing/inserting/5607069-3-expected.png: Removed. * platform/mac/editing/inserting/5607069-3-expected.txt: Removed. * platform/qt/Skipped: Canonical link: https://commits.webkit.org/62082@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-11-09 02:45:46 +00:00
This tests for a bug in InsertParagraph where it would split and clone a <form> element in the same way it would a <p> or a <div>. There should be exactly one form element and one br element between two input elements.
| <form>
| style="border: 1px solid blue;"
| <input>
| type="text"
| this.value=""
| <shadow:root>
| <div>
Inner text element should not use -webkit-user-modify https://bugs.webkit.org/show_bug.cgi?id=129035 Reviewed by Andreas Kling. Source/WebCore: To eliminate the internal use of -webkit-user-modify, use contenteditable attribute in the inner text elements instead of manually inspecting disabled-ness and readonly-ness in RenderTextControl. Unfortunately, we still have to manually set UserModify value in RenderTextControl::adjustInnerTextStyle since RenderTextControl::styleDidChange creates RenderStyle for its inner text from scratch via createInnerTextStyle. * html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::disabledStateChanged): Don't use childrenOfType iterator which asserts that DOM isn't mutated during the traversal since we now set contenteditable attribute inside disabledStateChanged via updateFromControlElementsAncestorDisabledStateUnder. * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::parseAttribute): Extracted readOnlyAttributeChanged out of this function so that HTMLTextFormControl could override it to call updateInnerTextElementEditability. (WebCore::HTMLFormControlElement::readOnlyAttributeChanged): Ditto. * html/HTMLFormControlElement.h: * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::didAddUserAgentShadowRoot): Call updateInnerTextElementEditability after creating shadow DOM for the current input type. (WebCore::HTMLInputElement::updateType): Ditto. (WebCore::HTMLInputElement::parseAttribute): Ditto. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::didAddUserAgentShadowRoot): Call updateInnerTextElementEditability. * html/HTMLTextFormControlElement.cpp: (WebCore::HTMLTextFormControlElement::disabledStateChanged): Added to update contenteditable attribute since the editability of the inner text element depends on disabled-ness of the element. (WebCore::HTMLTextFormControlElement::readOnlyAttributeChanged): Ditto for the readonly-ness of the element. (WebCore::HTMLTextFormControlElement::updateInnerTextElementEditability): Added. * html/HTMLTextFormControlElement.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::adjustInnerTextStyle): Use the inner text element's presentationAttributeStyle() to compute the appropriate EUserModify value instead of hard-coding it here. * rendering/RenderTextControl.h: LayoutTests: Rebaselined tests as the user agent shadow DOM of input and textarea elements now have contenteditable attribute. * editing/input/paste-text-ending-with-interchange-newline-expected.txt: * editing/inserting/5607069-2-expected.txt: * editing/inserting/5607069-3-expected.txt: * editing/pasteboard/copy-image-with-alt-text-expected.txt: * editing/pasteboard/copy-null-characters-expected.txt: * editing/pasteboard/nested-blocks-with-text-area-expected.txt: * editing/pasteboard/nested-blocks-with-text-field-expected.txt: * editing/selection/dump-as-markup-expected.txt: * editing/selection/dump-as-markup-form-text-expected.txt: * fast/forms/suggested-value-after-setvalue-expected.txt: * fast/forms/suggested-value-expected.txt: * fast/parser/object-with-textarea-fallback-expected.txt: Canonical link: https://commits.webkit.org/147234@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-22 04:09:28 +00:00
| contenteditable="plaintext-only"
2010-11-08 Ryosuke Niwa <rniwa@webkit.org> Reviewed by Kent Tamura. dump-as-markup conversion: editing/inserting/5607069-2.html and 5607069-3.html https://bugs.webkit.org/show_bug.cgi?id=49223 Converted editing/inserting/5607069-2.html and editing/inserting/5607069-3.html to dump-as-markup tests. Re-enabled them on Qt, Gtk, and Chromium platforms. * editing/inserting/5607069-2-expected.txt: Added. * editing/inserting/5607069-2.html: * editing/inserting/5607069-3-expected.txt: Added. * editing/inserting/5607069-3.html: * platform/chromium-linux/editing/inserting/5607069-2-expected.checksum: Removed. * platform/chromium-linux/editing/inserting/5607069-2-expected.png: Removed. * platform/chromium-linux/editing/inserting/5607069-2-expected.txt: Removed. * platform/chromium-linux/editing/inserting/5607069-3-expected.checksum: Removed. * platform/chromium-linux/editing/inserting/5607069-3-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.checksum: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-2-expected.txt: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.checksum: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.png: Removed. * platform/chromium-win/editing/inserting/5607069-3-expected.txt: Removed. * platform/chromium/test_expectations.txt: * platform/gtk/Skipped: * platform/mac-leopard/editing/inserting/5607069-2-expected.checksum: Removed. * platform/mac-leopard/editing/inserting/5607069-2-expected.png: Removed. * platform/mac-leopard/editing/inserting/5607069-3-expected.checksum: Removed. * platform/mac-leopard/editing/inserting/5607069-3-expected.png: Removed. * platform/mac/editing/inserting/5607069-2-expected.checksum: Removed. * platform/mac/editing/inserting/5607069-2-expected.png: Removed. * platform/mac/editing/inserting/5607069-2-expected.txt: Removed. * platform/mac/editing/inserting/5607069-3-expected.checksum: Removed. * platform/mac/editing/inserting/5607069-3-expected.png: Removed. * platform/mac/editing/inserting/5607069-3-expected.txt: Removed. * platform/qt/Skipped: Canonical link: https://commits.webkit.org/62082@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@71595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-11-09 02:45:46 +00:00
| "x"
| <br>
| "<#selection-caret>x"
| <input>
| type="text"
| this.value=""
| <shadow:root>
| <div>
Inner text element should not use -webkit-user-modify https://bugs.webkit.org/show_bug.cgi?id=129035 Reviewed by Andreas Kling. Source/WebCore: To eliminate the internal use of -webkit-user-modify, use contenteditable attribute in the inner text elements instead of manually inspecting disabled-ness and readonly-ness in RenderTextControl. Unfortunately, we still have to manually set UserModify value in RenderTextControl::adjustInnerTextStyle since RenderTextControl::styleDidChange creates RenderStyle for its inner text from scratch via createInnerTextStyle. * html/HTMLFieldSetElement.cpp: (WebCore::HTMLFieldSetElement::disabledStateChanged): Don't use childrenOfType iterator which asserts that DOM isn't mutated during the traversal since we now set contenteditable attribute inside disabledStateChanged via updateFromControlElementsAncestorDisabledStateUnder. * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::parseAttribute): Extracted readOnlyAttributeChanged out of this function so that HTMLTextFormControl could override it to call updateInnerTextElementEditability. (WebCore::HTMLFormControlElement::readOnlyAttributeChanged): Ditto. * html/HTMLFormControlElement.h: * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::didAddUserAgentShadowRoot): Call updateInnerTextElementEditability after creating shadow DOM for the current input type. (WebCore::HTMLInputElement::updateType): Ditto. (WebCore::HTMLInputElement::parseAttribute): Ditto. * html/HTMLTextAreaElement.cpp: (WebCore::HTMLTextAreaElement::didAddUserAgentShadowRoot): Call updateInnerTextElementEditability. * html/HTMLTextFormControlElement.cpp: (WebCore::HTMLTextFormControlElement::disabledStateChanged): Added to update contenteditable attribute since the editability of the inner text element depends on disabled-ness of the element. (WebCore::HTMLTextFormControlElement::readOnlyAttributeChanged): Ditto for the readonly-ness of the element. (WebCore::HTMLTextFormControlElement::updateInnerTextElementEditability): Added. * html/HTMLTextFormControlElement.h: * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::adjustInnerTextStyle): Use the inner text element's presentationAttributeStyle() to compute the appropriate EUserModify value instead of hard-coding it here. * rendering/RenderTextControl.h: LayoutTests: Rebaselined tests as the user agent shadow DOM of input and textarea elements now have contenteditable attribute. * editing/input/paste-text-ending-with-interchange-newline-expected.txt: * editing/inserting/5607069-2-expected.txt: * editing/inserting/5607069-3-expected.txt: * editing/pasteboard/copy-image-with-alt-text-expected.txt: * editing/pasteboard/copy-null-characters-expected.txt: * editing/pasteboard/nested-blocks-with-text-area-expected.txt: * editing/pasteboard/nested-blocks-with-text-field-expected.txt: * editing/selection/dump-as-markup-expected.txt: * editing/selection/dump-as-markup-form-text-expected.txt: * fast/forms/suggested-value-after-setvalue-expected.txt: * fast/forms/suggested-value-expected.txt: * fast/parser/object-with-textarea-fallback-expected.txt: Canonical link: https://commits.webkit.org/147234@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@164526 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-02-22 04:09:28 +00:00
| contenteditable="plaintext-only"