<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -127,6 +127,21 @@
       assert($('global').onchange_called, &quot;onchange wasnt called&quot;);
       $(&quot;global&quot;).remove();
     }},
+    test_onchangeCallbackChangedOnclear: function() { with(this){
+      $(&quot;cds_test&quot;).up().build(&quot;div&quot;, {id: &quot;global&quot;});
+      cds = new CalendarDateSelect($(&quot;cds_test&quot;), {time: &quot;mixed&quot;, 
+        onchange: function() { $(&quot;global&quot;).onchange_called = true},
+      });
+      $(&quot;cds_test&quot;).value = &quot;&quot;;
+      cds.clearDate();
+      assert( ! $('global').onchange_called, &quot;onchange was called, when the value wasn't actually changed&quot;);
+      $(&quot;cds_test&quot;).value = &quot;boogy&quot;;
+      cds.clearDate();
+      assert( $('global').onchange_called, &quot;onchange wasnt called, but should ahve been&quot;);
+      cds.close();
+      $(&quot;global&quot;).remove();
+    }},
+    
     test_disabledElement_cantUpdate: function() {with(this){
       $(&quot;cds_test&quot;).value = &quot;May 10, 2007&quot;;
       $(&quot;cds_test&quot;).disabled = true;</diff>
      <filename>js_test/functional/cds_test.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>88b7caf7acecf31186661c0efd6bc606cdcc666d</id>
    </parent>
  </parents>
  <author>
    <name>Tim Harper</name>
    <email>timcharper@gmail.com</email>
  </author>
  <url>http://github.com/railssignals/jquery_calendar_date_select/commit/09bff5193cbffcac9a3ee84e47b898bb1dd37170</url>
  <id>09bff5193cbffcac9a3ee84e47b898bb1dd37170</id>
  <committed-date>2009-02-19T21:56:41-08:00</committed-date>
  <authored-date>2009-02-19T21:56:41-08:00</authored-date>
  <message>added test to make sure callback is being onchange called appropriately</message>
  <tree>e6b134db2ff43ea8622474504e04b68cc4473a5b</tree>
  <committer>
    <name>Tim Harper</name>
    <email>timcharper@gmail.com</email>
  </committer>
</commit>
