UNPKG

1.56 kBJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
5 * This code may only be used under the BSD style license found at
6 * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
7 * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
8 * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
9 * Google as part of the polymer project is also subject to an additional IP
10 * rights grant found at http://polymer.github.io/PATENTS.txt
11 */
12Object.defineProperty(exports, "__esModule", { value: true });
13exports.measurement = exports.measurementExpression = exports.forceCleanNpmInstall = exports.resolveBareModules = exports.mode = exports.horizons = exports.timeout = exports.sampleSize = exports.headless = exports.browserName = exports.root = exports.windowHeight = exports.windowWidth = void 0;
14exports.windowWidth = 1024;
15exports.windowHeight = 768;
16exports.root = '.';
17exports.browserName = 'chrome';
18exports.headless = false;
19exports.sampleSize = 50;
20exports.timeout = 3;
21exports.horizons = ['0%'];
22exports.mode = 'automatic';
23exports.resolveBareModules = true;
24exports.forceCleanNpmInstall = false;
25exports.measurementExpression = 'window.tachometerResult';
26function measurement(url) {
27 if (url.kind === 'remote') {
28 return {
29 mode: 'performance',
30 entryName: 'first-contentful-paint',
31 };
32 }
33 return { mode: 'callback' };
34}
35exports.measurement = measurement;
36//# sourceMappingURL=defaults.js.map
\No newline at end of file