function synthesizeAccelKeyAndC() {
synthesizeKey("C", { accelKey: true });
}
async function runTest() {
synthesizeAccelKeyAndClickAt("x");
synthesizeAccelKeyAndClickAt("y");
synthesizeAccelKeyAndClickAt("u");
synthesizeAccelKeyAndClickAt("v");
{
// Assert content contains the table.
// TODO: the `<meta>` element is missing; which is a defect in the
// test-code, see https://bugzilla.mozilla.org/show_bug.cgi?id=1632183.
const expectedString = "\
<table>\
<tbody>\
<tr>\
<td id=\"x\">x</td>\
<td id=\"y\">y</td>\
</tr>\
<tr>\
<td id=\"u\">u</td>\
<td id=\"v\">v</td>\
</tr>\
</tbody>\
</table>";
{
// The key point of this check is that the string doesn't contain a
// `<tr>`. It's possible that `` could be removed, but it's
// unknown if other applications rely on it being included.
const expectedString = "\
<html>\
<body onload=\"onLoad()\">\
<div id=\"content\">\
<table><tbody></tbody></table></div></body></html>";
const flavor = "text/_moz_htmlcontext";
await SimpleTest.promiseClipboardChange(expectedString,
synthesizeAccelKeyAndC, flavor);
}
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.