This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Graphics; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.MouseEvent; | |
[SWF(width="500", height="500", backgroundColor="#000000")] | |
public class MouseEventKeyboardModifiers extends Sprite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mockolate.example | |
{ | |
import flash.events.Event; | |
import flash.net.FileReference; | |
import mockolate.mock; | |
import mockolate.runner.MockolateRunner; | |
import org.flexunit.async.Async; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Expected: <0> invocations of namespacedMethod | |
but: ClassWithNamespaces(proxied).namespacedMethod | |
at global/assertThatMatcher(assertThatMatcher.as:42) | |
at global/org.hamcrest::assertThat(assertThat.as:44) | |
**[ at mockolate.issues.issue42::ExplictlyDefineNamespaceToProxyTest/proxied_shouldNotInterceptProxiedNamespaces(ExplictlyDefineNamespaceToProxyTest.as:25) ] | |
...removed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example | |
{ | |
import flash.events.Event; | |
import mockolate.mock; | |
import mockolate.nice; | |
import mockolate.prepare; | |
import org.flexunit.assertThat; | |
import org.flexunit.async.Async; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.iorad.flexclient.command | |
{ | |
public class GetUserServiceTest | |
{ | |
[Rule] | |
public var mocks:MockolateRule = new MockolateRule(); | |
[Mock] | |
public var webService:WebService; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExternalInterface.addCallback("phoneHome", function(value) { | |
trace("phoneHome", value); | |
}); | |
ExternalInterface.call("callFlashBackInXSeconds", ExternalInterface.objectID, 3000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mockolate.example | |
{ | |
import flash.events.Event; | |
import mockolate.mock; | |
import mockolate.runner.MockolateRule; | |
import org.flexunit.assertThat; | |
import org.hamcrest.object.isFalse; | |
import org.hamcrest.object.isTrue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package example { | |
public class ContextExampleTest { | |
private var calculator:Calculator; | |
private var multiplier:uint; | |
private function withCalculator():void { | |
calculator = new Calculator(); | |
} | |
private function withMultiplier():void { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mockolate.examples | |
{ | |
public class MockolateFlexUnitAsyncPrepareExample | |
{ | |
public var command:CreateOrUpdateConstituentCommand; | |
public var constituent:Constituent; | |
public var constituentModel:IConstituentModel; | |
[Before(order=1, async)] | |
public function prepareMocks():void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package asunit.printers { | |
import asunit.framework.IResult; | |
import asunit.framework.IRunListener; | |
import asunit.framework.ITestFailure; | |
import asunit.framework.ITestSuccess; | |
import asunit.framework.ITestWarning; | |
import asunit.framework.Method; | |
import flash.display.Shape; |