Skip to content

Commit

Permalink
chore: Fix more errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Jan 15, 2025
1 parent f502fff commit ab80188
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ await RunOnUIThread.ExecuteAsync(async () =>
});
}

public async Task ValidateTemplateSwitchingRefreshesElements(Layout layout)
private async Task ValidateTemplateSwitchingRefreshesElements(Layout layout)
{
var dataTemplate1 = (DataTemplate)XamlReader.Load(
@"<DataTemplate xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace Microsoft.UI.Xaml.Tests.MUXControls.ApiTests.RepeaterTests
[TestClass]
public class RecyclePoolTests : MUXApiTestBase
{

[TestMethod]
public void ValidateElementsHaveCorrectKeys()
{
RunOnUIThread.Execute(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public void CanQueryElementFactory()
});
}

// [TestMethod] Issue #1018
[TestMethod] // Issue #1018
[Ignore]
public async Task CanPinFocusedElements()
{
// Setup a grouped repeater scenario with two groups each containing two items.
Expand Down Expand Up @@ -191,7 +192,8 @@ public async Task CanPinFocusedElements()
});
}

// [TestMethod] Issue 1018
[TestMethod] // Issue 1018
[Ignore]
public async Task CanReuseElementsDuringUniqueIdReset()
{
var data = new WinRTCollection(Enumerable.Range(0, 2).Select(i => string.Format("Item #{0}", i)));
Expand Down Expand Up @@ -678,7 +680,8 @@ public void ValidateDataContextGetsPropagated()
});
}

// [TestMethod] Issue 1018
[TestMethod] // Issue 1018
[Ignore]
public async Task ValidateFocusMoveOnElementCleared()
{
CustomItemsSource dataSource = null;
Expand Down Expand Up @@ -721,7 +724,8 @@ await SharedHelpers.RunActionsWithWait(
});
}

// [TestMethod] Issue 1018
[TestMethod] // Issue 1018
[Ignore]
public async Task ValidateFocusMoveOnElementClearedWithUniqueIds()
{
CustomItemsSource dataSource = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public void ValidateNoScrollingSurfaceScenario()
});
}

// [TestMethod] Temporarily disabled for bug 18866003
[TestMethod] // Temporarily disabled for bug 18866003
[Ignore]
public async Task ValidateItemsRepeaterScrollHostScenario()
{
var realizationRects = new List<Rect>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ public async Task ItemsControl_HeaderFooter_NoTP_DynamicXaml()
await ItemsControl_HeaderFooter_NoTP(sut, sut);
}

[TestMethod]
public async Task ItemsControl_HeaderFooter_NoTP(FrameworkElement setup, ItemsControl sut)
{
await UITestHelper.Load(setup, x => x.IsLoaded);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Task When_Page_Loaded_Navigates_Without_Yield() =>
public Task When_Page_Loaded_Navigates_With_Yield() =>
When_Page_Loaded_Navigates_Inner(true);

public async Task When_Page_Loaded_Navigates_Inner(bool yield)
private async Task When_Page_Loaded_Navigates_Inner(bool yield)
{
var frame = new Frame();
TestServices.WindowHelper.WindowContent = frame;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void AssertEditorContents()
Assert.IsTrue(vm.Editors.All(e => !string.IsNullOrEmpty(e.Text)));
Assert.IsTrue(vm.Editors.All(e => e.IsChecked));
Assert.IsTrue(vm.Editors.All(e => e.IsOn));
Assert.IsTrue(!string.IsNullOrEmpty(textBox.Text));
Assert.IsFalse(string.IsNullOrEmpty(textBox.Text));
Assert.IsTrue(checkBox.IsChecked);
Assert.IsTrue(toggleSwitch.IsOn);
Assert.AreEqual(vm.CurrentEditor.IsChecked, checkBox.IsChecked);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ public async Task MultipleItemsSelected()
Assert.AreEqual(list.SelectedItems[1], child3);
}

[TestMethod]
public async Task NoItemSelectedMultiple()
{
var child1 = new ListViewItem
Expand Down

0 comments on commit ab80188

Please sign in to comment.