flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erikdebr...@apache.org
Subject [10/10] git commit: [flex-falcon] [refs/heads/develop] - Fixed some more tests to reflect the new location ('org.apache.flex.utils.Language') of the global language support functions.
Date Fri, 01 Nov 2013 11:33:23 GMT
Fixed some more tests to reflect the new location ('org.apache.flex.utils.Language') of the
global language support functions.

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/896b91b7
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/896b91b7
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/896b91b7

Branch: refs/heads/develop
Commit: 896b91b7d88da4556c446da7ff883a8279f1bef1
Parents: 7bebfd4
Author: Erik de Bruin <erik@ixsoftware.nl>
Authored: Fri Nov 1 09:51:12 2013 +0100
Committer: Erik de Bruin <erik@ixsoftware.nl>
Committed: Fri Nov 1 12:32:58 2013 +0100

----------------------------------------------------------------------
 .../test-files/flexjs/files/LocalFunction_result.js   |  2 +-
 .../test-files/flexjs/files/MyController_result.js    | 14 ++++++++++----
 .../test-files/flexjs/files/MyInitialView_result.js   |  4 ++--
 3 files changed, 13 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/896b91b7/compiler.jx.tests/test-files/flexjs/files/LocalFunction_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/LocalFunction_result.js b/compiler.jx.tests/test-files/flexjs/files/LocalFunction_result.js
index f416447..d8ae10c 100644
--- a/compiler.jx.tests/test-files/flexjs/files/LocalFunction_result.js
+++ b/compiler.jx.tests/test-files/flexjs/files/LocalFunction_result.js
@@ -20,7 +20,7 @@ LocalFunction.prototype.myMemberMethod = function(value) {
 	function myLocalFunction(value) {
 		return this.myMemberProperty + value;
 	};
-	trace("WOW! :: " + goog.bind(myLocalFunction, this)(value + 42));
+	org.apache.flex.utils.Language.trace("WOW! :: " + goog.bind(myLocalFunction, this)(value
+ 42));
 };
 
 /**

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/896b91b7/compiler.jx.tests/test-files/flexjs/files/MyController_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/MyController_result.js b/compiler.jx.tests/test-files/flexjs/files/MyController_result.js
index 1fb0156..0598619 100644
--- a/compiler.jx.tests/test-files/flexjs/files/MyController_result.js
+++ b/compiler.jx.tests/test-files/flexjs/files/MyController_result.js
@@ -8,7 +8,7 @@ goog.provide('controllers.MyController');
 controllers.MyController = function(app) {
 	app = typeof app !== 'undefined' ? app : null;
 	if (app) {
-		this.app = (is(app, FlexJSTest_again) ? app : null);
+		this.app = org.apache.flex.utils.Language.as(app, FlexJSTest_again);
 		app.addEventListener("viewChanged", goog.bind(this.viewChangeHandler, this));
 	}
 };
@@ -59,7 +59,7 @@ controllers.MyController.prototype.buttonClickHandler = function(event)
{
  * @param {org.apache.flex.events.Event} event
  */
 controllers.MyController.prototype.completeHandler = function(event) {
-	this.app.model/** Cast to models.MyModel */.set_labelText((is(this.app.get_collection().getItemAt(0),
String) ? this.app.get_collection().getItemAt(0) : null));
+	this.app.model/** Cast to models.MyModel */.set_labelText(org.apache.flex.utils.Language.as(this.app.get_collection().getItemAt(0),
String));
 };
 
 /**
@@ -101,6 +101,12 @@ controllers.MyController.prototype.comboBoxChangeHandler = function(event)
{
  */
 controllers.MyController.prototype.setDocument = function(document, id) {
 	id = typeof id !== 'undefined' ? id : null;
-	this.app = (is(document, FlexJSTest_again) ? document : null);
+	this.app = org.apache.flex.utils.Language.as(document, FlexJSTest_again);
 	this.app.addEventListener("viewChanged", goog.bind(this.viewChangeHandler, this));
-};
\ No newline at end of file
+};
+
+/**
+ * @const
+ */
+controllers.MyController.prototype.AFJS_INTERFACES = [org.apache.flex.core.IDocument];
+

http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/896b91b7/compiler.jx.tests/test-files/flexjs/files/MyInitialView_result.js
----------------------------------------------------------------------
diff --git a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_result.js b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_result.js
index 7667a63..2bebadd 100644
--- a/compiler.jx.tests/test-files/flexjs/files/MyInitialView_result.js
+++ b/compiler.jx.tests/test-files/flexjs/files/MyInitialView_result.js
@@ -186,7 +186,7 @@ MyInitialView.prototype.timer;
  * @return {string}
  */
 MyInitialView.prototype.get_symbol = function() {
-	return (is(this.get_list().get_selectedItem(), String) ? this.get_list().get_selectedItem()
: null);
+	return org.apache.flex.utils.Language.as(this.get_list().get_selectedItem(), String);
 };
 
 /**
@@ -194,7 +194,7 @@ MyInitialView.prototype.get_symbol = function() {
  * @return {string}
  */
 MyInitialView.prototype.get_city = function() {
-	return (is(this.get_cityList().get_selectedItem(), String) ? this.get_cityList().get_selectedItem()
: null);
+	return org.apache.flex.utils.Language.as(this.get_cityList().get_selectedItem(), String);
 };
 
 /**


Mime
View raw message