mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-29 08:34:36 +02:00
Merge pull request #582 from bowlofeggs/bowlofeggs-0.6.4-battery-test
Feature gate test_default_battery_movement
This commit is contained in:
commit
f036a65135
@ -1,7 +1,9 @@
|
|||||||
//! Mocks layout management, so we can check if we broke anything.
|
//! Mocks layout management, so we can check if we broke anything.
|
||||||
|
|
||||||
use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
|
use bottom::app::layout_manager::{BottomLayout, BottomWidgetType};
|
||||||
use bottom::constants::{DEFAULT_BATTERY_LAYOUT, DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
|
#[cfg(feature = "battery")]
|
||||||
|
use bottom::constants::DEFAULT_BATTERY_LAYOUT;
|
||||||
|
use bottom::constants::{DEFAULT_LAYOUT, DEFAULT_WIDGET_ID};
|
||||||
use bottom::options::{layout_options::Row, Config};
|
use bottom::options::{layout_options::Row, Config};
|
||||||
use bottom::utils::error;
|
use bottom::utils::error;
|
||||||
|
|
||||||
@ -126,6 +128,7 @@ fn test_default_movement() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "battery")]
|
||||||
#[test]
|
#[test]
|
||||||
/// Tests battery movement in the default setup.
|
/// Tests battery movement in the default setup.
|
||||||
fn test_default_battery_movement() {
|
fn test_default_battery_movement() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user