function testJsonSectionInResponseTab(greeting) { const tabpanel = document.querySelector("#response-panel");
is(
tabpanel.querySelectorAll(".treeRow").length,
1, "There should be 1 json properties displayed in this tabpanel."
);
is(
labels[0].textContent, "greeting", "The first json property name was incorrect."
);
is(
values[0].textContent,
greeting, "The first json property value was incorrect."
);
}
function testResponseTab(func) { const tabpanel = document.querySelector("#response-panel");
is(
tabpanel.querySelector(".response-error-header") === null, true, "The response error header doesn't have the intended visibility."
);
is(
tabpanel.querySelector(".data-label").textContent,
L10N.getFormatStr("jsonpScopeName", func), "The response json view has the intened visibility and correct title."
);
is(
tabpanel.querySelector(".CodeMirror-code") === null, false, "The response editor has the intended visibility."
);
is(
tabpanel.querySelector(".responseImageBox") === null, true, "The response image box doesn't have the intended visibility."
);
is(
tabpanel.querySelectorAll(".empty-notice").length,
0, "The empty notice should not be displayed in this tabpanel."
);
}
});
¤ Dauer der Verarbeitung: 0.26 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 ist noch experimentell.