flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From josebarra...@apache.org
Subject [13/26] git commit: [flex-falcon] [refs/heads/experimental/VF2JS] - Added initial test + result files.
Date Thu, 10 Jul 2014 16:04:51 GMT
Added initial test + result files.

Signed-off-by: Erik de Bruin <erik@ixsoftware.nl>


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/395084ca
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/395084ca
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/395084ca

Branch: refs/heads/experimental/VF2JS
Commit: 395084ca4118be536fd59402c733b10f6e469182
Parents: b06dc88
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Mon Jun 30 13:22:01 2014 +0200
Committer: Jose Barragan <josebarragan@apache.org>
Committed: Thu Jul 10 18:03:29 2014 +0200

----------------------------------------------------------------------
 .../test-files/vf2js/files/Simple.mxml          |  4 +
 .../test-files/vf2js/files/Simple_result.js     | 93 ++++++++++++++++++++
 2 files changed, 97 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/395084ca/compiler.jx.tests/test-files/vf2js/files/Simple.mxml
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/files/Simple.mxml b/compiler.jx.tests/test-files/vf2js/files/Simple.mxml
new file mode 100644
index 0000000..b628a00
--- /dev/null
+++ b/compiler.jx.tests/test-files/vf2js/files/Simple.mxml
@@ -0,0 +1,4 @@
+<vf2js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+                   xmlns:vf2js="http://flex.apache.org/vf2js/ns"
+  <vf2js:Button label="hello" />
+</vf2js:Application>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/395084ca/compiler.jx.tests/test-files/vf2js/files/Simple_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/vf2js/files/Simple_result.js b/compiler.jx.tests/test-files/vf2js/files/Simple_result.js
new file mode 100644
index 0000000..3c23e6e
--- /dev/null
+++ b/compiler.jx.tests/test-files/vf2js/files/Simple_result.js
@@ -0,0 +1,93 @@
+/**
+ * Licensed 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.
+ */
+/**
+ * Simple
+ *
+ * @fileoverview
+ *
+ * @suppress {checkTypes}
+ */
+
+goog.provide('Simple');
+
+goog.require('vf2js.components.Application');
+goog.require('vf2js.components.Button');
+
+
+
+
+/**
+ * @constructor
+ * @extends {vf2js.components.Application}
+ */
+Simple = function() {
+  goog.base(this);
+  
+  /**
+   * @private
+   * @type {vf2js.components.Button}
+   */
+  this.$ID0;
+  
+  /**
+   * @private
+   * @type {Array}
+   */
+  this.mxmldd;
+  
+  /**
+   * @private
+   * @type {Array}
+   */
+  this.mxmldp;
+};
+goog.inherits(Simple, vf2js.components.Application);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+Simple.prototype.FLEXJS_CLASS_INFO = { names: [{ name: 'Simple', qName: 'Simple' }] };
+
+
+/**
+ * @override
+ * @return {Array} the Array of UI element descriptors.
+ */
+Simple.prototype.get_MXMLProperties = function()
+{
+  if (this.mxmldp == undefined)
+  {
+    /** @type {Array} */
+    var arr = goog.base(this, 'get_MXMLProperties');
+    /** @type {Array} */
+    var data = [
+1,
+'mxmlContentFactory',
+false,
+[vf2js.components.Button, 2, '_id', true, '$ID0', 'label', true, 'hello', 0, 0, null],
+0,
+0
+];
+  
+    if (arr)
+      this.mxmldp = arr.concat(data);
+    else
+      this.mxmldp = data;
+  }
+  return this.mxmldp;
+};
+


Mime
View raw message