We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5704387 commit f727783Copy full SHA for f727783
src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_WebView2.cs
@@ -40,13 +40,14 @@ public async Task When_InvokeScriptAsync()
40
// may be set to true too early on wasm.
41
color = await webView.ExecuteScriptAsync(
42
"""
43
- let testElement = document.getElementById('test');
44
- let returnValue = "";
45
- if(testElement){
46
- returnValue = testElement.style.backgroundColor.toString();
47
- }
48
-
49
- returnValue;
+ func () => {
+ let testElement = document.getElementById('test');
+ let returnValue = "";
+ if(testElement){
+ return returnValue = testElement.style.backgroundColor.toString();
+ }
+ return "";
50
+ }()
51
""");
52
53
} while (sw.Elapsed < TimeSpan.FromSeconds(5) && string.IsNullOrEmpty(color));
0 commit comments