mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Bug 1313420 - Implement Performance.timeOrigin - part 3 - tests
https://hg.mozilla.org/mozilla-central/rev/0f869d4c93ef
This commit is contained in:
parent
eb0737c559
commit
3ba85a992a
1 changed files with 2 additions and 2 deletions
|
|
@ -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.now, "Comparing worker.now and window.now");
|
||||
ok (e.now + e.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.now, "Comparing worker.now and window.now");
|
||||
ok (e.now + e.timeOrigin > now + performance.timeOrigin, "Comparing worker.now and window.now");
|
||||
next();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue