blob: 86e761b77bf37daa99b90283125f02fcd6bc8cf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/* 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 endless scrolling when a lot of items are present in the storage
// inspector table for Cache storage.
"use strict";
const ITEMS_PER_PAGE = 50;
add_task(async function () {
await openTabAndSetupStorage(
URL_ROOT_COM_SSL + "storage-cache-overflow.html"
);
gUI.tree.expandAll();
await selectTreeItem(["Cache", "https://example.com", "lorem"]);
await waitFor(
() => getCellLength() == ITEMS_PER_PAGE,
"Wait until the first 50 messages have been rendered"
);
await scroll();
await waitFor(
() => getCellLength() == ITEMS_PER_PAGE * 2,
"Wait until 100 messages have been rendered"
);
info("Close Toolbox");
await gDevTools.closeToolboxForTab(gBrowser.selectedTab);
});
|