This is an automated email from the ASF dual-hosted git repository. aharui pushed a commit to branch feature/MXRoyale in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 10aa2300f777e8dc03854a2c4269dd204bedc6c8 Author: Alex Harui <[email protected]> AuthorDate: Thu Mar 22 12:02:18 2018 -0700 need custom context for mustella --- .../tests/mxtests/basicTests/BasicTests-config.xml | 1 + mustella/tests/mxtests/basicTests/RoyaleContext.as | 43 ++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/mustella/tests/mxtests/basicTests/BasicTests-config.xml b/mustella/tests/mxtests/basicTests/BasicTests-config.xml index 67ece0d..eb106d1 100644 --- a/mustella/tests/mxtests/basicTests/BasicTests-config.xml +++ b/mustella/tests/mxtests/basicTests/BasicTests-config.xml @@ -98,5 +98,6 @@ <symbol>ExitWhenDone</symbol> <symbol>SetShowRTE</symbol> <symbol>SendFormattedResultsToLog</symbol> + <symbol>RoyaleContext</symbol> </includes> </flex-config> diff --git a/mustella/tests/mxtests/basicTests/RoyaleContext.as b/mustella/tests/mxtests/basicTests/RoyaleContext.as new file mode 100644 index 0000000..1ffce6b --- /dev/null +++ b/mustella/tests/mxtests/basicTests/RoyaleContext.as @@ -0,0 +1,43 @@ +//////////////////////////////////////////////////////////////////////////////// +// +// Licensed to the Apache Software Foundation (ASF) under one or more +// contributor license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright ownership. +// The ASF licenses this file to You under the Apache License, Version 2.0 +// (the "License"); you may not use this file except in compliance with +// the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +//////////////////////////////////////////////////////////////////////////////// +package +{ + +[Mixin] +public class RoyaleContext +{ + public function RoyaleContext() + { + super(); + } + + public static function init(o:Object):void + { + UnitTester.contextFunction = contextFunction; + } + + public static function contextFunction():Object + { + return UnitTester._root; + } +} + + +} + -- To stop receiving notification emails like this one, please contact [email protected].
