Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / editing-value.html
blob123ae046934a06ff5043de28e36b65c98fb16b29
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
10 <input type="email" id="test" placeholder="FAIL: placeholder should disappear">
12 <script>
13 description('This tests setting the editing value of an input.');
15 var input = document.getElementById('test');
16 input.onchange = function() {
17 testPassed("onchange event was fired.");
19 input.oninput = function() {
20 testPassed("oninput event was fired.");
23 input.focus();
24 if (window.internals) {
25 internals.setEditingValue(input, " foo ");
26 } else {
27 debug('This test requires window.internals object.');
29 shouldBe('input.value', '"foo"');
30 shouldBe('document.querySelector(":invalid")', 'input');
31 input.blur();
33 </script>
35 </body>
36 </html>