blob: b4753793060a8c07c5c5160a9a84fc40c8c6166e [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