Closed Bug 1675778 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 26431 - wpt: removing test specific code for sensor timestamp request

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox84 fixed)

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26431 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26431
Details from upstream follow.

b'Arnaud Mandy <arnaud.mandy@intel.com>' wrote:

wpt: removing test specific code for sensor timestamp request

during testing, mock-sensor is used, values and timestamp are
artificially generated in the test.

to comply with test restriction, IsRunningWebTests() has been
used to simulate timestamp.
IsRunningWebTests() is only working under CI wpt testing, and
does not work in upstream wpt.

This patch removes the test specific code from blink, and
changes the timestamp value to be acceptable for the calculation
of sensor.timestamp

Bug: 1135537
Change-Id: I94ca3e4ba63ce99fcc64bef070374483db218ebf
Reviewed-on: https://chromium-review.googlesource.com/2517959
WPT-Export-Revision: cf9333b892608275af366a7f1e6b94508f8d4600

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fa200f0b9f28 [wpt PR 26431] - wpt: removing test specific code for sensor timestamp request, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.