Add test function to get placeholder string
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Apr 2012 08:00:08 +0000 (08:00 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Apr 2012 08:00:08 +0000 (08:00 +0000)
commitc3bf071b44018f13b97e5dc98ca17f3404c20ddb
treee0eb704dff82ad5cb9d080f9fcce5cd933f52baf
parent01181fff88d657b65128ac0e2254919a55a337f0
Add test function to get placeholder string
https://bugs.webkit.org/show_bug.cgi?id=84536

Reviewed by Ryosuke Niwa.

.:

* Source/autotools/symbols.filter:
Expose Node::textContent and HTMLTextFormControlElement::placeholderShouldBeVisible.

Source/WebCore:

Add window.internals.visiblePlaceholder(element), which returns a
placeholder string only when it's visible.

* WebCore.exp.in: Expose HTMLTextFormControlElement::placeholderShouldBeVisible().
* testing/Internals.cpp:
(WebCore::Internals::visiblePlaceholder): Added.
(WebCore::Internals::selectColorInColorChooser): Omit HTMLNames::.
* testing/Internals.h:
(Internals): Add visiblePlaceholder().
* testing/Internals.idl: ditto.

Source/WebKit2:

* win/WebKit2.def: Expose HTMLNames::inputTag,
HTMLTextFormControlElement::placeholderShouldBeVisible(), and
Node::textContent.
* win/WebKit2CFLite.def: ditto.

LayoutTests:

Make placeholder-stripped.html a dumpAsText test.

* fast/forms/placeholder-stripped-expected.html: Removed.
* fast/forms/placeholder-stripped-expected.txt: Added.
* fast/forms/placeholder-stripped.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@114877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/forms/placeholder-stripped-expected.html [deleted file]
LayoutTests/fast/forms/placeholder-stripped-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/placeholder-stripped.html
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
Source/WebKit2/ChangeLog
Source/WebKit2/win/WebKit2.def
Source/WebKit2/win/WebKit2CFLite.def
Source/autotools/symbols.filter