Release Vulpes OS 2.7 Preview 25 for Desktop, Android and Pixel 3a
This commit is contained in:
parent
6a44daeaaa
commit
3a1fba4efe
1 changed files with 1301 additions and 196 deletions
|
|
@ -179,6 +179,23 @@ suite('battery manager >', function() {
|
|||
assertDisplayed();
|
||||
});
|
||||
|
||||
test('a previous timeout does not hide a new notification', function(done) {
|
||||
subject.hide();
|
||||
subject.TOASTER_TIMEOUT = 50;
|
||||
subject._wasEmptyBatteryNotificationDisplayed = false;
|
||||
MockNavigatorBattery.level = 0.05;
|
||||
sendChargingChange(false);
|
||||
setTimeout(function() {
|
||||
sendChargingChange(true);
|
||||
sendChargingChange(false);
|
||||
setTimeout(function() {
|
||||
assertDisplayed();
|
||||
subject.hide();
|
||||
done();
|
||||
}, 25);
|
||||
}, 30);
|
||||
});
|
||||
|
||||
suite('goes up >', function() {
|
||||
setup(function() {
|
||||
sendLevelChange(0.2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue