Skip to content

Commit fdf044a

Browse files
committed
test: 增加阻止冒泡单元测试
1 parent 5b6e6e7 commit fdf044a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/UnitTest/Components/CheckboxListTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ public void Checkbox_Ok()
2727
Assert.DoesNotContain("is-label", cut.Markup);
2828
}
2929

30+
[Fact]
31+
public void StopPropagation_Ok()
32+
{
33+
var cut = Context.RenderComponent<Checkbox<string>>(builder =>
34+
{
35+
builder.Add(a => a.StopPropagation, true);
36+
});
37+
Assert.Contains("data-bb-stop-propagation=\"true\"", cut.Markup);
38+
}
39+
3040
[Fact]
3141
public async Task SyncStateCallback_Ok()
3242
{

0 commit comments

Comments
 (0)