mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
Issue #1517 - Remove dom.event.highrestimestamp.enabled pref
This resolves #1517
This commit is contained in:
parent
0c44ae0a30
commit
d62f0a0dd2
6 changed files with 14 additions and 59 deletions
|
|
@ -236,14 +236,10 @@ function sanityCheckEvent(evt)
|
|||
is(evt.eventPhase, evt.AT_TARGET);
|
||||
is(evt.bubbles, false, "Event should not bubble");
|
||||
is(evt.cancelable, false, "Event should not be cancelable");
|
||||
if (SpecialPowers.getBoolPref("dom.event.highrestimestamp.enabled")) {
|
||||
var now = window.performance.now();
|
||||
ok(evt.timeStamp > 0 && evt.timeStamp < now,
|
||||
"Event timeStamp (" + evt.timeStamp + ") should be > 0 but " +
|
||||
"before the current time (" + now + ")");
|
||||
} else {
|
||||
is(evt.timeStamp, 0, "Event timeStamp should be 0");
|
||||
}
|
||||
var now = window.performance.now();
|
||||
ok(evt.timeStamp > 0 && evt.timeStamp < now,
|
||||
"Event timeStamp (" + evt.timeStamp + ") should be > 0 but " +
|
||||
"before the current time (" + now + ")");
|
||||
ok(evt.view !== null, "Event view not set");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue