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.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
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 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
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
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 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
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 org.mockolate.issues | |
{ | |
import flash.events.Event; | |
import flash.events.IEventDispatcher; | |
import mockolate.ingredients.Sequence; | |
import mockolate.runner.MockolateRule; | |
import mockolate.sequence; | |
public class SequencingExample |
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 org.mockolate.issues | |
{ | |
import flash.external.ExternalInterface; | |
public class JSBridge | |
{ | |
private static var instance:JSBridge; | |
private static var allowInstantionation:Boolean; | |
public static function getInstance():JSBridge |