[gnome-characters] tests: Adjust to the latest code changes



commit 8f0a53cfd5d882b091151076c5854c62a5227f0c
Author: Daiki Ueno <dueno src gnome org>
Date:   Mon Nov 24 17:06:47 2014 +0900

    tests: Adjust to the latest code changes

 tests/smoke_test.py |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/tests/smoke_test.py b/tests/smoke_test.py
index 38ceb9b..12a1fdf 100755
--- a/tests/smoke_test.py
+++ b/tests/smoke_test.py
@@ -17,10 +17,10 @@ def visible(widget):
     return widget.getState().contains(pyatspi.STATE_VISIBLE)
 
 PAGE_LABELS = [
-    'Punctuations',
+    'Punctuation',
     'Arrows',
     'Bullets',
-    'Picture',
+    'Pictures',
     'Currencies',
     'Math',
     'Latin',
@@ -64,7 +64,7 @@ try:
             assert not pages[label2].character_list.showing
 
     # character dialog
-    page = pages['Punctuations']
+    page = pages['Punctuation']
     page.button.click()
     x, y = page.character_list.position
     click(x + 10, y + 10)
@@ -72,12 +72,10 @@ try:
     character_dialog = app.children[-1]
     assert character_dialog.name == 'Exclamation Mark'
     see_also_button = character_dialog.child('See Also')
-    done_button = character_dialog.child('Done')
     assert see_also_button.showing
-    assert done_button.showing
 
     see_also_button.click()
-    done_button.click()
+    keyCombo('Escape')
 
     # recently used characters
     recently_used_page = Page(app, 'Recently Used')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]