diff --git a/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XDebuggerAssertions.java b/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XDebuggerAssertions.java index 80aeaee89224..098e54c2c586 100644 --- a/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XDebuggerAssertions.java +++ b/platform/xdebugger-testFramework/src/com/intellij/xdebugger/XDebuggerAssertions.java @@ -248,17 +248,33 @@ public class XDebuggerAssertions extends XDebuggerTestUtil { public static void assertVariableTypeMatches(@NotNull XValue var, @Nullable String name, @Nullable @Language("RegExp") String typePattern) { - assertVariableTypeMatches(var, name, typePattern, XDebuggerTestUtil::waitFor); + assertVariableTypeMatches(var, name, typePattern, null); } public static void assertVariableTypeMatches(@NotNull XValue var, @Nullable String name, @Nullable @Language("RegExp") String typePattern, + @Nullable String value) { + assertVariableTypeMatches(var, name, typePattern, value, null); + } + + public static void assertVariableTypeMatches(@NotNull XValue var, + @Nullable String name, + @Nullable @Language("RegExp") String typePattern, + @Nullable String value, + @Nullable Boolean hasChildren) { + assertVariableTypeMatches(var, name, typePattern, value, hasChildren, null, XDebuggerTestUtil::waitFor); + } + + public static void assertVariableTypeMatches(@NotNull XValue var, + @Nullable String name, + @Nullable @Language("RegExp") String typePattern, + @Nullable String value, + @Nullable Boolean hasChildren, + @Nullable Icon icon, @NotNull BiFunction waitFunction) { XTestValueNode node = computePresentation(var, waitFunction); - if (name != null) { - assertEquals(name, node.myName); - } + assertVariable(node, name, null, value, hasChildren, icon); if (typePattern != null) { assertTrue("Expected type: " + typePattern + " Actual type: " + node.myType, node.myType != null && node.myType.matches(typePattern));