/* 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/. */
ok(Array.isArray(frames), "frames is of expected type Array");
equal(frames.length, 3, "Got expected amount of frames");
checkFrame(frames.at(0), targetFrames.at(0));
checkFrame(frames.at(1), targetFrames.at(1));
checkFrame(frames.at(2), targetFrames.at(2));
});
add_task(async function test_isChromeFrame() { for (const filename of ["chrome://foo/bar", "resource://foo/bar"]) {
ok(isChromeFrame({ filename }), "Frame is of expected chrome scope");
}
for (const filename of ["http://foo.bar", "about:blank"]) {
ok(!isChromeFrame({ filename }), "Frame is of expected content scope");
}
});
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.