Web Inspector: Timeline time range selection sometimes shows 0.000, should be just 0
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 23:26:29 +0000 (23:26 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 23:26:29 +0000 (23:26 +0000)
commit555972844771798acdb6943d23bc82f311b3be05
treec9d29913d4948694c201ed950d0f8f1e6b94e2a6
parent16dac9588b3224073546f2bddb0b1a5360437363
Web Inspector: Timeline time range selection sometimes shows 0.000, should be just 0
https://bugs.webkit.org/show_bug.cgi?id=194108
<rdar://problem/47714273>

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2019-01-31
Reviewed by Devin Rousso.

Source/WebInspectorUI:

* UserInterface/Base/Utilities.js:
Check under epsilon for the zero case.

LayoutTests:

* inspector/unit-tests/number-utilities-expected.txt:
* inspector/unit-tests/number-utilities.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/unit-tests/number-utilities-expected.txt
LayoutTests/inspector/unit-tests/number-utilities.html
Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Utilities.js