blob: 934ff0b4bca07378af312bdadfcb57f7be268e45 [file] [log] [blame]
This tests that the input events are dispatched when contentEditable nodes are edited
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS event.target.id is 'target0'
PASS event.target.innerHTML is 'Text'
PASS event.target.id is 'target2'
PASS event.target.innerHTML is 'This text should not be changed.'
PASS event.target.id is 'target3'
PASS event.target.innerHTML is '<br>'
PASS event.target.id is 'target4'
PASS event.target.innerHTML is '<a href="http://www.example.com/">This text should be a link.</a>'
PASS event.target.id is 'target6parent'
PASS event.target.innerHTML is '<span id="target6start"><a href="http://www.example.com/">Start,</a></span><span id="target6middle"><a href="http://www.example.com/">Middle,</a></span><span id="target6end"><a href="http://www.example.com/">End.</a></span>'
PASS event.target.id is 'target7'
PASS event.target.innerHTML is 'X'
PASS event.target.id is 'target8'
PASS event.target.innerHTML is '<br>'
PASS event.target.id is 'target9parent'
PASS event.target.innerHTML is '<div id="target9child" contenteditable="">Replacing</div>'
PASS event.target.id is 't10gch'
PASS event.target.innerHTML is 'Replacing'
PASS expectedInputEventCount is actualInputEventCount
PASS successfullyParsed is true
TEST COMPLETE