[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: fix typo in performance-budget smoke test #9244

Merged
merged 2 commits into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
simplify changes
  • Loading branch information
connorjclark committed Jun 21, 2019
commit e99cfcb9d52356f439706a4a815808a5c841da81
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
// Load file as 'other' resource.
const response = await fetch('http://localhost:10503/preload.html');
const ab = await response.arrayBuffer();
document.querySelector('.corsfont').textContent = ab.byteLength;
document.querySelector('.fetch-length').textContent = ab.byteLength;
}
yah();
</script>
Expand All @@ -40,7 +40,7 @@
<img style="width: 100px; height: 100px;" src="../../byte-efficiency/large.svg">
<p class="webfont">Ripping off some webfont smoke tests</p>
<p><strong class="webfont">Do we need such text</strong></p>
<p class="corsfont"></p>
<p class="fetch-length"></p>
<script src="../level-2.js"></script>
</body>
</html>
22 changes: 11 additions & 11 deletions lighthouse-cli/test/smokehouse/perf/expectations.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ module.exports = [
audits: {
'resource-summary': {
score: null,
displayValue: '12 requests • 211 KB',
displayValue: '11 requests • 164 KB',
details: {
items: [
{resourceType: 'total', requestCount: 12, size: '215000±1000'},
{resourceType: 'font', requestCount: 3, size: '128000±1000'},
{resourceType: 'total', requestCount: 11, size: '168000±1000'},
{resourceType: 'font', requestCount: 2, size: '80000±1000'},
{resourceType: 'script', requestCount: 3, size: '55000±1000'},
{resourceType: 'image', requestCount: 2, size: '28000±1000'},
{resourceType: 'document', requestCount: 1, size: '2100±100'},
Expand All @@ -94,23 +94,23 @@ module.exports = [
items: [
{
resourceType: 'total',
countOverBudget: '4 requests',
sizeOverBudget: '113000±1000',
},
{
resourceType: 'font',
countOverBudget: '1 request',
sizeOverBudget: '52000±1000',
countOverBudget: '3 requests',
sizeOverBudget: '65000±1000',
},
{
resourceType: 'script',
countOverBudget: '2 requests',
sizeOverBudget: '25000±1000',
},
{
resourceType: 'font',
countOverBudget: undefined,
sizeOverBudget: '4000±500',
},
{
resourceType: 'document',
countOverBudget: '1 request',
sizeOverBudget: '1100±50',
sizeOverBudget: '1150±50',
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added just enough bytes to the main doc to require this change

},
{
resourceType: 'stylesheet',
Expand Down