Add f04 chooser goldens and fix chooser test MemState
This commit is contained in:
parent
646a46d7f3
commit
6f7f61fc1a
3 changed files with 107 additions and 2 deletions
|
|
@ -204,8 +204,10 @@ fn open_and_choose_by_pointer_on_f04() {
|
|||
let fixture = Fixture::F04Form;
|
||||
let mut state = MemState::from_fixture(fixture);
|
||||
state::script(fixture, &mut state);
|
||||
let mut seen = MemState::from_fixture(fixture);
|
||||
state::script(fixture, &mut seen);
|
||||
let doc = fixture.load().surfaces.remove(0);
|
||||
let select_rect = placed_rect(&placement(state.clone(), &doc, mode), "theme");
|
||||
let select_rect = placed_rect(&placement(seen, &doc, mode), "theme");
|
||||
|
||||
let mut host = Host::new(state, &doc, mode);
|
||||
// Closed initially: no selection fill or surface popup.
|
||||
|
|
@ -272,7 +274,6 @@ fn opening_another_select_replaces_any_prior_session_and_drag_off_row_does_not_c
|
|||
let mode = MODES[0];
|
||||
let placed = placement(MemState::new(), &doc, mode);
|
||||
let r1 = placed_rect(&placed, "s1");
|
||||
let r2 = placed_rect(&placed, "s2");
|
||||
let mut host = Host::new(MemState::new(), &doc, mode);
|
||||
|
||||
// Open s1.
|
||||
|
|
|
|||
15
crates/thing-core/tests/goldens/render-f04-form-chooser.txt
Normal file
15
crates/thing-core/tests/goldens/render-f04-form-chooser.txt
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
surface thing:surface:provider.settings.form viewport 800x600 scale 1 pixels
|
||||
stroke 2 2 796 20 r0 w1 #4a4a60ff
|
||||
fill 780 4 16 16 r0 #7c9cffff
|
||||
fill 2 37.5 796 5 r0 #4a4a60ff
|
||||
fill 778 30 20 20 r0 #7c9cffff
|
||||
stroke 2 58 796 24 r0 w1 #4a4a60ff
|
||||
text 4 60 #eeeef4ff font0 size16 [68@0,0 97@8,0 114@16,0 107@24,0]
|
||||
stroke 2 58 796 24 r0 w1 #b4befeff
|
||||
stroke 2 90 796 24 r0 w1 #4a4a60ff
|
||||
text 4 92 #eeeef4ff font0 size16 [56@0,0 48@8,0 56@16,0 48@24,0]
|
||||
fill 2 58 796 34 r0 #1e1e2eff
|
||||
stroke 2 58 796 34 r0 w1 #4a4a60ff
|
||||
fill 3 59 794 16 r0 #3b4261ff
|
||||
text 3 59 #eeeef4ff font0 size16 [68@0,0 97@8,0 114@16,0 107@24,0 32@32,0 42@40,0]
|
||||
text 3 75 #eeeef4ff font0 size16 [76@0,0 105@8,0 103@16,0 104@24,0 116@32,0]
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
surface thing:surface:provider.settings.form 100x37
|
||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│ │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
|
||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│Dark * │
|
||||
│Light │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||
│8080 │
|
||||
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
style 0 0 100 #4a4a60 - -
|
||||
style 1 0 1 #4a4a60 - -
|
||||
style 1 1 97 - - -
|
||||
style 1 98 1 - #7c9cff -
|
||||
style 1 99 1 #4a4a60 - -
|
||||
style 2 0 100 #4a4a60 - -
|
||||
style 3 0 100 - - -
|
||||
style 4 0 99 - #4a4a60 -
|
||||
style 4 99 1 - #7c9cff -
|
||||
style 5 0 100 #4a4a60 #1e1e2e -
|
||||
style 6 0 1 #4a4a60 #1e1e2e -
|
||||
style 6 1 6 #eeeef4 #3b4261 -
|
||||
style 6 7 92 - #3b4261 -
|
||||
style 6 99 1 #4a4a60 #1e1e2e -
|
||||
style 7 0 1 #4a4a60 #1e1e2e -
|
||||
style 7 1 5 #eeeef4 #1e1e2e -
|
||||
style 7 6 93 - #1e1e2e -
|
||||
style 7 99 1 #4a4a60 #1e1e2e -
|
||||
style 8 0 100 #4a4a60 #1e1e2e -
|
||||
style 9 0 100 #4a4a60 - -
|
||||
style 10 0 1 #4a4a60 - -
|
||||
style 10 1 4 #eeeef4 - -
|
||||
style 10 5 94 - - -
|
||||
style 10 99 1 #4a4a60 - -
|
||||
style 11 0 100 #4a4a60 - -
|
||||
style 12 0 100 - - -
|
||||
style 13 0 100 - - -
|
||||
style 14 0 100 - - -
|
||||
style 15 0 100 - - -
|
||||
style 16 0 100 - - -
|
||||
style 17 0 100 - - -
|
||||
style 18 0 100 - - -
|
||||
style 19 0 100 - - -
|
||||
style 20 0 100 - - -
|
||||
style 21 0 100 - - -
|
||||
style 22 0 100 - - -
|
||||
style 23 0 100 - - -
|
||||
style 24 0 100 - - -
|
||||
style 25 0 100 - - -
|
||||
style 26 0 100 - - -
|
||||
style 27 0 100 - - -
|
||||
style 28 0 100 - - -
|
||||
style 29 0 100 - - -
|
||||
style 30 0 100 - - -
|
||||
style 31 0 100 - - -
|
||||
style 32 0 100 - - -
|
||||
style 33 0 100 - - -
|
||||
style 34 0 100 - - -
|
||||
style 35 0 100 - - -
|
||||
style 36 0 100 - - -
|
||||
Loading…
Reference in a new issue