-
Notifications
You must be signed in to change notification settings - Fork 760
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19535 from unoplatform/dev/mazi/dnd-init
fix: Drag and Drop initialization on mobile
- Loading branch information
Showing
3 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
src/Uno.UI.RuntimeTests/Tests/Uno_UI_Xaml_Core/Given_DragDrop.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Private.Infrastructure; | ||
|
||
namespace Uno.UI.RuntimeTests.Tests.Uno_UI_Xaml_Core; | ||
|
||
[TestClass] | ||
public class Given_DragDrop | ||
{ | ||
#if HAS_UNO // InputManager is internal. | ||
[TestMethod] | ||
[RunsOnUIThread] | ||
public void Verify_Initialized() | ||
{ | ||
var xamlRoot = TestServices.WindowHelper.XamlRoot; | ||
var contentRoot = xamlRoot.VisualTree.ContentRoot; | ||
Assert.IsNotNull(contentRoot.InputManager.DragDrop); | ||
} | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters