Skip to content

Commit 2552cbd

Browse files
committed
Merge branch 'main' into tab_table
2 parents fe5cd47 + b0c29a6 commit 2552cbd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public async Task TabStyle_Ok()
4545
cut.SetParametersAndRender(pb => pb.Add(a => a.ShowFullscreenToolbarButton, false));
4646
Assert.DoesNotContain("tabs-nav-toolbar-fs", cut.Markup);
4747

48-
cut.SetParametersAndRender(pb => pb.Add(a => a.ToolbarTemplate, builder => builder.AddContent(0, "test-toolbar-template")));
48+
cut.SetParametersAndRender(pb => pb.Add(a => a.ToolbarTemplate, tab => builder => builder.AddContent(0, "test-toolbar-template")));
4949
Assert.Contains("test-toolbar-template", cut.Markup);
5050

5151
cut.SetParametersAndRender(pb => pb.Add(a => a.ShowTabContextMenu, true));

test/UnitTest/Components/TabTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public void ToolbarTemplate_Ok()
6666
pb.Add(a => a.Icon, "fa-solid fa-font-awesome");
6767
pb.Add(a => a.ChildContent, "Tab1-Content");
6868
});
69-
pb.Add(a => a.ToolbarTemplate, builder => builder.AddContent(0, "test-toolbar-template"));
69+
pb.Add(a => a.ToolbarTemplate, tab => builder => builder.AddContent(0, "test-toolbar-template"));
7070
});
7171
cut.DoesNotContain("test-toolbar-template");
7272

@@ -765,10 +765,10 @@ public void ButtonTemplate_Ok()
765765
var cut = Context.RenderComponent<Tab>(pb =>
766766
{
767767
pb.Add(a => a.ShowExtendButtons, true);
768-
pb.Add(a => a.ButtonTemplate, new RenderFragment(builder =>
768+
pb.Add(a => a.ButtonTemplate, tab => builder =>
769769
{
770770
builder.AddContent(0, new MarkupString("<div>test-button</div>"));
771-
}));
771+
});
772772
});
773773
cut.Contains("<div>test-button</div>");
774774
}
@@ -1034,8 +1034,8 @@ public void BeforeNavigatorTemplate_Ok()
10341034
{
10351035
pb.AddChildContent<Tab>(pb =>
10361036
{
1037-
pb.Add(a => a.BeforeNavigatorTemplate, builder => builder.AddContent(0, "before-navigator-template"));
1038-
pb.Add(a => a.AfterNavigatorTemplate, builder => builder.AddContent(0, "after-navigator-template"));
1037+
pb.Add(a => a.BeforeNavigatorTemplate, tab => builder => builder.AddContent(0, "before-navigator-template"));
1038+
pb.Add(a => a.AfterNavigatorTemplate, tab => builder => builder.AddContent(0, "after-navigator-template"));
10391039
pb.AddChildContent<TabItem>(pb =>
10401040
{
10411041
pb.Add(a => a.ShowFullScreen, true);

0 commit comments

Comments
 (0)