mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1313420 - Implement Performance.timeOrigin - part 4 - tests, r=me
This commit is contained in:
parent
3aca311a38
commit
a7ee323115
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user