<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>as3/test/asunit/framework/AssertThrowsTest.as</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -98,16 +98,17 @@ package asunit.framework {
         *  &lt;/listing&gt;
         **/
         static public function assertThrows(errorType:Class, block:Function):void {
-            try {
-                block.call();
-                throw new AssertionFailedError(&quot;expected error type:&lt;&quot; + getQualifiedClassName(errorType) + &quot;&gt; but none was thrown.&quot; );
-            }
-            catch(e:Error) {
-                if(!(e is errorType)) {
-                    throw new AssertionFailedError(&quot;expected error type:&lt;&quot; + getQualifiedClassName(errorType)
+			try {
+				block.call();
+			}
+			catch(e:Error) {
+				if(!(e is errorType)) {
+					throw new AssertionFailedError(&quot;expected error type:&lt;&quot; + getQualifiedClassName(errorType)
 						+&quot;&gt; but was:&lt;&quot; + getQualifiedClassName(e) + &quot;&gt;&quot;);
-                }
-            }
+				}
+				return;
+			}
+			throw new AssertionFailedError(&quot;expected error type:&lt;&quot; + getQualifiedClassName(errorType) + &quot;&gt; but none was thrown.&quot; );
         }
 
         /**</diff>
      <filename>as3/src/asunit/framework/Assert.as</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ package asunit.framework {
 	import asunit.framework.AssertEqualsArraysIgnoringOrderTest;
 	import asunit.framework.AssertEqualsArraysTest;
 	import asunit.framework.AssertTest;
+	import asunit.framework.AssertThrowsTest;
 	import asunit.framework.AsyncFailureTest;
 	import asunit.framework.AsyncMethodTest;
 	import asunit.framework.TestCaseTest;
@@ -15,6 +16,7 @@ package asunit.framework {
 			addTest(new asunit.framework.AssertEqualsArraysIgnoringOrderTest());
 			addTest(new asunit.framework.AssertEqualsArraysTest());
 			addTest(new asunit.framework.AssertTest());
+			addTest(new asunit.framework.AssertThrowsTest());
 			addTest(new asunit.framework.AsyncFailureTest());
 			addTest(new asunit.framework.AsyncMethodTest());
 			addTest(new asunit.framework.TestCaseTest());</diff>
      <filename>as3/test/asunit/framework/AllTests.as</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>861047d26c531a63e7ac698ee4b094ddeac605df</id>
    </parent>
  </parents>
  <author>
    <name>Robert Penner</name>
    <email>info@robertpenner.com</email>
  </author>
  <url>http://github.com/lukebayes/asunit/commit/611f7c97e67cacd06c01468cac3c7bc58fa6f9b7</url>
  <id>611f7c97e67cacd06c01468cac3c7bc58fa6f9b7</id>
  <committed-date>2009-11-03T19:55:27-08:00</committed-date>
  <authored-date>2009-11-03T19:55:27-08:00</authored-date>
  <message>FIX: assertThrows() was showing wrong message when the function didn't throw anything.</message>
  <tree>fb0927372b4ccff18df10ebcd04e8df39369035c</tree>
  <committer>
    <name>Robert Penner</name>
    <email>info@robertpenner.com</email>
  </committer>
</commit>
