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, <[email protected]> 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"/> > > >
