mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
Bug 851658 - Fix test_proximity_change intermittent failure; r=jgriffin
This commit is contained in:
parent
ad08944f88
commit
ac31dd6215
@ -54,6 +54,9 @@ function changeProximity() {
|
||||
is(event.value, expectedEvent.value, "value");
|
||||
is(event.min, expectedEvent.min, "min");
|
||||
is(event.max, expectedEvent.max, "max");
|
||||
// Turn off event handler and listener
|
||||
window.ondeviceproximity = null;
|
||||
window.removeEventListener('deviceproximity', listener);
|
||||
restoreProximity();
|
||||
};
|
||||
|
||||
@ -73,9 +76,6 @@ function restoreProximity() {
|
||||
}
|
||||
|
||||
function cleanUp() {
|
||||
// Turn proximity event listener and handler off
|
||||
window.removeEventListener('deviceproximity', listener);
|
||||
window.ondeviceproximity = null;
|
||||
finish();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user