You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/04/14 00:42:41 UTC
[50/64] [abbrv] git commit: [flex-flexunit] [refs/heads/master] -
Change header back to original copyright owner
Change header back to original copyright owner
Project: http://git-wip-us.apache.org/repos/asf/flex-flexunit/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-flexunit/commit/2b50aa4b
Tree: http://git-wip-us.apache.org/repos/asf/flex-flexunit/tree/2b50aa4b
Diff: http://git-wip-us.apache.org/repos/asf/flex-flexunit/diff/2b50aa4b
Branch: refs/heads/master
Commit: 2b50aa4b5777b19eb0afa73cebf121c4ba72ad09
Parents: e6436b8
Author: Justin Mclean <jm...@apache.org>
Authored: Fri Mar 28 11:00:46 2014 +1100
Committer: Justin Mclean <jm...@apache.org>
Committed: Fri Mar 28 11:00:46 2014 +1100
----------------------------------------------------------------------
.../flexUnit1/framework/AllFrameworkTests.as | 42 +++++++++++++-------
.../flexUnit1/framework/AsynchronousTestCase.as | 42 +++++++++++++-------
.../framework/AsynchronousValueDispatcher.as | 42 +++++++++++++-------
.../flexUnit1/framework/ErrorTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/FailureTestCase.as | 42 +++++++++++++-------
.../framework/SetupErrorTearDownTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/SetupErrorTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/SuccessTestCase.as | 42 +++++++++++++-------
.../framework/TearDownErrorTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/TearDownTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/TestAssert.as | 42 +++++++++++++-------
.../flexUnit1/framework/TestAsynchronous.as | 42 +++++++++++++-------
.../flexUnit1/framework/TestEventfulTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/TestTestCase.as | 42 +++++++++++++-------
.../flexUnit1/framework/TestTestListener.as | 42 +++++++++++++-------
.../flexUnit1/framework/ValueEvent.as | 42 +++++++++++++-------
16 files changed, 432 insertions(+), 240 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
index c81bde8..4eb42db 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AllFrameworkTests.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
index 15ab6fd..016de4f 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousTestCase.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
index 9095ca3..d579aed 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/AsynchronousValueDispatcher.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flash.events.Event;
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
index f8c024c..56191a0 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ErrorTestCase.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
index f734809..4c0acc1 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/FailureTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class FailureTestCase extends TestCase
{
public function FailureTestCase(name : String):void
{
super(name);
}
public function testFailure():void
{
fail("intentional failure");
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
index 73349c7..1ae6c1c 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTearDownTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class SetupErrorTearDownTestCase extends TearDownTestCase
{
public function SetupErrorTearDownTestCase(name : String)
{
super(name);
}
override public function setUp() : void
{
throw new Error();
}
public function testSuccess():void
{
assertTrue( true );
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
index c0025a9..aa48c33 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SetupErrorTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class SetupErrorTestCase extends ErrorTestCase
{
public function SetupErrorTestCase(name : String)
{
super(name);
}
override public function setUp() : void
{
throw new Error();
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
index 2432081..089b58b 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/SuccessTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class SuccessTestCase extends TestCase
{
public function SuccessTestCase(name : String):void
{
super(name);
}
public function testSuccess():void
{
expectedResult = true;
assertTrue( expectedResult );
}
public var expectedResult : Boolean = false;
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
index d8dded3..6576f38 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownErrorTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class TearDownErrorTestCase extends TearDownTestCase
{
public function TearDownErrorTestCase(name : String)
{
super(name);
}
public function testSuccess() : void
{
assertTrue( true );
}
override public function tearDown() : void
{
super.tearDown();
throw new Error("tearDown");
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
index 6eb82fd..1f85d13 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TearDownTestCase.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class TearDownTestCase extends ErrorTestCase
{
public function TearDownTestCase(name : String)
{
super(name);
}
override public function tearDown() : void
{
expectedResult = true;
}
public var expectedResult : Boolean = false;
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAssert.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAssert.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAssert.as
index 97656b9..3ae4a4d 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAssert.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAssert.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
index edc508e..ee40392 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestAsynchronous.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flash.events.Event;
import flash.events.TimerEvent;
import flash.utils.Timer;
import flexunit.framework.Assert;
import flexunit.framework.TestCase;
import flexunit.framework.TestResult;
public class TestAsynchronous extends TestCase
{
public function TestAsynchronous(name : String = null)
{
super(name);
}
public function testInTimePass() : void
{
var test : TestCase = new AsynchronousTestCase("testInTimePass");
var result : TestResult = test.run();
initAsync(result, 1, 0, 0);
}
public function testInTimeFail() : void
{
var test : TestCase = new AsynchronousTestCase("testInTimeFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
//this test won't be run right now because the Error that is thrown propagates up and creates a dia
log
//and if the dialog isn't closed in time it screws up the timer in here. however if you run it manaully and close
//the dialog in time it should be ok
public function STOPtestInTimeError() : void
{
var test : TestCase = new AsynchronousTestCase("testInTimeError");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testTooLatePass() : void
{
var test : TestCase = new AsynchronousTestCase("testTooLatePass");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testTooLateFail() : void
{
var test : TestCase = new AsynchronousTestCase("testTooLateFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
//this test won't be run right now because the Error that is thrown propagates up and creates a dialog
//and if the dialog isn't closed in time it screws up the timer in here. however if you run it manaully and close
//the dialog in time it should be ok
public function STOPtestTooLateError() : void
{
var test : TestCase = new AsynchronousTestCase("testTooLateError");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testSecondInTimePass() : void
{
var test : TestCase = new AsynchronousTestCase("testSecondInTimePass");
var result : TestResult = test.run();
initAsync(result, 1, 0, 0);
}
public function testSecondInTimeFail() : void
{
var test : TestCase = new AsynchronousTestCase("testSecondInTimeFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testSecondTooLatePass() : void
{
var test : TestCase = new As
ynchronousTestCase("testSecondTooLatePass");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testSecondTooLateFail() : void
{
var test : TestCase = new AsynchronousTestCase("testSecondTooLateFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testTimeoutFunctionPass() : void
{
var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionPass");
var result : TestResult = test.run();
initAsync(result, 1, 0, 0);
}
public function testTimeoutFunctionFail() : void
{
var test : TestCase = new AsynchronousTestCase("testTimeoutFunctionFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function testNotReallyAsynchronousPass() : void
{
var test : TestCa
se = new AsynchronousTestCase("testNotReallyAsynchronousPass");
var result : TestResult = test.run();
initAsync(result, 1, 0, 0);
}
public function testNotReallyAsynchronousFail() : void
{
var test : TestCase = new AsynchronousTestCase("testNotReallyAsynchronousFail");
var result : TestResult = test.run();
initAsync(result, 1, 1, 0);
}
public function shouldBeRun(event : Event, passedData : Object) : void
{
var result : TestResult = passedData.result;
var expectedRun : int = passedData.expectedRun;
var expectedFail : int = passedData.expectedFail;
var expectedError : int = passedData.expectedError;
Assert.assertEquals("result.runCount() is not correct", expectedRun, result.runCount());
Assert.assertEquals("result.failureCount() is not correct",expectedFail, result.failureCount());
Assert.assertEquals
("result.errorCount() is not correct", expectedError, result.errorCount());
}
private function initAsync(result : TestResult, expectedRun : int, expectedFail : int, expectedError : int):void
{
var data : Object = new Object();
data.result = result;
data.expectedRun = expectedRun;
data.expectedFail = expectedFail;
data.expectedError = expectedError;
var t : Timer = new Timer(1000, 1);
var helper : Function = addAsync(shouldBeRun, 1500, data, function():void { fail('shouldBeRun did not fire')} );
t.addEventListener( TimerEvent.TIMER, helper );
t.start();
}
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
index 22a6526..5147fc8 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestEventfulTestCase.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flash.events.Event;
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestCase.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
index 6b1cd59..a14895f 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestCase.as
@@ -1,19 +1,31 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestListener.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestListener.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestListener.as
index ce2c034..6519751 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestListener.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/TestTestListener.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flexunit.framework.*;
public class TestTestListener extends TestCase implements TestListener
{
public function TestTestListener(name : String = null)
{
super(name);
}
public function addError( test : Test, e : Error ) : void
{
errorCount++;
}
//------------------------------------------------------------------------------
public function addFailure( test : Test , e : AssertionFailedError ) : void
{
failureCount++;
}
//------------------------------------------------------------------------------
public function startTest( test : Test ) : void
{
startCount++;
}
//------------------------------------------------------------------------------
public function endTest( test : Test ) : void
{
endCount++;
}
//----------------------------------------------------------------------
--------
override public function setUp() : void
{
result = new TestResult();
result.addListener( TestListener(this) );
startCount = 0;
endCount = 0;
failureCount = 0;
errorCount = 0;
}
//------------------------------------------------------------------------------
public function testError():void
{
var test : TestCase = new ErrorTestCase( "throwError" )
test.runWithResult( result );
Assert.assertEquals("error", 1, errorCount );
Assert.assertEquals("end", 1, endCount );
Assert.assertEquals("failure", 0, failureCount);
}
//------------------------------------------------------------------------------
public function testFailure():void
{
var test : TestCase = new FailureTestCase( "testFailure" )
test.runWithResult( result );
Assert.assertEquals("failure", 1, failureCount );
Assert.assertEquals("end", 1, endCount );
Assert.assertEquals("er
ror", 0, errorCount);
}
//------------------------------------------------------------------------------
public function testStartStop():void
{
var test : TestCase = new SuccessTestCase( "testSuccess" )
test.runWithResult( result );
Assert.assertEquals("start", 1, startCount );
Assert.assertEquals("end", 1, endCount );
Assert.assertEquals("error", 0, errorCount);
Assert.assertEquals("failure", 0, failureCount);
}
//------------------------------------------------------------------------------
private var result : TestResult;
private var startCount : Number;
private var endCount : Number;
private var failureCount : Number;
private var errorCount : Number;
}
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-flexunit/blob/2b50aa4b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ValueEvent.as
----------------------------------------------------------------------
diff --git a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ValueEvent.as b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ValueEvent.as
index 85ccdf2..8f1c6be 100644
--- a/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ValueEvent.as
+++ b/FlexUnit4Turnkey/src/flexUnitTests/flexUnit1/framework/ValueEvent.as
@@ -1,17 +1,29 @@
/*
- * 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.
- */
+ Copyright (c) 2008. Adobe Systems Incorporated.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ * Neither the name of Adobe Systems Incorporated nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+*/
package flexUnitTests.flexUnit1.framework
{
import flash.events.Event;
public class ValueEvent extends Event
{
public function ValueEvent(value : String)
{
super("value");
this.value = value;
}
public var value : String;
}
}
\ No newline at end of file