browser_urlbar_search.js (772B)
1 "use strict"; 2 3 // This tests searching in the urlbar (a.k.a. the quantumbar). 4 5 /** 6 * WHOA THERE: We should never be adding new things to 7 * EXPECTED_REFLOWS_FIRST_OPEN or EXPECTED_REFLOWS_SECOND_OPEN. 8 * Instead of adding reflows to these lists, you should be modifying your code 9 * to avoid the reflow. 10 * 11 * See https://firefox-source-docs.mozilla.org/performance/bestpractices.html 12 * for tips on how to do that. 13 */ 14 15 /* These reflows happen only the first time the panel opens. */ 16 const EXPECTED_REFLOWS_FIRST_OPEN = []; 17 18 /* These reflows happen every time the panel opens. */ 19 const EXPECTED_REFLOWS_SECOND_OPEN = []; 20 21 add_task(async function quantumbar() { 22 await runUrlbarTest( 23 false, 24 EXPECTED_REFLOWS_FIRST_OPEN, 25 EXPECTED_REFLOWS_SECOND_OPEN 26 ); 27 });