gecko-dev/testing/web-platform/tests/user-timing
Liquan(Max) Gu 395f3500c0 Bug 1484356 [wpt PR 12556] - [UserTiming] Correct measure where start is undefined, a=testonly
Automatic update from web-platform-tests[UserTiming] Correct measure where start is undefined

According to spec, if start is undefined for performance.measure(), 0 will be
used as the start time. However, the current implementation treats undefined as
"null".

This CL doesn't solve all the problems. For backward compatibility, L2 should
treat undefined passed to start/end as empty, null as a string 'null'. As a
temporary fix, we treat both null and undefined as undefined, which is safer
than as 'null'.

Bug: 876324

Change-Id: I7d74d6be9552d090ab7f28342be9a739017bf59b
Reviewed-on: https://chromium-review.googlesource.com/1180345
Commit-Queue: Liquan (Max) Gǔ <maxlg@chromium.org>
Reviewed-by: Yoav Weiss <yoav@yoav.ws>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585103}

--

wpt-commits: 54525995564877fbf730c679200a5ae8610e5f2f
wpt-pr: 12556
2018-08-29 10:09:05 +00:00
..
resources
clear_all_marks.any.js
clear_all_measures.any.js
clear_non_existent_mark.any.js
clear_non_existent_measure.any.js
clear_one_mark.any.js
clear_one_measure.any.js
clearMarks.html
clearMeasures.html
entry_type.any.js
idlharness.any.js Bug 1482379 [wpt PR 12406] - Remove the idl_test test_name argument (always 'idl_test setup'), a=testonly 2018-08-15 16:50:34 +00:00
invoke_with_timing_attributes.html
invoke_with_timing_attributes.worker.js
invoke_without_parameter.html
mark_exceptions.html
mark.any.js
mark.html
measure_associated_with_navigation_timing.html
measure_exception.html
measure_exceptions_navigation_timing.html
measure_navigation_timing.html Bug 1482336 [wpt PR 12398] - Fix misspelling "existance", a=testonly 2018-08-15 16:50:32 +00:00
measure_syntax_err.any.js
measure.html Bug 1484356 [wpt PR 12556] - [UserTiming] Correct measure where start is undefined, a=testonly 2018-08-29 10:09:05 +00:00
measures.html
META.yml Bug 1476293 [wpt PR 12024] - Add spec links to META.yml, a=testonly 2018-07-29 18:49:42 +01:00
user_timing_exists.any.js
user-timing-tojson.html Bug 1462502 [wpt PR 11056] - Add UserTiming toJSON test, a=testonly 2018-05-22 09:40:41 +00:00