Merge lp:~brandontschaefer/unity/ap-test-fixes into lp:unity/5.0

Proposed by Brandon Schaefer
Status: Merged
Approved by: Thomi Richards
Approved revision: no longer in the source branch.
Merged at revision: 2371
Proposed branch: lp:~brandontschaefer/unity/ap-test-fixes
Merge into: lp:unity/5.0
Diff against target: 20 lines (+6/-0)
1 file modified
tests/autopilot/autopilot/utilities.py (+6/-0)
To merge this branch: bzr merge lp:~brandontschaefer/unity/ap-test-fixes
Reviewer Review Type Date Requested Status
Thomi Richards (community) Approve
Review via email: mp+111532@code.launchpad.net

Commit message

Fixes AP test, get_compiz_option wasn't included in utilities.

Description of the change

The AP test were broken because get_compiz_option wasn't backport as it was in the new autopilot project.

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/autopilot/utilities.py'
2--- tests/autopilot/autopilot/utilities.py 2012-02-28 00:01:33 +0000
3+++ tests/autopilot/autopilot/utilities.py 2012-06-22 04:04:25 +0000
4@@ -14,6 +14,7 @@
5
6
7 from Xlib import X, display, protocol
8+from compizconfig import Plugin, Setting
9
10 _display = display.Display()
11
12@@ -70,3 +71,8 @@
13 win = _display.screen().root
14 atom = win.get_full_property(_display.get_atom(_type), X.AnyPropertyType)
15 if atom: return atom.value
16+
17+def get_compiz_option(plugin_name, setting_name):
18+ plugin = Plugin(global_context, plugin_name)
19+ setting = Setting(plugin, setting_name)
20+ return setting.Value

Subscribers

People subscribed via source and target branches

to all changes: