gpui-ui-kit 0.5.10

A reusable UI component library for GPUI applications
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Integration test for Progress component

use gpui::{Context, TestAppContext, Window, div, prelude::*};
use gpui_ui_kit::progress::Progress;

struct ProgressTestView;

impl Render for ProgressTestView {
    fn render(&mut self, _window: &mut Window, _cx: &mut Context<Self>) -> impl IntoElement {
        div().child(Progress::new(0.75))
    }
}

#[gpui::test]
async fn test_progress_renders(cx: &mut TestAppContext) {
    let _window = cx.add_window(|_window, _cx| ProgressTestView);
}