tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

perftest_pageload.js (810B)


      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 async function setUp(context) {
      6  context.log.info("setUp example!");
      7 }
      8 
      9 async function test(context, commands) {
     10  let url = context.options.browsertime.url;
     11  await commands.navigate("https://www.mozilla.org/en-US/");
     12  await commands.wait.byTime(100);
     13  await commands.navigate("about:blank");
     14  await commands.wait.byTime(50);
     15  return commands.measure.start(url);
     16 }
     17 
     18 async function tearDown(context) {
     19  context.log.info("tearDown example!");
     20 }
     21 
     22 module.exports = {
     23  setUp,
     24  tearDown,
     25  test,
     26  owner: "Performance Team",
     27  name: "pageload",
     28  description: "Measures time to load mozilla page",
     29 };