incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject svn commit: r1416111 - /incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
Date Sun, 02 Dec 2012 06:30:56 GMT
Author: aharui
Date: Sun Dec  2 06:30:55 2012
New Revision: 1416111

URL: http://svn.apache.org/viewvc?rev=1416111&view=rev
Log:
Apply Patch from FLEX-33281 from João Fernandes

Modified:
    incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml

Modified: incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml?rev=1416111&r1=1416110&r2=1416111&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
(original)
+++ incubator/flex/sdk/branches/develop/mustella/utilities/MustellaTestChooser/src/MustellaTestChooser.mxml
Sun Dec  2 06:30:55 2012
@@ -77,13 +77,13 @@ limitations under the License.
 						if (c != -1)
 							file = file.substr(0, c);
 					}
-					c = file.indexOf("/src/");
+					c = file.indexOf(File.separator + "src" + File.separator);
 					if (c != -1)
 						file = file.substr(c + 5);
-					c = file.lastIndexOf("/");
+					c = file.lastIndexOf(File.separator);
 					if (c != -1)
 						file = file.substring(0, c) + ':' + file.substr(c + 1);
-					file = file.replace(/\//g, ".");
+					file = file.replace(new RegExp("\\" + File.separator,"g"), ".");
 					modFiles[i] = file;
 				}
 				var runTests:Array = [];



Mime
View raw message