[webkit-reviews] review granted: [Bug 176970] Should not mark a platform as missing in summary page if all expecting metrics are exlucded. : [Attachment 320853] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 14 20:26:59 PDT 2017
Ryosuke Niwa <rniwa at webkit.org> has granted dewei_zhu at apple.com's request for
review:
Bug 176970: Should not mark a platform as missing in summary page if all
expecting metrics are exlucded.
https://bugs.webkit.org/show_bug.cgi?id=176970
Attachment 320853: Patch
https://bugs.webkit.org/attachment.cgi?id=320853&action=review
--- Comment #2 from Ryosuke Niwa <rniwa at webkit.org> ---
Comment on attachment 320853
--> https://bugs.webkit.org/attachment.cgi?id=320853
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=320853&action=review
> Websites/perf.webkit.org/public/v3/pages/summary-page.js:265
> var foundInSomeMetric = false;
> + var excludedMerticCount = 0;
Use let.
> Websites/perf.webkit.org/public/v3/pages/summary-page.js:281
> - if (!foundInSomeMetric)
> + if (!foundInSomeMetric && excludedMerticCount < metrics.length)
Now we don't need foundInSomeMetric. You can just check excludedMerticCount <
metrics.length
since that condition also implies metrics.length.
More information about the webkit-reviews
mailing list