1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 <input type=
"email" id=
"test" placeholder=
"FAIL: placeholder should disappear">
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.");
24 if (window
.internals
) {
25 internals
.setEditingValue(input
, " foo ");
27 debug('This test requires window.internals object.');
29 shouldBe('input.value', '"foo"');
30 shouldBe('document.querySelector(":invalid")', 'input');