Граф коммитов

222 Коммитов

Автор SHA1 Сообщение Дата
M Somerville 4514a73781 Viewport audit: accept initial-scale and allow spaces (#1267)
Introduce `metaviewport-parser` module for better parsing.
2017-01-12 10:33:50 -08:00
Eric Bidelman b810242d25 Add install/build scripts for each package.json (#1439)
* Prepublish commands to do the initial building
* Update CLI warning for ts compile
* Remove prepublish. Add helpful build scripts
* Keep prepublish for tsc compile
* make node4 happy
2017-01-12 02:28:53 -08:00
Eric Bidelman cd5015a2e6 Viewer: Add tests for fileuploader (#1184) 2017-01-05 16:42:10 -08:00
Brendan Kenny 179783b6a2 1.4.1 (#1406) 2017-01-04 18:45:16 -08:00
Paul Irish de25797c04 1.4.0 (#1403) 2017-01-04 15:34:04 -08:00
Eric Bidelman 83c4915caa Removes uses of HTML injection in report (#1226)
* Beginning to use markdown in snippets

* Allow links and code snippets

* Update audits to use .md instead of html

* Add tests
2017-01-03 10:47:21 -08:00
XhmikosR 46a7fb1427 Remove duplicate mkdirp dependency.
Fixes npm install warning.
2016-12-23 23:23:26 +02:00
Brendan Kenny aa1059b0e9 1.3.2 (#1281) 2016-12-23 11:02:00 -08:00
Brendan Kenny a00240b4e0 1.3.1 (#1230) 2016-12-21 18:53:53 -08:00
Brendan Kenny 029e1f0d78 1.3.0 (#1181) 2016-12-19 16:43:50 -08:00
Patrick Hulce 54fe456153 Fix evaluateAsync in the face of aggressive Promise polyfills (#1178)
* Fix `driver.evaluateAsync` behavior when [zone.js](https://github.com/angular/zone.js) has mucked with Promise.

* Add zone.js to the smoke tests so regression won't happen again.

* Remove old testing promise-polyfill
2016-12-19 15:29:00 -08:00
Brendan Kenny 55284fc5ba bin.ts simplification refactor 2016-12-15 17:42:54 -08:00
WeiweiAtGit dd6348a4be Add --view flag which will start a server and host report.html (#1130) 2016-12-14 17:48:12 -08:00
Ward Peeters 279965c8cd Use whatwg-url to parse urls (#997) 2016-12-14 09:05:08 -08:00
Paul Irish 83a5fdb94d bump axe to 2.1.7 with perf fix (#1155) 2016-12-13 18:09:10 -08:00
Paul Irish 8142268f83 Upgrade ESLint and eslint-config-google to latest (#1136) 2016-12-13 16:49:28 -08:00
Eric Bidelman 509691fa72 Add Lighthouse Report Viewer (#1109) 2016-12-06 17:16:50 -08:00
Paul Irish 393bbf28f6 remove jszip dependency for traceviewer. (#1094) 2016-12-01 17:48:58 -08:00
Brendan Kenny c1ab428c58 unmute some smoke test failures (#1081)
also update smoke test expectations for changes in perf metric scoring
2016-11-29 17:19:02 -08:00
Brendan Kenny 31637d7e7b 1.2.2 2016-11-29 15:53:37 -08:00
Brendan Kenny 30a8709975 1.2.1 (#1022) 2016-11-22 18:13:11 -08:00
Brendan Kenny f17ce7c059 1.2.0 (#961) 2016-11-17 00:09:47 -08:00
Eric Bidelman ae285d14d3 Add DBW audits and gatherers to default config 2016-11-08 15:48:25 -08:00
Sam Saccone 55eaed4529 Migrate launch-chrome.sh to use chrome-launcher. 2016-11-06 10:42:33 -08:00
Eric Bidelman ffe0afda4a Add DBW to smoke tests (#843) 2016-11-01 21:09:00 -07:00
Brendan Kenny 694baf61d5 1.1.7 (#865) 2016-10-31 15:25:57 -07:00
Eric Bidelman 8eaf3e0636 DBW: update flags 2016-10-26 17:02:03 -07:00
Sam Saccone b712120ef9 Migrate cli js to TS 2016-10-22 15:13:17 -07:00
Pavel Feldman 7062bfb550 Extract Connection abstraction from Driver (#800)
* Migrate off chrome-remote-interface
* Extract Connection delegate abstraction from driver.
2016-10-20 18:08:47 -07:00
Brendan Kenny 41a5cfe314 make existing smoketest run using smokehouse (#788)
* transfer npm run smoke to using smokehouse

* run smokehouse subprocess with --harmony if needed
2016-10-18 11:27:18 -07:00
Paul Irish b446a816bf Adopt Perceptual Speed Index (#785)
* report PSI instead.

* bump speedline to 1.0.3

* update tests for pSI swap
2016-10-17 08:33:27 -07:00
Brendan Kenny 9e44fd843e add smokehouse, an end-to-end test runner (#781) 2016-10-16 21:38:17 -07:00
Paul Irish f80e121cbe
1.1.6 2016-10-12 11:33:44 -07:00
Brendan Kenny e9297e25fa 1.1.5 (#759) 2016-10-10 15:49:34 -07:00
Paul Irish 88baef6e9a
speedline to 1.0.2. ref #728
fptovc branch === the 1.0.2 tag, so this commit has no functional changes.
See #728 for details
2016-10-02 12:48:09 -07:00
Paul Irish 98a0b2e7c8
speedline to 1.0.1 2016-10-01 17:06:48 -07:00
Paul Irish 39c3490a33 bump chrome-devtools-frontend module (#724)
* devtools frontend bump. A+ for --perf
* speedline to 1.0.0
2016-09-30 18:09:42 -07:00
Paul Irish 67680a09b6 Bump catapult/traceviewer to latest (#723)
* Bump traceviewer to master

* Add babel transpile to build-traceviewer-module.js
2016-09-30 17:59:29 -07:00
Paul Irish a85aa1f20d
speedline to 1.0.0 2016-09-30 17:04:05 -07:00
Eric Bidelman 75a5d4c968 Fix --mobile=false CLI flag and use it for DBW (#721) 2016-09-29 17:07:51 -07:00
Paul Irish 013b3f2ed1
remove closure compile from npm test 2016-09-23 10:46:57 +01:00
Eric Bidelman 8786b028b3 Add npm run dbw 2016-09-22 18:20:09 -07:00
Paul Irish aaeef0bf20 Merge pull request #678 from GoogleChrome/chromedebugcmd
Add `chrome-debug` binary to launch the debuggable standalone chrome
2016-09-20 23:39:33 -07:00
Paul Irish 71520d21bb
Add `chrome-debug` binary to launch the debuggable standalone chrome 2016-09-20 17:09:05 -07:00
Brendan Kenny 2267208409 1.1.4 2016-09-19 14:52:48 -07:00
Boopathi Rajaa f8ace8b4b0 Naming and other small fixes. Enable travis to use lighthouse launcher 2016-09-15 01:05:31 +02:00
Boopathi Rajaa 324548a82f Run chrome as a part of Lighthouse CLI
+ (Fixes #349)
+ Rebases - https://github.com/GoogleChrome/lighthouse/compare/master...boopathi:launch-chrome-js to use the new CLI and folder structures

Logic:

+ When connection fails, try launching chrome
+ Poll every ~= 500ms to remote debugger port 9222 till a connection
can be established for a fixed number of retries - 10.
+ Attempt running lighthouse again whenever the connection is
successful

Lint fixes and option change - use-some-chrome to select-chrome

use strict for node 4 and 5

Clean up some stuff and add linux and windows - To be verified

Fix some lint

Move all finders to a single file and make it all sync

launch-chrome flag and split run function

Add LICENSE

Runner class to list of functions

linux additional flag and linux throw error for undef env

skip-autolaunch

Fix lint and node 4&5
2016-09-14 04:54:07 +02:00
Brendan Kenny a5bbe2338f 1.1.3 2016-09-06 16:50:06 -07:00
Paul Irish c72a695167
Merge branch 'master' into wardpeet-rename-tests 2016-08-19 20:51:05 -07:00
Paul Irish c8662e3d0c Introduce computedArtifacts (#583)
The difference between classic gatherers and computed artifacts:

* gatherers all speak directly to the browser and collect data. All of them talk to the protocol
* computed artifacts do not talk to the protocol. They take either a trace or networkRecords and generate another artifact that's of value to more than 1 audits. 

https://github.com/GoogleChrome/lighthouse/pull/583
2016-08-19 20:47:31 -07:00
Paul Irish 35e649ad50
mocha tests unfortch can't rely on globbing 2016-08-19 20:45:20 -07:00
Paul Irish 543b422603 Revamp smoketest, include offline & SW test
* Replace pythonsimplehttpserver with a configurable node-based server

### offline & sw details
* use SW logic from from googlechrome.github.io/samples/service-worker/basic , but adapted
* Simpler skipWaiting thanks to dbca5f70c8 (commitcomment-18601764)
* run smoketests on diff ports so sw isn't shared.
* Load offline-ready page twice so we dont have to worry about racing between cache population and lighthouse's gatherer.
* make offline page take longer to load to allow enough time for SW to populate cache
2016-08-19 20:15:25 -07:00
Paul Irish 0269917f96
1.1.2 2016-08-05 23:04:47 -07:00
Paul Irish ed8e056f52
1.1.1 2016-08-04 21:59:08 -07:00
Paul Irish d9a7f84763
1.1.0 2016-08-02 10:24:43 -07:00
Paul Irish 59fdea9dce
Refactor npm scripts for mocha 2016-08-01 17:11:35 -07:00
Paul Irish e8bb926eac
1.0.6 2016-07-28 15:55:42 -04:00
Ward Peeters 1b998a3e40 Moved everything from lighthouse-core to ligthouse 2016-07-26 07:38:23 +02:00
Ward Peeters da09ffb29a Cleanup harmony scripts #513 (#516) 2016-07-25 17:07:53 -04:00
Michael Gerakis fe5f57dbf3 Travis: enable testing of node v4 + --harmony (#501) 2016-07-11 17:35:56 -07:00
Paul Lewis 07e4958d36 Removes the 'module' folder from main. 2016-07-11 13:36:50 +01:00
Paul Irish 90ffa1a220
1.0.5 2016-07-08 14:26:21 -07:00
Paul Irish e28ee772c5 Install child folder deps through helper script (#500) 2016-07-08 14:22:05 -07:00
Paul Irish fcf82d22d8
1.0.4 2016-07-08 13:26:25 -07:00
Paul Irish 15b473dd5c
1.0.3 2016-07-07 19:11:26 -07:00
Michael Gerakis 94cc318ee4 Require semver as a dependency. (#473) 2016-06-27 22:19:23 +01:00
Paul Irish ab00e2c7e4
bump package to 1.0.2 2016-06-24 01:51:11 +01:00
Paul Irish dfe2a77ada
yargs on 3.30.0 . 2016-06-23 20:01:31 +01:00
Ward Peeters cfd98ab808 Setting up yargs instead of meow 2016-06-22 17:31:47 +02:00
Paul Lewis 4733a35469 Root package (#431)
* Creates package.json at root

* Removes lighthouse-core deps from CLI & extension

* Updates requires to use relative paths

* Fixes report loader path

* merge root package with cli package.json

* Updates smoke test paths

* Updates .travis.yml

* Update .travis.yml again

* Removes core/package.json

* Revert "Removes core/package.json"

This reverts commit 32e57ee782.
2016-06-15 19:37:52 +01:00
Paul Lewis 0295887b88 Refactors to separate /lighthouse-core, /lighthouse-extension and /lighthouse-cli 2016-06-14 12:10:19 +01:00
Paul Irish ed71d6b355 Screenshots gatherer, audit & asset viewer
* save screenshots in --save-assets flag
* meow needs to know what cmd line options are booleans.
* Get screenshots running with new whitelisted scheduler.
* use json-stringify-safe, which handles larger objects better than native.
* change default url to aliexpress, as platform-status.mozilla is down.

Closure is unhappy with the return value. I'm not sure why.
2016-05-28 00:00:48 -07:00
Paul Irish 1548a45a0f Merge pull request #375 from brendankenny/coverage
add istanbul test coverage reporting
2016-05-27 12:02:01 -07:00
Sam Thorogood 9ff0e36f65 get closure-type-checking running again (#360)
* minimal type fixes to get building
2016-05-27 12:01:12 -07:00
Brendan Kenny 127e50be4b add coveralls support for coverage info 2016-05-27 00:58:28 -07:00
Brendan Kenny 62adf05401 add istanbul test coverage reporting
also removes smoke tests from what are (ostensibly) unit tests
2016-05-27 00:41:38 -07:00
Zack Boehm fe9de41f24 Update package.json homepage & issue URLs from Big Rig (#357) 2016-05-25 13:47:23 -07:00
Boopathi Rajaa 50525add43 Fix unit test watch npm command
+ Fix extension.js and extension*.js are ignored
+ no need for grep -v. find supports exlusions
2016-05-17 12:05:37 +02:00
Paul Irish 62ca0b3671 traceviewer module + input readiness metric
PR  (#309) has the details

* Adds conversion script to convert catapult repo into a consumable node mobule
* Adds 'input readiness' metric which depends on traceviewer
* works with browserify.
2016-05-10 23:35:31 -07:00
Paul Lewis c1d5eb4e14 Adds module support. (#287) 2016-05-05 11:37:33 -07:00
Pierre-Marie Dartus 26796a31f1 Fix start script entry (#282) 2016-05-05 12:45:56 +01:00
Sam Thorogood 51b30d0954 pull in speedline and report speedIndex 2016-04-28 17:04:04 -07:00
Paul Irish e84bc3c065 test/ folder refactor (#245)
* folder refactor: tests/ now match up.

* add readme notes on `npm run watch`
2016-04-24 17:45:33 -07:00
Paul Irish de850dd236
folder refactor: cli/ ftw. Now: `node cli https://pwa.rocks` 2016-04-23 18:44:12 -07:00
Paul Irish 714ece497a
folder refactor: scripts/ get their own home 2016-04-23 18:43:53 -07:00
Paul Lewis 0f149459da Adds a11y valid-aria-attr check, using axe-core audits 2016-04-23 17:00:13 -07:00
Brendan Kenny cff829c7db Adds full report to CLI and extension; upgrades printer.
* Refactors for a 'full report' in CLI & extension.
* Upgrades the printer; adds tests.
2016-04-21 09:55:06 +01:00
Brendan Kenny f32eec17b5 reorganization of devtools frontend imports and mocking 2016-04-20 12:56:12 -07:00
Sam Saccone 2a84d3337b tests: Add initial smoke test coverage.
We can continue to add to this as we hit more and more issues.
2016-04-19 08:16:02 -07:00
Deepanjan Roy 0cc8bb4a00 Do not run if node version older than 5.9 2016-03-31 16:32:40 -04:00
Sam Saccone d3aeb330d6 Fix incorrect npm start command 2016-03-29 17:49:03 -07:00
Brendan Kenny da55619943 Merge pull request #95 from brendankenny/closure
add closure type checking (to audits/ only for now)
2016-03-29 17:43:23 -07:00
Brendan Kenny 807af0f3d0 add closure type checking to audits 2016-03-29 17:40:58 -07:00
ragingwind 57ec21d247 Using npm script to launch chrome 2016-03-29 09:33:32 +09:00
Paul Lewis 8bb55c3e25 Adds tests for all aggregators and audits.
Ensures all the files in the folders all override the required getters.
2016-03-24 18:04:26 +00:00
Paul Lewis f81a84f7a8 Moves trace processor tests so things are tidier. 2016-03-24 14:33:38 +00:00
Paul Lewis aae908df4d Removes chai 2016-03-24 14:19:46 +00:00
Paul Lewis 6b5c790db3 Merge pull request #62 from GoogleChrome/sjs/test-sketch
Background color test sketch 🌽
2016-03-23 14:49:08 +00:00
Sam Saccone 592dd0e2f2 Background color test sketch 🌽
* Fix a loose contract in the audit.
* Add test coverage for the audit.
2016-03-23 07:46:22 -07:00
Sindre Sorhus fae8b26ee2 simplify package.json 2016-03-23 14:24:13 +07:00
Paul Irish c0cdd7196d wip 2016-03-22 20:48:52 -07:00
Paul Irish aef32fd78a lint fixes 2016-03-22 11:29:41 -07:00
Paul Irish 10e5a9368a Add cli with flags. URL now customizable 2016-03-22 11:24:49 -07:00
Paul Lewis 3f4a5f2377 Backports extension; refactors much. 2016-03-22 15:26:24 +00:00
Paul Irish 7d5ebb0d68 devtools-timeline-model now won't conflict with local devtools frontend. 2016-03-20 20:48:07 -07:00
Paul Irish 1e3883e228 Merge branch 'master' into fmp-metric 2016-03-19 12:45:45 -07:00
Paul Irish 9bfae8d983 wip 2016-03-18 18:36:30 -07:00
Brendan Kenny ce9bfba6b4 remove unneeded deps, lock devtools version 2016-03-18 18:29:51 -07:00
Paul Irish 83bb275d05 Add first-meaningful-paint metric first pass. ref #26 2016-03-18 18:12:31 -07:00
Brendan Kenny 280bfbceff add hacky network request recording
uses DevTools's NetworkManager frontend to process CRI events
2016-03-18 17:49:17 -07:00
Brendan Kenny 5e7ede2bec rough port @paullewis's changes to current master 2016-03-17 02:25:16 -07:00
Sam Saccone 0c336f8546 Simplify running. 2016-03-12 16:48:29 -08:00
Brendan Kenny a6b0cd7790 linting fixes 2016-03-11 23:34:10 -08:00
Brendan Kenny fdd726e2ff split unit tests into their own npm script
moar tiny PRs!
2016-03-11 16:05:49 -08:00
Brendan Kenny 709ee589f0 make readme example run
add missing dep and typo in CLI example
2016-03-11 15:52:23 -08:00
Brendan Kenny 4fb117277e add bare Google-style eslint checking 2016-03-11 15:33:22 -08:00
Paul Irish 4832174122 Merge branch 'master' into cri 2016-03-11 13:52:15 -08:00
Nat Duca 019b7fa2ef Use traceviewer package for trace parsing
\o/
2016-03-11 10:01:19 -08:00
Paul Irish 9b9baef342 dropped webdriver and adopted chrome-remote-interface. ported JS & SW audits over. 2016-03-09 03:21:30 -08:00
Paul Irish 976cde4db0 tests 2016-03-04 17:45:26 -08:00
Paul Lewis 2629bf68cb Adds ChromeDriver and test for SW. 2016-01-18 17:07:46 +00:00
Paul Lewis c09a442f05 Adds tests. 2016-01-15 17:13:20 +00:00