OSDN Git Service

Fixed MonkeyRunner documentation
authorMichael Wright <michaelwr@google.com>
Thu, 9 Jun 2011 22:36:39 +0000 (15:36 -0700)
committerMichael Wright <michaelwr@google.com>
Thu, 9 Jun 2011 22:48:33 +0000 (15:48 -0700)
MonkeyRunner's documentation previously had an out of date enum value in
the sample code. This has been updated.

Change-Id: If725815ee578aab8cd59ef17706ea8de7973d4c1

docs/html/guide/developing/tools/monkeyrunner_concepts.jd

index c0795d7..499b610 100644 (file)
@@ -125,7 +125,7 @@ runComponent = package + '/' + activity
 device.startActivity(component=runComponent)
 
 # Presses the Menu button
-device.press('KEYCODE_MENU','DOWN_AND_UP')
+device.press('KEYCODE_MENU', MonkeyDevice.DOWN_AND_UP)
 
 # Takes a screenshot
 result = device.takeSnapshot()