protractor: support multiCapabilities
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Sun, 9 Oct 2016 21:21:40 +0000 (00:21 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Sun, 9 Oct 2016 21:21:40 +0000 (00:21 +0300)
platform/smRunner/src/com/intellij/execution/testframework/sm/runner/GeneralIdBasedToSMTRunnerEventsConvertor.java

index 5a3dd7d461da25fceafb0db3874849252bed2366..b44fb0208ec1c02553cc85aa3193ece9790f1fca 100644 (file)
@@ -374,6 +374,18 @@ public class GeneralIdBasedToSMTRunnerEventsConvertor extends GeneralTestEventsP
     return myRunningTestNodes.iterator().next();
   }
 
+  @Override
+  public void onRootPresentationAdded(final String rootName, final String comment, final String rootLocation) {
+    addToInvokeLater(() -> {
+      myTestsRootProxy.setPresentation(rootName);
+      myTestsRootProxy.setComment(comment);
+      myTestsRootProxy.setRootLocationUrl(rootLocation);
+      if (myLocator != null) {
+        myTestsRootProxy.setLocator(myLocator);
+      }
+    });
+  }
+
   private enum State {
     NOT_RUNNING, RUNNING, FINISHED, FAILED, IGNORED
   }