fix(windows): accept successful tray readiness HRESULTs
This commit is contained in:
1 parent
ae5e979761
commit
0735908ca9
7 files changed
+71
-2
No files matched your search
@@ -239,6 +239,19 @@ func TestNativeTrayIconLayout_HP_WINTRAY_03(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestNativeInstalledTrayReadiness_BH_WINTRAY_07(t *testing.T) {
|
||||
class, _ := winapi.UTF16PtrFromString("RVBoxTrayWindowV1")
|
||||
hwnd, _, _ := procFindWindow.Call(uintptr(unsafe.Pointer(class)), 0)
|
||||
if hwnd == 0 {
|
||||
t.Skip("requires an installed tray on this interactive desktop")
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
|
||||
defer cancel()
|
||||
if err := WaitReady(ctx); err != nil {
|
||||
t.Fatalf("existing installed icon was falsely reported unready: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNativeTrayWindowLifecycle_HP_WINTRAY_04(t *testing.T) {
|
||||
var session uint32
|
||||
if err := winapi.ProcessIdToSessionId(winapi.GetCurrentProcessId(), &session); err != nil {
|
||||
|
||||
Reference in new issue
Block a user