| //////////////////////////////////////////////////////////////////////////////// |
| // |
| // 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 |
| { |
| import org.apache.royale.test.TestRunner; |
| import org.apache.royale.test.events.TestEvent; |
| import org.apache.royale.test.listeners.TraceListener; |
| import tests.ScopeTests; |
| import tests.DetectMetadataTests; |
| |
| public class NodeTests |
| { |
| public function NodeTests() |
| { |
| this._runner = new TestRunner(); |
| new TraceListener(this._runner); |
| this._runner.addEventListener(TestEvent.TEST_RUN_COMPLETE, runner_testRunCompleteHandler); |
| this._runner.addEventListener(TestEvent.TEST_RUN_FAIL, runner_testRunFailHandler); |
| this._runner.run(new <Class> |
| [ |
| DetectMetadataTests, |
| ScopeTests, |
| ]); |
| } |
| |
| private var _runner:TestRunner; |
| |
| private function runner_testRunCompleteHandler(event:TestEvent):void |
| { |
| process.exit(0); |
| } |
| |
| private function runner_testRunFailHandler(event:TestEvent):void |
| { |
| process.exit(1); |
| } |
| } |
| } |