browser_storage_indexeddb_overflow.js (907B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // Test endless scrolling when a lot of items are present in the storage 6 // inspector table for IndexedDB. 7 "use strict"; 8 9 const ITEMS_PER_PAGE = 50; 10 11 add_task(async function () { 12 await openTabAndSetupStorage( 13 MAIN_DOMAIN_SECURED + "storage-overflow-indexeddb.html" 14 ); 15 16 info("Run the tests with short DevTools"); 17 await runTests(); 18 19 info("Close Toolbox"); 20 await gDevTools.closeToolboxForTab(gBrowser.selectedTab); 21 }); 22 23 async function runTests() { 24 gUI.tree.expandAll(); 25 26 await selectTreeItem([ 27 "indexedDB", 28 "https://test1.example.org", 29 "database (default)", 30 "store", 31 ]); 32 checkCellLength(ITEMS_PER_PAGE); 33 34 await scroll(); 35 checkCellLength(ITEMS_PER_PAGE * 2); 36 }