Bug 1073224 - [2.1] Accept rotation vector device sensor listeners in tests. r=vlad

This commit is contained in:
Eugen Sawin 2015-12-16 17:56:21 +01:00
parent 4ae0ad065c
commit 32b6fbfefd

View File

@ -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");