package com.opera.core.systems;

import java.util.List;

import org.junit.Test;

import com.opera.core.systems.scope.protos.SystemInputProtos.ModifierPressed;

public class QuickWidgetTest extends DesktopTestBase {
    @Test
    public void testSomething(){
    	driver.waitStart();
       // driver.operaDesktopAction("Open url in new page", "1");
    	driver.keyPress("t", ModifierPressed.CTRL);
    	System.out.println("Done keypress");
        //driver.waitForWindowShown("");
        //driver.close();

        int win_id = driver.waitForWindowShown("");
        System.out.println("Window shown = " + win_id);
        System.out.println("Window name = " + driver.getWindowName(win_id));
        List<QuickWindow> windows = driver.getWindowList();
        QuickWindow window = driver.getWindow("Document window");
        List<QuickWidget> list = driver.getQuickWidgetList("Document window");

    }
}

@@ -26,16 +26,44 @@
 stems;%0A%0A
+import java.util.ArrayList;%0A
 import j
@@ -240,18 +240,16 @@
 e %7B%0A
-  
   @Test%0A
     
@@ -244,18 +244,16 @@
   @Test%0A
-  
   public
@@ -277,15 +277,15 @@
 ng()
+ 
 %7B%0A    
-%09
 driv
@@ -304,79 +304,127 @@
 ();%0A
+%0A
     
-   // driver.operaDesktopAction(%22Open url in new page%22, %221%22
+List%3CModifierPressed%3E modifiers = new ArrayList%3CModifierPressed%3E();%0A    modifiers.add(ModifierPressed.CTRL
 );%0A
+%0A
     
-%09
 driv
@@ -444,36 +444,24 @@
 t%22, 
-M
+m
 odifier
-Pressed.CTRL
+s
 );%0A    
-%09
 Syst
@@ -489,34 +489,31 @@
 keypress%22);%0A
-    
     //
+ 
 driver.waitF
@@ -535,18 +535,15 @@
 %22);%0A
-    
     //
+ 
 driv
@@ -555,20 +555,16 @@
 ose();%0A%0A
-    
     int 
@@ -599,28 +599,24 @@
 wShown(%22%22);%0A
-    
     System.o
@@ -655,20 +655,16 @@
 in_id);%0A
-    
     Syst
@@ -728,20 +728,43 @@
 n_id));%0A
+%0A
     
+// FIXME add asserts%0A%0A
     List
@@ -811,20 +811,16 @@
 List();%0A
-    
     Quic
@@ -873,20 +873,16 @@
 ndow%22);%0A
-    
     List
@@ -949,16 +949,14 @@
 dow%22);%0A%0A
-  
   %7D%0A%7D%0A

Reformat and correct keyPress call