/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Test to verify that the keys shown in sidebar are correct
// Format of the test cases: { // action: Either "selectTreeItem" to select a tree item or // "assertTableItem" to select a table item, // ids: ID array for tree item to select if `action` is "selectTreeItem", // id: ID of the table item if `action` is "assertTableItem", // keyValuePairs: Array of key value pair objects which will be asserted // to exist in the storage sidebar (optional) // }
"use strict";
const LONG_WORD = "a".repeat(1000);
add_task(async function () {
await openTabAndSetupStorage(
MAIN_DOMAIN_SECURED + "storage-complex-keys.html"
);
case"assertTableItem":
await selectTableItem(item.id); // Check the ID and value in the data section
await findVariableViewProperties([
{ name: item.id, value: item.value },
]); // If there are key value pairs defined, check those in the // parsed value section if (item.keyValuePairs) {
await findVariableViewProperties(item.keyValuePairs, true);
} break;
}
}
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
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.