mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073224 - [2.1] Accept rotation vector device sensor listeners in tests. r=vlad
This commit is contained in:
parent
4ae0ad065c
commit
32b6fbfefd
@ -22,7 +22,9 @@ function hasListeners() {
|
||||
var Ci = SpecialPowers.Ci;
|
||||
var dss = Cc["@mozilla.org/devicesensors;1"].getService(Ci.nsIDeviceSensors);
|
||||
|
||||
return dss.hasWindowListener(Ci.nsIDeviceSensorData.TYPE_ORIENTATION, window);
|
||||
return dss.hasWindowListener(Ci.nsIDeviceSensorData.TYPE_ORIENTATION, window) ||
|
||||
dss.hasWindowListener(Ci.nsIDeviceSensorData.TYPE_ROTATION_VECTOR, window) ||
|
||||
dss.hasWindowListener(Ci.nsIDeviceSensorData.TYPE_GAME_ROTATION_VECTOR, window);
|
||||
}
|
||||
|
||||
is(hasListeners(), false, "Must not have listeners before tests start");
|
||||
|
Loading…
Reference in New Issue
Block a user