Skip to content

Commit

Permalink
Added reference to the context to base TestCase class for Flex/Flash …
Browse files Browse the repository at this point in the history
…apps.
  • Loading branch information
mde committed Oct 9, 2009
1 parent f951787 commit 1948dad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flash/org/windmill/TestCase.as
Expand Up @@ -26,6 +26,9 @@ package org.windmill {
public var asserts:* = WMAssert;
public var waits:* = WMWait;
public var controller:* = ASTest.wrappedControllerMethods;
// Reference to either an Application (Flex)
// or the Stage (Flash)
public var context:* = Windmill.getContext();
// Get a reference to the Stage in the base class
// before the tests actually load so tests can all
// reference it
Expand Down

0 comments on commit 1948dad

Please sign in to comment.