mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Bug 1322292 - Some fixes for the Performance API in workers - part 1 - Centralized Performance.now()
https://hg.mozilla.org/mozilla-central/rev/291a68ca4825
This commit is contained in:
parent
d40e56137b
commit
94ea4f222c
7 changed files with 10 additions and 23 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue