feat: official crossfade, concurrent downloads, changelog, and 1-to-1 settings/EQ
This commit is contained in:
parent
ee65d23b2a
commit
41c30f9c35
22 changed files with 3572 additions and 864 deletions
|
|
@ -133,6 +133,7 @@ fn make_base_shell(
|
|||
r128_tp: None,
|
||||
derived_average_hex: None,
|
||||
derived_accent_hex: None,
|
||||
fade: None,
|
||||
};
|
||||
let track2 = Track {
|
||||
id: "t_2".into(),
|
||||
|
|
@ -158,6 +159,7 @@ fn make_base_shell(
|
|||
r128_tp: None,
|
||||
derived_average_hex: None,
|
||||
derived_accent_hex: None,
|
||||
fade: None,
|
||||
};
|
||||
let landing = demo_data::demo_landing();
|
||||
let app = AppState::new_visual_test(
|
||||
|
|
@ -2053,6 +2055,7 @@ fn test_ext_17_for_you_collection_concerts_words_fullscreen() {
|
|||
r128_tp: None,
|
||||
derived_average_hex: None,
|
||||
derived_accent_hex: None,
|
||||
fade: None,
|
||||
})
|
||||
.collect();
|
||||
shell.app.liked_artists = ["SALUKI", "Mirele", "KYOR", "SuperSolar", "GSTRNM", "OG BLESS"]
|
||||
|
|
@ -2515,3 +2518,69 @@ fn test_ext_18_qa_sync_lyrics_scroll_concerts_duplicate_albums() {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ext_15_release_notes_modal_update_notification_and_download_ring() {
|
||||
let rt = tokio::runtime::Runtime::new().unwrap();
|
||||
let mut vk = HeadlessVulkanRenderer::new(NATIVE_W, NATIVE_H).expect("Vulkan init failed");
|
||||
|
||||
for theme in [ThemeMode::Dark, ThemeMode::Light] {
|
||||
let mut shell = make_base_shell(
|
||||
rt.handle().clone(),
|
||||
vk.gpu_name.clone(),
|
||||
Route::LikedTracks,
|
||||
theme,
|
||||
Language::Ru,
|
||||
0.0,
|
||||
);
|
||||
if let Some(first_id) = shell.app.liked_tracks.first().map(|t| t.id.clone()) {
|
||||
shell.app.downloading_track_ids.insert(first_id.clone());
|
||||
shell.app.downloading_track_progress.insert(first_id, 0.45);
|
||||
shell.app.download_batch_total = 2;
|
||||
shell.app.download_batch_done = 0;
|
||||
}
|
||||
shell.app.available_update = Some(yandex_music_rs::api::models::UpdateInfo {
|
||||
version: "9.9.9".into(),
|
||||
html_url: "https://git.tatar/marwy/yandex-music-rs/releases/tag/v9.9.9".into(),
|
||||
date: "2026-11-28".into(),
|
||||
body: "## Новое\n- Тестовое обновление".into(),
|
||||
});
|
||||
shell.app.release_notes_modal_open = true;
|
||||
|
||||
let _ = render_single_frame(&mut vk, &mut shell, 0.0);
|
||||
let img = render_single_frame(&mut vk, &mut shell, 0.016);
|
||||
assert!(img.width() == NATIVE_W && img.height() == NATIVE_H);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ext_19_official_settings_sound_quality_equalizer_and_shortcuts_modals() {
|
||||
let rt = tokio::runtime::Runtime::new().unwrap();
|
||||
let mut vk = HeadlessVulkanRenderer::new(NATIVE_W, NATIVE_H).expect("Vulkan init failed");
|
||||
|
||||
for theme in [ThemeMode::Dark, ThemeMode::Light] {
|
||||
let mut shell = make_base_shell(
|
||||
rt.handle().clone(),
|
||||
vk.gpu_name.clone(),
|
||||
Route::Settings,
|
||||
theme,
|
||||
Language::Ru,
|
||||
0.0,
|
||||
);
|
||||
shell.app.config.eq_enabled = true;
|
||||
shell.app.eq_popover_open = true;
|
||||
let _ = render_single_frame(&mut vk, &mut shell, 0.0);
|
||||
let img_qs = render_single_frame(&mut vk, &mut shell, 0.016);
|
||||
assert!(img_qs.width() == NATIVE_W && img_qs.height() == NATIVE_H);
|
||||
|
||||
shell.app.eq_popover_open = false;
|
||||
shell.app.equalizer_modal_open = true;
|
||||
let img_eq = render_single_frame(&mut vk, &mut shell, 0.032);
|
||||
assert!(img_eq.width() == NATIVE_W && img_eq.height() == NATIVE_H);
|
||||
|
||||
shell.app.equalizer_modal_open = false;
|
||||
shell.app.shortcuts_modal_open = true;
|
||||
let img_sc = render_single_frame(&mut vk, &mut shell, 0.048);
|
||||
assert!(img_sc.width() == NATIVE_W && img_sc.height() == NATIVE_H);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue