mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
Bug 1430173 - Add Timer Rounding tests backported from -central to -esr. r=baku, a=RyanVM
MozReview-Commit-ID: Jl4WZAamgrI --HG-- extra : transplant_source : E%DC%91lU%1C%A4l%2C%C8%23PCz%EB%F2%81%25%1F%90
This commit is contained in:
parent
c66f2e1613
commit
53a2f1007f
7 changed files with 390 additions and 0 deletions
10
dom/tests/mochitest/general/worker_grandchild.js
Executable file
10
dom/tests/mochitest/general/worker_grandchild.js
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
self.addEventListener("message", function(event) {
|
||||
let timeStampCodes = event.data;
|
||||
|
||||
let timeStamps = [];
|
||||
for (let timeStampCode of timeStampCodes) {
|
||||
timeStamps.push(eval(timeStampCode));
|
||||
}
|
||||
// Send the timeStamps to the parent.
|
||||
postMessage(timeStamps);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue