Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions src/test/integration/UIIntegrationTests/ListViewTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ await InputSimulator.SendAsync(
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/11328")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/11328")]
public async Task ListView_Group_NavigateKeyboard_SucceedsAsync()
{
await RunTestAsync(async (form, listView) =>
Expand Down Expand Up @@ -109,7 +112,10 @@ await RunTestAsync(async (form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(2, 2, 150, 150, 0, 1, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(4, 3, 150, 150, 0, 3, (int)NavigateDirection.NavigateDirection_LastChild)]
[InlineData(4, 1, 150, 150, 0, 1, (int)NavigateDirection.NavigateDirection_LastChild)]
Expand All @@ -132,7 +138,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(1, 0, 150, 150, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(1, 2, 150, 150, (int)NavigateDirection.NavigateDirection_FirstChild)]
[InlineData(2, 1, 10, 10, (int)NavigateDirection.NavigateDirection_FirstChild)]
Expand All @@ -153,7 +162,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1)]
[InlineData(2, 3)]
public async Task ListView_Tile_SubItem_FragmentNavigate_Sibling_ReturnsNullAsync(int columnCount, int subItemsCount)
Expand All @@ -173,7 +185,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 3, 150, 150, 3)]
[InlineData(4, 0, 150, 150, 0)]
[InlineData(4, 1, 150, 150, 1)]
Expand All @@ -195,7 +210,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1)]
[InlineData(2, 5)]
public async Task ListView_Tile_GetChildAsync(int columnCount, int subItemsCount)
Expand All @@ -215,7 +233,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 0, 150, 150)]
[InlineData(1, 2, 150, 150)]
[InlineData(2, 1, 10, 10)]
Expand All @@ -235,7 +256,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsTheory]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
[InlineData(4, 1, 150, 150, -1, 1)]
[InlineData(2, 1, 10, 10, -1, -1)]
public async Task ListView_Tile_GetChildIndex_ForDifferentSize_ReturnsExpectedAsync(int columnCount, int subItemsCount, int width, int height, int expected1, int expected2)
Expand All @@ -254,7 +278,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_NextSibling_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -275,7 +302,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_HitTest_ReturnExpectedAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -301,7 +331,10 @@ Point GetSubItemLocation(int itemIndex, int subItemIndex) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_Sibling_ReturnsNull_For_SmallSizeAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -319,7 +352,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_SubItem_FragmentNavigate_Child_ReturnsNullAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -336,7 +372,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChild_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -356,7 +395,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChild_ReturnsExpected_For_BigSizeAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -378,7 +420,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpectedAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -397,7 +442,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpected_SubItemsMoreThanColumnsAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -417,7 +465,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsMinusOne_For_Single_ColumnAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -434,7 +485,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_GetChildIndex_ReturnsExpected_For_BigSizeAsync()
{
await RunTestAsync((form, listView) =>
Expand All @@ -460,7 +514,10 @@ await RunTestAsync((form, listView) =>
});
}

[ActiveIssue("https://github.com/dotnet/winforms/issues/13291")]
[WinFormsFact]
[SkipOnArchitecture(TestArchitectures.X86 | TestArchitectures.X64,
"Flaky tests, see: https://github.com/dotnet/winforms/issues/13291")]
public async Task ListView_Tile_ColumnProperty_ReturnsMinusOneAsync()
{
await RunTestAsync((form, listView) =>
Expand Down