You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2012/09/28 08:03:36 UTC

svn commit: r1391318 - in /incubator/flex/sdk/branches/develop/mustella: as3/src/mustella/Localhost8080.as build.xml

Author: aharui
Date: Fri Sep 28 06:03:36 2012
New Revision: 1391318

URL: http://svn.apache.org/viewvc?rev=1391318&view=rev
Log:
Add option to use localhost:8080 to get sub-swfs

Added:
    incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
Modified:
    incubator/flex/sdk/branches/develop/mustella/build.xml

Added: incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as?rev=1391318&view=auto
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as (added)
+++ incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as Fri Sep 28 06:03:36 2012
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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 {
+
+import flash.display.DisplayObject;
+import flash.net.*;
+import flash.events.Event;
+
+[Mixin]
+/**
+ *  A "marker" class that causes test scripts to write out
+ *  bitmaps to the urls instead of reading and comparing
+ *  so that baselines/reference-points can be created for
+ *  future comparing.
+ */
+public class Localhost8080
+{
+
+	/**
+	 *  Mixin callback that gets everything ready to go.
+	 *  The UnitTester waits for an event before starting
+	 */
+	public static function init(root:DisplayObject):void
+	{
+		UnitTester.portNumber = 8080;
+	}
+
+
+}
+}

Modified: incubator/flex/sdk/branches/develop/mustella/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/build.xml?rev=1391318&r1=1391317&r2=1391318&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/build.xml (original)
+++ incubator/flex/sdk/branches/develop/mustella/build.xml Fri Sep 28 06:03:36 2012
@@ -1025,8 +1025,8 @@
     
         <condition property="apollo_excludes" value="apollo/**/*.mxml" >
             <istrue value="${use_browser}" />
-        </condition>
     
+        </condition>
         <fileset id="sdk.mustella.fileset" dir="${sdk.mustella.dir}" 
             includes="${sdk.mustella.includes}" 
             excludes="${sdk.mustella.excludes},**/baselines/,**/Baselines/,**/comps/*.mxml,**/Assets/**/*.swf,**/assets/**/*.swf, ${browser_excludes},${apollo_excludes},${other.mustella.excludes},${apollo_specific_excludes}" >
@@ -1749,6 +1749,7 @@
             <arg value="ExitWhenDone"/>
             <arg value="IncludeListTextFile" />
             <arg value="IncludeFileLocation" />
+            <arg value="Localhost8080" />
             <arg value="MustellaPNGEncoder"/>
             <arg value="Pause"/>
             <arg value="ResetComponent"/>



Re: svn commit: r1391318 - in /incubator/flex/sdk/branches/develop/mustella: as3/src/mustella/Localhost8080.as build.xml

Posted by Alex Harui <ah...@adobe.com>.
../mini_run.sh -all -addArg=-includes=Localhost8080


On 2/26/13 12:51 AM, "Om" <bi...@gmail.com> wrote:

> How would I use this option?  I want to make mustella look at
> localhost:8080 for the tests.
> 
> Thanks,
> Om
> 
> On Thu, Sep 27, 2012 at 11:03 PM, <ah...@apache.org> wrote:
> 
>> Author: aharui
>> Date: Fri Sep 28 06:03:36 2012
>> New Revision: 1391318
>> 
>> URL: http://svn.apache.org/viewvc?rev=1391318&view=rev
>> Log:
>> Add option to use localhost:8080 to get sub-swfs
>> 
>> Added:
>> 
>> 
incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.a>>
s
>> Modified:
>>     incubator/flex/sdk/branches/develop/mustella/build.xml
>> 
>> Added:
>> 
incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.a>>
s
>> URL:
>> http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3
>> /src/mustella/Localhost8080.as?rev=1391318&view=auto
>> 
>> 
=============================================================================>>
=
>> ---
>> 
incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.a>>
s
>> (added)
>> +++
>> 
incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.a>>
s
>> Fri Sep 28 06:03:36 2012
>> @@ -0,0 +1,46 @@
>> 
>> +////////////////////////////////////////////////////////////////////////////
>> ////
>> +//
>> +//  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 {
>> +
>> +import flash.display.DisplayObject;
>> +import flash.net.*;
>> +import flash.events.Event;
>> +
>> +[Mixin]
>> +/**
>> + *  A "marker" class that causes test scripts to write out
>> + *  bitmaps to the urls instead of reading and comparing
>> + *  so that baselines/reference-points can be created for
>> + *  future comparing.
>> + */
>> +public class Localhost8080
>> +{
>> +
>> +       /**
>> +        *  Mixin callback that gets everything ready to go.
>> +        *  The UnitTester waits for an event before starting
>> +        */
>> +       public static function init(root:DisplayObject):void
>> +       {
>> +               UnitTester.portNumber = 8080;
>> +       }
>> +
>> +
>> +}
>> +}
>> 
>> Modified: incubator/flex/sdk/branches/develop/mustella/build.xml
>> URL:
>> http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/bui
>> ld.xml?rev=1391318&r1=1391317&r2=1391318&view=diff
>> 
>> 
=============================================================================>>
=
>> --- incubator/flex/sdk/branches/develop/mustella/build.xml (original)
>> +++ incubator/flex/sdk/branches/develop/mustella/build.xml Fri Sep 28
>> 06:03:36 2012
>> @@ -1025,8 +1025,8 @@
>> 
>>          <condition property="apollo_excludes" value="apollo/**/*.mxml" >
>>              <istrue value="${use_browser}" />
>> -        </condition>
>> 
>> +        </condition>
>>          <fileset id="sdk.mustella.fileset" dir="${sdk.mustella.dir}"
>>              includes="${sdk.mustella.includes}"
>> 
>>  
>> excludes="${sdk.mustella.excludes},**/baselines/,**/Baselines/,**/comps/*.mxm
>> l,**/Assets/**/*.swf,**/assets/**/*.swf,
>> ${browser_excludes},${apollo_excludes},${other.mustella.excludes},${apollo_sp
>> ecific_excludes}"
>>> 
>> @@ -1749,6 +1749,7 @@
>>              <arg value="ExitWhenDone"/>
>>              <arg value="IncludeListTextFile" />
>>              <arg value="IncludeFileLocation" />
>> +            <arg value="Localhost8080" />
>>              <arg value="MustellaPNGEncoder"/>
>>              <arg value="Pause"/>
>>              <arg value="ResetComponent"/>
>> 
>> 
>> 

-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: svn commit: r1391318 - in /incubator/flex/sdk/branches/develop/mustella: as3/src/mustella/Localhost8080.as build.xml

Posted by Om <bi...@gmail.com>.
How would I use this option?  I want to make mustella look at
localhost:8080 for the tests.

Thanks,
Om

On Thu, Sep 27, 2012 at 11:03 PM, <ah...@apache.org> wrote:

> Author: aharui
> Date: Fri Sep 28 06:03:36 2012
> New Revision: 1391318
>
> URL: http://svn.apache.org/viewvc?rev=1391318&view=rev
> Log:
> Add option to use localhost:8080 to get sub-swfs
>
> Added:
>
> incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
> Modified:
>     incubator/flex/sdk/branches/develop/mustella/build.xml
>
> Added:
> incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
> URL:
> http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as?rev=1391318&view=auto
>
> ==============================================================================
> ---
> incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
> (added)
> +++
> incubator/flex/sdk/branches/develop/mustella/as3/src/mustella/Localhost8080.as
> Fri Sep 28 06:03:36 2012
> @@ -0,0 +1,46 @@
>
> +////////////////////////////////////////////////////////////////////////////////
> +//
> +//  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 {
> +
> +import flash.display.DisplayObject;
> +import flash.net.*;
> +import flash.events.Event;
> +
> +[Mixin]
> +/**
> + *  A "marker" class that causes test scripts to write out
> + *  bitmaps to the urls instead of reading and comparing
> + *  so that baselines/reference-points can be created for
> + *  future comparing.
> + */
> +public class Localhost8080
> +{
> +
> +       /**
> +        *  Mixin callback that gets everything ready to go.
> +        *  The UnitTester waits for an event before starting
> +        */
> +       public static function init(root:DisplayObject):void
> +       {
> +               UnitTester.portNumber = 8080;
> +       }
> +
> +
> +}
> +}
>
> Modified: incubator/flex/sdk/branches/develop/mustella/build.xml
> URL:
> http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/build.xml?rev=1391318&r1=1391317&r2=1391318&view=diff
>
> ==============================================================================
> --- incubator/flex/sdk/branches/develop/mustella/build.xml (original)
> +++ incubator/flex/sdk/branches/develop/mustella/build.xml Fri Sep 28
> 06:03:36 2012
> @@ -1025,8 +1025,8 @@
>
>          <condition property="apollo_excludes" value="apollo/**/*.mxml" >
>              <istrue value="${use_browser}" />
> -        </condition>
>
> +        </condition>
>          <fileset id="sdk.mustella.fileset" dir="${sdk.mustella.dir}"
>              includes="${sdk.mustella.includes}"
>
>  excludes="${sdk.mustella.excludes},**/baselines/,**/Baselines/,**/comps/*.mxml,**/Assets/**/*.swf,**/assets/**/*.swf,
> ${browser_excludes},${apollo_excludes},${other.mustella.excludes},${apollo_specific_excludes}"
> >
> @@ -1749,6 +1749,7 @@
>              <arg value="ExitWhenDone"/>
>              <arg value="IncludeListTextFile" />
>              <arg value="IncludeFileLocation" />
> +            <arg value="Localhost8080" />
>              <arg value="MustellaPNGEncoder"/>
>              <arg value="Pause"/>
>              <arg value="ResetComponent"/>
>
>
>