You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by yi...@apache.org on 2016/10/06 09:33:40 UTC
[05/27] git commit: [flex-asjs] [refs/heads/refactor-sprite] - Tidy
up, removed dead files
Tidy up, removed dead files
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/5b6f4ec9
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/5b6f4ec9
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/5b6f4ec9
Branch: refs/heads/refactor-sprite
Commit: 5b6f4ec9ac9dca542683077a631cb4167cc72154
Parents: 0960376
Author: greg-dove <gr...@gmail.com>
Authored: Thu Sep 29 06:01:03 2016 +1300
Committer: greg-dove <gr...@gmail.com>
Committed: Thu Sep 29 06:01:03 2016 +1300
----------------------------------------------------------------------
.../testsview/src/GenericTestsContainer.mxml | 32 -----
.../testsview/src/MyInitialView.mxml | 96 --------------
.../testsview/src/controllers/MyController.as | 52 --------
.../testsview/src/models/MyModel.as | 125 -------------------
.../testsview/src/models/TestResultsModel.as | 40 ------
5 files changed, 345 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b6f4ec9/manualtests/GenericTests/testsview/src/GenericTestsContainer.mxml
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/testsview/src/GenericTestsContainer.mxml b/manualtests/GenericTests/testsview/src/GenericTestsContainer.mxml
deleted file mode 100644
index 9f86bb6..0000000
--- a/manualtests/GenericTests/testsview/src/GenericTestsContainer.mxml
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!---
-//
-// 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.
-//
-////////////////////////////////////////////////////////////////////////////////
--->
-<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:local="*"
- xmlns:js="library://ns.apache.org/flexjs/basic"
- >
-
- <js:valuesImpl>
- <js:SimpleCSSValuesImpl />
- </js:valuesImpl>
- <js:initialView>
- <local:MyInitialView />
- </js:initialView>
-</js:Application>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b6f4ec9/manualtests/GenericTests/testsview/src/MyInitialView.mxml
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/testsview/src/MyInitialView.mxml b/manualtests/GenericTests/testsview/src/MyInitialView.mxml
deleted file mode 100644
index bee6823..0000000
--- a/manualtests/GenericTests/testsview/src/MyInitialView.mxml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-
-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.
-
--->
-<js:View xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:js="library://ns.apache.org/flexjs/basic"
- xmlns:local="*"
- xmlns:acc="org.apache.flex.html.accessories.*"
- className="viewStyles">
-
- <fx:Style>
- .title {
- font-size: 14pt;
- font-weight: bold;
- }
-
- .viewStyles {
- font-family: Arial,sans-serif;
- color: #333;
- background: #f5f5f5;
- font-size: 14px;
- line-height: 1.5;
- }
-
- .h1 {
- font-size: 28px;
- line-height: 1.25;
- font-weight: normal;
- }
-
- </fx:Style>
-
- <fx:Script>
- <![CDATA[
- import org.apache.flex.core.IPopUpHost;
- import org.apache.flex.events.Event;
- import org.apache.flex.utils.UIUtils;
- import org.apache.flex.events.EventDispatcher;
-
- import org.apache.flex.reflection.describeType;
- import org.apache.flex.reflection.getDefinitionByName;
- import org.apache.flex.reflection.MetaDataArgDefinition;
- import org.apache.flex.reflection.MetaDataDefinition;
- import org.apache.flex.reflection.MethodDefinition;
- import org.apache.flex.reflection.TypeDefinition;
- import org.apache.flex.reflection.VariableDefinition;
-
- import testclasses.TestClass1;
- import testclasses.TestClass2;
- import testclasses.ITestInterface;
- import testclasses.ITestInterface2;
- import testclasses.ITestInterface3;
-
-
-
-
- ]]>
- </fx:Script>
- <js:beads>
- <js:ViewDataBinding/>
- <js:HorizontalLayout />
- </js:beads>
- <js:Container id="cont" width="100%" height="700" x="0" y="0">
- <js:beads>
- <js:VerticalLayout />
- </js:beads>
- <js:Container id="header" width="100%" height="100" x="0" y="0">
- <js:beads>
- <js:HorizontalLayout />
- </js:beads>
- <js:Label text="FlexJS Framework Development Unit Tests" className="h1" />
- </js:Container>
- <js:Container id="tests" width="100%" height="100%" x="0" y="100">
- <js:beads>
- <js:HorizontalLayout />
- </js:beads>
-
- </js:Container>
- </js:Container>
-
-</js:View>
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b6f4ec9/manualtests/GenericTests/testsview/src/controllers/MyController.as
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/testsview/src/controllers/MyController.as b/manualtests/GenericTests/testsview/src/controllers/MyController.as
deleted file mode 100644
index 43622ff..0000000
--- a/manualtests/GenericTests/testsview/src/controllers/MyController.as
+++ /dev/null
@@ -1,52 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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 controllers
-{
- import org.apache.flex.events.Event;
-
- import org.apache.flex.core.Application;
- import org.apache.flex.core.IDocument;
-
- import models.MyModel;
-
- public class MyController implements IDocument
- {
- public function MyController(app:Application = null)
- {
- if (app)
- {
- this.app = app as GenericTests;
- app.addEventListener("viewChanged", viewChangeHandler);
- }
- }
-
- private var app:GenericTests;
-
- private function viewChangeHandler(event:Event):void
- {
- }
-
- public function setDocument(document:Object, id:String = null):void
- {
- this.app = document as GenericTests;
- app.addEventListener("viewChanged", viewChangeHandler);
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b6f4ec9/manualtests/GenericTests/testsview/src/models/MyModel.as
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/testsview/src/models/MyModel.as b/manualtests/GenericTests/testsview/src/models/MyModel.as
deleted file mode 100644
index 5a16d02..0000000
--- a/manualtests/GenericTests/testsview/src/models/MyModel.as
+++ /dev/null
@@ -1,125 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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 models
-{
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
-
- public class MyModel extends EventDispatcher
- {
- public function MyModel()
- {
- }
-
- private var _requestedField:String = "Ask";
-
- [Bindable("requestedFieldChanged")]
- public function get requestedField():String
- {
- return _requestedField;
- }
-
- public function set requestedField(value:String):void
- {
- if (value != _requestedField)
- {
- _requestedField = value;
- dispatchEvent(new Event("requestedFieldChanged"));
- if (_responseData)
- dispatchEvent(new Event("responseTextChanged"));
- }
- }
-
- [Bindable("responseTextChanged")]
- public function get responseText():String
- {
- if (_responseData == null)
- return "";
- if (_responseData == "No Data")
- return _responseData as String;
- var s:String = _responseData[_requestedField];
- if (s == null)
- {
- if (_requestedField == "Ask")
- s = _responseData["Bid"];
- }
- return s;
- }
-
- private var _responseData:Object;
-
- [Bindable("responseDataChanged")]
- public function get responseData():Object
- {
- return _responseData;
- }
-
- public function set responseData(value:Object):void
- {
- if (value != _responseData)
- {
- _responseData = value;
- _allData = "";
- dispatchEvent(new Event("responseDataChanged"));
- dispatchEvent(new Event("responseTextChanged"));
- }
- }
-
- private var _allData:String = "";
-
- [Bindable("responseDataChanged")]
- public function get allData():String
- {
- if (_allData == "" && _responseData != null)
- {
- for (var p:String in _responseData)
- {
- _allData += p + ": " + _responseData[p] + "\n";
- }
- }
- return _allData;
- }
-
-
- private var _stockSymbol:String;
-
- [Bindable("stockSymbolChanged")]
- public function get stockSymbol():String
- {
- return _stockSymbol;
- }
-
- public function set stockSymbol(value:String):void
- {
- if (value != _stockSymbol)
- {
- _stockSymbol = value;
- dispatchEvent(new Event("stockSymbolChanged"));
- }
- }
-
- private var _strings:Array = ["AAPL", "ADBE", "GOOG", "MSFT", "YHOO"];
- [Bindable("__NoChangeEvent__")]
- public function get strings():Array
- {
- return _strings;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/5b6f4ec9/manualtests/GenericTests/testsview/src/models/TestResultsModel.as
----------------------------------------------------------------------
diff --git a/manualtests/GenericTests/testsview/src/models/TestResultsModel.as b/manualtests/GenericTests/testsview/src/models/TestResultsModel.as
deleted file mode 100644
index eedbf54..0000000
--- a/manualtests/GenericTests/testsview/src/models/TestResultsModel.as
+++ /dev/null
@@ -1,40 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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 models
-{
- import org.apache.flex.events.Event;
- import org.apache.flex.events.EventDispatcher;
-
- public class TestResultsModel extends EventDispatcher
- {
- public function TestResultsModel()
- {
- }
-
- [Bindable]
- public var completedTests:ArrayList = new ArrayList([]);
-
- public function addCompletedTest(testObj:Object):void{
- completedTests.
- }
-
-
-
- }
-}
\ No newline at end of file