summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/text/placeholder-set-attribute.html
blob: 02ba55cf28db7ada5237dfcaad8112995ad0c381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script>

function finishTest()
{
    document.getElementById('input').setAttribute('placeholder','Placeholder');
    if (window.testRunner)
        testRunner.notifyDone();
}

function test()
{
    if (window.testRunner)
        testRunner.waitUntilDone();
    setTimeout(finishTest, 0);
}

</script>
<body onload="test()">
<p>If you can see the word "Placeholder" in the text field, then all is well.</p>
<p><input type="text" id="input"></p>
</body>