summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/general/worker_grandchild.js
diff options
context:
space:
mode:
authorTom Ritter <tom@mozilla.com>2018-02-20 13:30:16 -0600
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 11:31:24 +0100
commitf0b727eac28244e0fa24a6107dee44e83ad0f561 (patch)
tree48b69cc58535e14fd470e395ced1468bad3706dd /dom/tests/mochitest/general/worker_grandchild.js
parenta32b7f7c4e4e31669e0787e6321d74e4db71e514 (diff)
downloadUXP-f0b727eac28244e0fa24a6107dee44e83ad0f561.tar
UXP-f0b727eac28244e0fa24a6107dee44e83ad0f561.tar.gz
UXP-f0b727eac28244e0fa24a6107dee44e83ad0f561.tar.lz
UXP-f0b727eac28244e0fa24a6107dee44e83ad0f561.tar.xz
UXP-f0b727eac28244e0fa24a6107dee44e83ad0f561.zip
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
Diffstat (limited to 'dom/tests/mochitest/general/worker_grandchild.js')
-rwxr-xr-xdom/tests/mochitest/general/worker_grandchild.js10
1 files changed, 10 insertions, 0 deletions
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);
+});