summaryrefslogtreecommitdiffstats
path: root/dom/performance/tests/test_timeOrigin.html
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:26:49 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-29 12:26:49 +0200
commit85a83305dd0caeb484687cf511f81024a683338b (patch)
treee6c10fb27a6d102b15d10dca41023f0ec2af1b0f /dom/performance/tests/test_timeOrigin.html
parent30cf4c5d9356ddb7d474107af66a83826d403922 (diff)
downloadUXP-85a83305dd0caeb484687cf511f81024a683338b.tar
UXP-85a83305dd0caeb484687cf511f81024a683338b.tar.gz
UXP-85a83305dd0caeb484687cf511f81024a683338b.tar.lz
UXP-85a83305dd0caeb484687cf511f81024a683338b.tar.xz
UXP-85a83305dd0caeb484687cf511f81024a683338b.zip
Bug 1322292 - Some fixes for the Performance API in workers - part 1 - Centralized Performance.now()
https://hg.mozilla.org/mozilla-central/rev/291a68ca4825
Diffstat (limited to 'dom/performance/tests/test_timeOrigin.html')
-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 73c5106f4..5a8a461f3 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.data.now + e.data.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
+ ok (e.now + e.timeOrigin > now + performance.now, "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.data.now + e.data.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
+ ok (e.now + e.timeOrigin > now + performance.now, "Comparing worker.now and window.now");
next();
}
}