summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:20:22 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:20:22 +0200
commit30cf4c5d9356ddb7d474107af66a83826d403922 (patch)
treeb3abd1b12ae00904d7fea955d103688242b638c1
parent1ad6dc807cfff2d0c6d51068390289fd0f76a60a (diff)
downloadUXP-30cf4c5d9356ddb7d474107af66a83826d403922.tar
UXP-30cf4c5d9356ddb7d474107af66a83826d403922.tar.gz
UXP-30cf4c5d9356ddb7d474107af66a83826d403922.tar.lz
UXP-30cf4c5d9356ddb7d474107af66a83826d403922.tar.xz
UXP-30cf4c5d9356ddb7d474107af66a83826d403922.zip
Bug 1313420 - Implement Performance.timeOrigin - part 4 - tests
https://hg.mozilla.org/mozilla-central/rev/49305a317143
-rw-r--r--dom/performance/tests/test_timeOrigin.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/performance/tests/test_timeOrigin.html b/dom/performance/tests/test_timeOrigin.html
index 2c5de0d5d..73c5106f4 100644
--- a/dom/performance/tests/test_timeOrigin.html
+++ b/dom/performance/tests/test_timeOrigin.html
@@ -32,7 +32,7 @@ function testWorker() {
{ type: "text/javascript" });
var w = new Worker(URL.createObjectURL(blob));
w.onmessage = function(e) {
- ok (e.now + e.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
+ ok (e.data.now + e.data.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
next();
}
}
@@ -44,7 +44,7 @@ function testSharedWorker() {
{ type: "text/javascript" });
var w = new SharedWorker(URL.createObjectURL(blob));
w.port.onmessage = function(e) {
- ok (e.now + e.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
+ ok (e.data.now + e.data.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
next();
}
}