WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
190853
Web Inspector: Audit: show metadata for results
https://bugs.webkit.org/show_bug.cgi?id=190853
Summary
Web Inspector: Audit: show metadata for results
Devin Rousso
Reported
2018-10-23 18:36:25 PDT
This would include: - date run - time taken - website - system info (maybe)
Attachments
Patch
(19.53 KB, patch)
2018-10-30 23:27 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
[Image] After Patch is applied
(750.20 KB, image/png)
2018-10-30 23:27 PDT
,
Devin Rousso
no flags
Details
Archive of layout-test-results from ews101 for mac-sierra
(2.40 MB, application/zip)
2018-10-31 00:27 PDT
,
EWS Watchlist
no flags
Details
Archive of layout-test-results from ews105 for mac-sierra-wk2
(3.14 MB, application/zip)
2018-10-31 00:37 PDT
,
EWS Watchlist
no flags
Details
Patch
(27.29 KB, patch)
2018-10-31 00:58 PDT
,
Devin Rousso
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-10-24 11:42:00 PDT
<
rdar://problem/45527623
>
Devin Rousso
Comment 2
2018-10-30 23:27:03 PDT
Created
attachment 353466
[details]
Patch
Devin Rousso
Comment 3
2018-10-30 23:27:23 PDT
Created
attachment 353467
[details]
[Image] After Patch is applied
EWS Watchlist
Comment 4
2018-10-31 00:27:53 PDT
Comment hidden (obsolete)
Comment on
attachment 353466
[details]
Patch
Attachment 353466
[details]
did not pass mac-ews (mac): Output:
https://webkit-queues.webkit.org/results/9791099
New failing tests: inspector/model/auditTestCaseResult.html inspector/model/auditTestGroupResult.html
EWS Watchlist
Comment 5
2018-10-31 00:27:55 PDT
Comment hidden (obsolete)
Created
attachment 353468
[details]
Archive of layout-test-results from ews101 for mac-sierra The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-sierra Platform: Mac OS X 10.12.6
EWS Watchlist
Comment 6
2018-10-31 00:37:31 PDT
Comment hidden (obsolete)
Comment on
attachment 353466
[details]
Patch
Attachment 353466
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
https://webkit-queues.webkit.org/results/9791123
New failing tests: inspector/model/auditTestGroupResult.html inspector/model/auditTestCaseResult.html
EWS Watchlist
Comment 7
2018-10-31 00:37:32 PDT
Comment hidden (obsolete)
Created
attachment 353469
[details]
Archive of layout-test-results from ews105 for mac-sierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-sierra-wk2 Platform: Mac OS X 10.12.6
Devin Rousso
Comment 8
2018-10-31 00:58:12 PDT
Created
attachment 353471
[details]
Patch
Blaze Burg
Comment 9
2018-10-31 09:10:23 PDT
Comment on
attachment 353471
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353471&action=review
r=me
> Source/WebInspectorUI/UserInterface/Models/AuditTestCase.js:116 > + let evaluateResponse = await RuntimeAgent.evaluate.invoke(evaluateArguments);
Nit: better name is evaluateResult or evaluationResult.
> Source/WebInspectorUI/UserInterface/Views/AuditTestCaseContentView.js:109 > + durationElement.textContent = Number.secondsToString((metadata.endTimestamp - metadata.startTimestamp) / 1000);
The .00 after every duration is kind of ugly. I thought that Number.secondsToString would have elided that rather than add fake precision.
> Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css:59 > + --metadata-width: 60px;
This could be brittle for localization, so we have to fix later.
Devin Rousso
Comment 10
2018-10-31 10:33:06 PDT
Comment on
attachment 353471
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=353471&action=review
>> Source/WebInspectorUI/UserInterface/Models/AuditTestCase.js:116 >> + let evaluateResponse = await RuntimeAgent.evaluate.invoke(evaluateArguments); > > Nit: better name is evaluateResult or evaluationResult.
I didn't want to use "result" because the returned object has a "result" member, as `evaluateResult.result` seems "ugly".
>> Source/WebInspectorUI/UserInterface/Views/AuditTestCaseContentView.js:109 >> + durationElement.textContent = Number.secondsToString((metadata.endTimestamp - metadata.startTimestamp) / 1000); > > The .00 after every duration is kind of ugly. I thought that Number.secondsToString would have elided that rather than add fake precision.
I'll do a followup for this.
>> Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css:59 >> + --metadata-width: 60px; > > This could be brittle for localization, so we have to fix later.
Correct me if I'm wrong, but isn't the "%" symbol the same in all localizations? Same with numbers?
Blaze Burg
Comment 11
2018-10-31 10:50:51 PDT
(In reply to Devin Rousso from
comment #10
)
> Comment on
attachment 353471
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=353471&action=review
> > >> Source/WebInspectorUI/UserInterface/Models/AuditTestCase.js:116 > >> + let evaluateResponse = await RuntimeAgent.evaluate.invoke(evaluateArguments); > > > > Nit: better name is evaluateResult or evaluationResult. > > I didn't want to use "result" because the returned object has a "result" > member, as `evaluateResult.result` seems "ugly". > > >> Source/WebInspectorUI/UserInterface/Views/AuditTestCaseContentView.js:109 > >> + durationElement.textContent = Number.secondsToString((metadata.endTimestamp - metadata.startTimestamp) / 1000); > > > > The .00 after every duration is kind of ugly. I thought that Number.secondsToString would have elided that rather than add fake precision. > > I'll do a followup for this. > > >> Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.css:59 > >> + --metadata-width: 60px; > > > > This could be brittle for localization, so we have to fix later. > > Correct me if I'm wrong, but isn't the "%" symbol the same in all > localizations? Same with numbers?
No. For example, Arabic uses different number glyphs, which tend to be wider. Percentages also are locale dependent even for Indic numbers.
WebKit Commit Bot
Comment 12
2018-10-31 11:26:03 PDT
Comment on
attachment 353471
[details]
Patch Clearing flags on attachment: 353471 Committed
r237644
: <
https://trac.webkit.org/changeset/237644
>
WebKit Commit Bot
Comment 13
2018-10-31 11:26:05 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug