~gerboland/unity-2d/testing-test

« back to all changes in this revision

Viewing changes to launcher/case1/tst_launcher_tooltip/test.py

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2011-11-08 21:38:17 UTC
  • Revision ID: renato.filho@canonical.com-20111108213817-mgouo7742x2tzdfy
Created unit test for tooltips.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
def main():
 
3
    #Start launcher application
 
4
    startApplication("unity-2d-launcher")
 
5
    snooze(1.0)
 
6
    
 
7
    #Make launcher visible
 
8
    #nativeType("<Alt+F1>")
 
9
    sendEvent("QMoveEvent", waitForObject(":_Unity2dPanel"), -31, 26, 0, 233)
 
10
    snooze(1.0)
 
11
    
 
12
    #Move mouser over thunderbird buttom
 
13
    mouseMove(findObject(":looseItem_Item"), 30, 30)
 
14
    
 
15
    #wait for tooltip
 
16
    snooze(1.0)
 
17
    
 
18
    #Check if tooltip is visible
 
19
    test.compare(findObject(":_LauncherContextualMenu_4").visible, True)
 
20
    
 
21
    #Move mouse over Bfb buttom
 
22
    mouseMove(findObject(":looseItem_Item_2"), 30, 30)
 
23
    snooze(1.0)
 
24
    
 
25
    #Check if tooltip is invisible
 
26
    test.compare(findObject(":_LauncherContextualMenu_4").visible, False)
 
27