<!DOCTYPEHTML>
<html>
<head>
<meta charset="utf-8">
<title>Bug 2037794 - Caret should be enabled if input is focused during a drag+drop operation</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
</head>
<body>
add_task(async() => {
getSelection().selectAllChildren(source);
target.addEventListener('drop', () => {
target.focus();
}, {once: true});
await synthesizePlainDragAndDrop({
srcElement: source,
destElement: target
});
is(document.activeElement, target, '<input> should have been focused by drop event listener.');
is(target.value, 'source text', '<input> should contain dropped text.');
ok(isCaretVisible(), 'Caret should be visible, now that <input> is focused.');
});
</script>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.