Add some test cases
This commit is contained in:
parent
cf47ed2c5f
commit
0711121586
4 changed files with 62 additions and 11 deletions
|
@ -1,14 +1,14 @@
|
|||
use anyhow::Result;
|
||||
use gpui::AssetSource;
|
||||
use gpui::{
|
||||
div, px, size, AnyView, Bounds, Div, Render, ViewContext, VisualContext, WindowBounds,
|
||||
WindowOptions,
|
||||
};
|
||||
use gpui::{white, AssetSource};
|
||||
use settings::{default_settings, Settings, SettingsStore};
|
||||
use std::borrow::Cow;
|
||||
use std::sync::Arc;
|
||||
use theme::ThemeSettings;
|
||||
use ui::{prelude::*, ContextMenuStory};
|
||||
use ui::{h_stack, prelude::*, ContextMenuStory};
|
||||
|
||||
struct Assets;
|
||||
|
||||
|
@ -65,9 +65,22 @@ impl Render for TestView {
|
|||
fn render(&mut self, _cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
div()
|
||||
.flex()
|
||||
.bg(gpui::blue())
|
||||
.flex_col()
|
||||
.size_full()
|
||||
.font("Helvetica")
|
||||
.child(self.story.clone())
|
||||
.child(div().h_5())
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.w_96()
|
||||
.bg(white())
|
||||
.relative()
|
||||
.child(div().child(concat!(
|
||||
"The quick brown fox jumps over the lazy dog. ",
|
||||
"Meanwhile, the lazy dog decided it was time for a change. ",
|
||||
"He started daily workout routines, ate healthier and became the fastest dog in town.",
|
||||
))),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue