directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1807185 - /directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Date Sun, 03 Sep 2017 23:41:01 GMT
Author: elecharny
Date: Sun Sep  3 23:41:01 2017
New Revision: 1807185

URL: http://svn.apache.org/viewvc?rev=1807185&view=rev
Log:
Ported some fixes from trunk (MAC shortcuts)

Modified:
    directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java

Modified: directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java?rev=1807185&r1=1807184&r2=1807185&view=diff
==============================================================================
--- directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
(original)
+++ directory/studio/branches/studio-value/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/bots/StudioBot.java
Sun Sep  3 23:41:01 2017
@@ -234,13 +234,27 @@ public class StudioBot
 
     public void navigationHistoryBack()
     {
-        new SWTBot().activeShell().pressShortcut( Keystrokes.ALT, Keystrokes.LEFT );
+        if ( SWTUtils.isMac() )
+        {
+            new SWTBot().activeShell().pressShortcut( Keystrokes.COMMAND, Keystrokes.ALT,
Keystrokes.LEFT );
+        }
+        else
+        {
+            new SWTBot().activeShell().pressShortcut( Keystrokes.ALT, Keystrokes.LEFT );
+        }
     }
 
 
     public void navigationHistoryForward()
     {
-        new SWTBot().activeShell().pressShortcut( Keystrokes.ALT, Keystrokes.RIGHT );
+        if ( SWTUtils.isMac() )
+        {
+            new SWTBot().activeShell().pressShortcut( Keystrokes.COMMAND, Keystrokes.ALT,
Keystrokes.RIGHT );
+        }
+        else
+        {
+            new SWTBot().activeShell().pressShortcut( Keystrokes.ALT, Keystrokes.RIGHT );
+        }
     }
 
 }



Mime
View raw message