[UserTiming] Add tests to cover edge use-cases for measure API
Before we introduce CustomUserTiming, we need to ensure the edge cases behave the same between the old and the new API while the feature flag of the new API is off. Hereby, we identify the following use cases. As the start/end marks are in String type, when passing the following args, they are converted to respective Strings: {} -> '[object Object]' null -> 'null' 51.15 -> '51.15' This CL introduces some test cases to cover these behaviors. Bug: 758385 Change-Id: I4ad60f907f3d794309bee1d8e3ce4268e2e5f49f Reviewed-on: https://chromium-review.googlesource.com/883943 Commit-Queue: Liquan Gu <maxlg@chromium.org> Reviewed-by:Timothy Dresser <tdresser@chromium.org> Cr-Commit-Position: refs/heads/master@{#531683}
Showing
Please register or sign in to comment