From 1948dad9bace1bb6cf90f38ae32156c735cb5e0a Mon Sep 17 00:00:00 2001 From: mde Date: Thu, 8 Oct 2009 18:21:34 -0700 Subject: [PATCH] Added reference to the context to base TestCase class for Flex/Flash apps. --- flash/org/windmill/TestCase.as | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flash/org/windmill/TestCase.as b/flash/org/windmill/TestCase.as index feff52dd..96398951 100644 --- a/flash/org/windmill/TestCase.as +++ b/flash/org/windmill/TestCase.as @@ -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