From f0b727eac28244e0fa24a6107dee44e83ad0f561 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Tue, 20 Feb 2018 13:30:16 -0600 Subject: 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 --- dom/tests/mochitest/general/worker_grandchild.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 dom/tests/mochitest/general/worker_grandchild.js (limited to 'dom/tests/mochitest/general/worker_grandchild.js') diff --git a/dom/tests/mochitest/general/worker_grandchild.js b/dom/tests/mochitest/general/worker_grandchild.js new file mode 100755 index 000000000..cd21508b2 --- /dev/null +++ b/dom/tests/mochitest/general/worker_grandchild.js @@ -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); +}); -- cgit v1.2.3