diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt new file mode 100644 index 000000000000..6310a60563dc --- /dev/null +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/toolwindows/ProfilerToolWindowUi.kt @@ -0,0 +1,14 @@ +package com.intellij.driver.sdk.ui.components.common.toolwindows + +import com.intellij.driver.sdk.ui.components.ComponentData +import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI + +fun IdeaFrameUI.profilerToolWindow(action: ProfilerToolWindowUi.() -> Unit = {}): ProfilerToolWindowUi = + x(ProfilerToolWindowUi::class.java) { + componentWithChild( + byClass("InternalDecoratorImpl"), + byAccessibleName("Profiler") + ) + }.apply(action) + +class ProfilerToolWindowUi(data: ComponentData) : ToolWindowUiComponent(data) \ No newline at end of file diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt deleted file mode 100644 index 4d5b18dec48d..000000000000 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/python/ProfilerToolWindowUi.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.intellij.driver.sdk.ui.components.python - -import com.intellij.driver.sdk.ui.components.ComponentData -import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI -import com.intellij.driver.sdk.ui.components.common.toolwindows.ToolWindowUiComponent - -fun IdeaFrameUI.profilerToolWindow(func: ProfilerToolWindowUi.() -> Unit = {}) = - x(ProfilerToolWindowUi::class.java) { componentWithChild(byClass("InternalDecoratorImpl"), byAccessibleName("Profiler")) }.apply(func) - -class ProfilerToolWindowUi(data: ComponentData) : ToolWindowUiComponent(data) \ No newline at end of file