Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: toolkit/components/places/tests/bookmarks/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
// Test `insertTree()` with more bookmarks than the Sqlite variables limit.
add_task(async function () {
const NUM_BOOKMARKS = 1000;
await PlacesUtils.withConnectionWrapper("test", async db => {
db.variableLimit = NUM_BOOKMARKS - 100;
Assert.greater(
NUM_BOOKMARKS,
db.variableLimit,
"Insert more bookmarks than the Sqlite variables limit."
);
});
let children = [];
for (let i = 0; i < NUM_BOOKMARKS; ++i) {
}
await PlacesUtils.bookmarks.insertTree({
guid: PlacesUtils.bookmarks.toolbarGuid,
children,
});
});