incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ftho...@apache.org
Subject svn commit: r1420973 - /incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as
Date Wed, 12 Dec 2012 21:09:41 GMT
Author: fthomas
Date: Wed Dec 12 21:09:40 2012
New Revision: 1420973

URL: http://svn.apache.org/viewvc?rev=1420973&view=rev
Log:
FLEX-33242 Fixed Mustella tests failed: when your computer language doesn't match the expected
localized error

Added:
    incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as   (with props)

Added: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as?rev=1420973&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as (added)
+++ incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as Wed Dec 12
21:09:40 2012
@@ -0,0 +1,23 @@
+package {
+    public class ErrorArray {
+        private var _parts:Array;
+
+        public function ErrorArray(parts:Array) {
+            _parts = parts;
+        }
+
+        public function get parts():Array {
+            return _parts;
+        }
+
+        /**
+         *  customize string representation
+         */
+        public function toString():String {
+            var s:String;
+            if (parts && parts.length > 0)
+                s = '"' + parts.join('"..."') + '"';
+            return s;
+        }
+    }
+}

Propchange: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/ErrorArray.as
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message