blob: c1133f6463766f9dbec4be80b8bd1368e900c990 [file] [log] [blame]
Tests that the placeholder can be hidden and shown for empty fields via setCanShowPlaceholder().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Disallow showing of placeholder:
PASS internals.visiblePlaceholder(document.querySelector("input")) is ""
PASS internals.visiblePlaceholder(document.querySelector("textarea")) is ""
Allow showing of placeholder:
PASS internals.visiblePlaceholder(document.querySelector("input")) is "first"
PASS internals.visiblePlaceholder(document.querySelector("textarea")) is "second"
PASS successfullyParsed is true
TEST COMPLETE