~tiagosh/unity-2d/fix-dash-cursor

« back to all changes in this revision

Viewing changes to tests/launcher/visual_verification.rb

  • Committer: Tarmac
  • Author(s): Albert Astals, Ugo Riboni, Michał Sawicz, Florian Boucault, LDS
  • Date: 2012-02-10 17:32:14 UTC
  • mfrom: (771.3.235 unity-2d-shell_trunk)
  • Revision ID: tarmac-20120210173214-eekg5uiqdb7gjza6
Merge launcher and dash into a common new QML scene: the shell.
 - Created a shell folder that holds both launcher and dash QML code, the C++ code for the single binary and a common folder with shared QML files
 - The shell occupies the whole screen but is shaped for input where it is transparent in order not to interfere with the rest of the windows
 - The shell binary, unity-2d-shell, has a -rootqml option that lets the user specify the QML file to load
 - Implement visibility behaviours in QML instead of C++
 - Do not use D-Bus anymore to communicate between the launcher and the dash
 - Remove the homebutton panel plugin
 - Make the strut setting reusable outside of Unity2dPanel
 - Make LauncherDropItem a FocusScope
 - Implement gesture handling in QML instead of C++

Known issues:
 - In non composited mode there is a 1px wide rectangle on the edge of the screen where the launcher is hidden. This is acceptable for the moment since XFixes barriers to show the launcher are in the plan and will get rid of this problem
 - HomeShortcuts.qml has a transparent Rectangle to fix alignment in RTL mode that causes QML warnings. This is acceptable since the Home lens is going away. Fixes: . Approved by .

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
  # Run once at the beginning of this test suite
32
32
  startup do
33
 
    $SUT.execute_shell_command 'killall unity-2d-launcher'
34
 
    $SUT.execute_shell_command 'killall unity-2d-launcher'
 
33
    $SUT.execute_shell_command 'killall unity-2d-shell'
 
34
    $SUT.execute_shell_command 'killall unity-2d-shell'
35
35
  end
36
36
  
37
37
  # Run once at the end of this test suite
41
41
  # Run before each test case begins
42
42
  setup do
43
43
    # Execute the application 
44
 
    @app = $SUT.run( :name => UNITY_2D_LAUNCHER, 
45
 
                         :arguments => "-testability", 
46
 
                         :sleeptime => 2 )
 
44
    @app = $SUT.run( :name => UNITY_2D_SHELL,
 
45
                     :arguments => "-testability",
 
46
                     :sleeptime => 2 )
47
47
  end
48
48
 
49
49
  # Run after each test case completes
50
50
  teardown do
51
51
    #@app.close        
52
52
    #Need to kill Launcher as it does not shutdown when politely asked
53
 
    $SUT.execute_shell_command 'pkill -nf unity-2d-launcher'
 
53
    $SUT.execute_shell_command 'pkill -nf unity-2d-shell'
54
54
  end
55
55
 
56
56
  #####################################################################################
69
69
  test "Check Dash Tile location in Launcher" do
70
70
    expected_image = pwd + 'verification/dash-tile.png'
71
71
    
72
 
    tile_list = @app.Unity2dPanel().LauncherList( :name => 'main' )
 
72
    tile_list = @app.Launcher().LauncherList( :name => 'main' )
73
73
  
74
74
    # Given the reference image, locate the matching visual in the LauncherList
75
75
    coordinates = tile_list.find_on_screen(expected_image, 4)