feat(ui): port retained widget foundations
This commit is contained in:
parent
44f9ec13d9
commit
d825572e31
44 changed files with 84813 additions and 292 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using AcDream.App.UI;
|
||||
using AcDream.App.UI.Layout;
|
||||
|
||||
namespace AcDream.App.Tests.UI.Layout;
|
||||
|
|
@ -43,4 +44,18 @@ public class ChatLayoutConformanceTests
|
|||
Assert.Equal(12u, Find(root, 0x10000011u)!.Type); // Text/style-prototype (transcript)
|
||||
Assert.Equal(12u, Find(root, 0x10000016u)!.Type); // Text/style-prototype (input)
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ChatFixture_BuildsSelectableTranscriptAndEditableInputInPlace()
|
||||
{
|
||||
var layout = FixtureLoader.LoadChat();
|
||||
|
||||
var transcript = Assert.IsType<UiText>(layout.FindElement(0x10000011u));
|
||||
var input = Assert.IsType<UiField>(layout.FindElement(0x10000016u));
|
||||
|
||||
Assert.True(transcript.Selectable);
|
||||
Assert.True(input.Selectable);
|
||||
Assert.True(input.OneLine);
|
||||
Assert.Equal(0x10000016u, input.DatElementId);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue