Skip to content

Commit

Permalink
Fixed smoketests
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Jan 17, 2018
1 parent 31c838d commit ae978de
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
2 changes: 0 additions & 2 deletions lighthouse-cli/test/fixtures/online-only.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<html>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="stylesheet" href="/perf/preload_style.css" />
<body>
There was nothing special about this site,
nothing was left to be seen,
not even a kite.
<script src="/perf/preload_tester.js"></script>
</body>
</html>
10 changes: 10 additions & 0 deletions lighthouse-cli/test/fixtures/preload.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
<link rel="stylesheet" href="/perf/preload_style.css" />
<body>
There was nothing special about this site,
nothing was left to be seen,
not even a kite.
<script src="/perf/preload_tester.js"></script>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,12 @@ module.exports = [
score: 100,
},
'no-document-write': {
score: true,
score: false,
details: {
items: {
length: 1,
},
},
},
'no-mutation-events': {
score: true,
Expand Down
4 changes: 2 additions & 2 deletions lighthouse-cli/test/smokehouse/perf/expectations.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/
module.exports = [
{
initialUrl: 'http://localhost:10200/online-only.html',
url: 'http://localhost:10200/online-only.html',
initialUrl: 'http://localhost:10200/preload.html',
url: 'http://localhost:10200/preload.html',
audits: {
'speed-index-metric': {
score: '>=90',
Expand Down

0 comments on commit ae978de

Please sign in to comment.