<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,8 @@
+== 0.7.0 2008-02-16
+
 * ajaxMock: user Ajax.Request.prepareMocks/clearMocks in setup/teardown respectively
+* Improved Event.simulate [thx Juriy Zaytsev]
+* Moved test/*.html -&gt; test/unit/*.html as per newjs 1.1.0
 
 == 0.6.0 2008-02-16
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@ require 'rake/packagetask'
 
 $:.unshift File.dirname(__FILE__) + &quot;/lib&quot;
 
-APP_VERSION  = '0.6.0'
+APP_VERSION  = '0.7.0'
 APP_NAME     = 'drnic_js_test_helpers'
 RUBYFORGE_PROJECT = 'drnicutilities'
 APP_FILE_NAME= &quot;#{APP_NAME}.js&quot;
@@ -66,11 +66,11 @@ Rake::PackageTask.new(APP_NAME, APP_VERSION) do |package|
 end
 
 desc &quot;Builds the distribution, runs the JavaScript unit tests and collects their results.&quot;
-task :test =&gt; [:dist, :test_units]
+task :test =&gt; [:dist, :test_units, :test_functionals]
 
 require 'jstest'
 desc &quot;Runs all the JavaScript unit tests and collects the results&quot;
-JavaScriptTestTask.new(:test_units) do |t|
+JavaScriptTestTask.new(:test_units, 4711) do |t|
   testcases        = ENV['TESTCASES']
   tests_to_run     = ENV['TESTS']    &amp;&amp; ENV['TESTS'].split(',')
   browsers_to_test = ENV['BROWSERS'] &amp;&amp; ENV['BROWSERS'].split(',')
@@ -90,6 +90,27 @@ JavaScriptTestTask.new(:test_units) do |t|
   end
 end
 
+desc &quot;Runs all the JavaScript functional tests and collects the results&quot;
+JavaScriptTestTask.new(:test_functionals, 4712) do |t|
+  testcases        = ENV['TESTCASES']
+  tests_to_run     = ENV['TESTS']    &amp;&amp; ENV['TESTS'].split(',')
+  browsers_to_test = ENV['BROWSERS'] &amp;&amp; ENV['BROWSERS'].split(',')
+
+  t.mount(&quot;/dist&quot;)
+  t.mount(&quot;/src&quot;)
+  t.mount(&quot;/test&quot;)
+
+  Dir[&quot;test/functional/*_test.html&quot;].sort.each do |test_file|
+    tests = testcases ? { :url =&gt; &quot;/#{test_file}&quot;, :testcases =&gt; testcases } : &quot;/#{test_file}&quot;
+    test_filename = test_file[/.*\/(.+?)\.html/, 1]
+    t.run(tests) unless tests_to_run &amp;&amp; !tests_to_run.include?(test_filename)
+  end
+
+  %w( safari firefox ie konqueror opera ).each do |browser|
+    t.browser(browser.to_sym) unless browsers_to_test &amp;&amp; !browsers_to_test.include?(browser)
+  end
+end
+
 task :clean_package_source do
   rm_rf File.join(APP_PKG_DIR, &quot;#{APP_NAME}-#{APP_VERSION}&quot;)
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -268,14 +268,14 @@ end
 
 class JavaScriptTestTask &lt; ::Rake::TaskLib
 
-  def initialize(name=:test)
+  def initialize(name=:test, port=4711)
     @name = name
     @tests = []
     @browsers = []
-
+    @port = port
     @queue = Queue.new
 
-    @server = WEBrick::HTTPServer.new(:Port =&gt; 4711) # TODO: make port configurable
+    @server = WEBrick::HTTPServer.new(:Port =&gt; @port) # TODO: make port configurable
     @server.mount_proc(&quot;/results&quot;) do |req, res|
       @queue.push({
         :tests =&gt; req.query['tests'].to_i,
@@ -308,12 +308,12 @@ class JavaScriptTestTask &lt; ::Rake::TaskLib
           browser.setup
           puts &quot;\nStarted tests in #{browser}&quot;
           @tests.each do |test|
-            params = &quot;resultsURL=http://localhost:4711/results&amp;t=&quot; + (&quot;%.6f&quot; % Time.now.to_f)
+            params = &quot;resultsURL=http://localhost:#{@port}/results&amp;t=&quot; + (&quot;%.6f&quot; % Time.now.to_f)
             if test.is_a?(Hash)
               params &lt;&lt; &quot;&amp;tests=#{test[:testcases]}&quot; if test[:testcases]
               test = test[:url]
             end
-            browser.visit(&quot;http://localhost:4711#{test}?#{params}&quot;)
+            browser.visit(&quot;http://localhost:#{@port}#{test}?#{params}&quot;)
  
             result = @queue.pop
             result.each { |k, v| results[k] += v }</diff>
      <filename>lib/jstest.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>22fe34b655e57bb6bec6d95f1231ec3bdbb0e3af</id>
    </parent>
  </parents>
  <author>
    <name>Dr Nic</name>
    <email>drnicwilliams@gmail.com</email>
  </author>
  <url>http://github.com/drnic/drnic_js_test_helpers/commit/65eefcc6370ab10c3fc44fc271e3c203ace17682</url>
  <id>65eefcc6370ab10c3fc44fc271e3c203ace17682</id>
  <committed-date>2008-02-16T20:34:48-08:00</committed-date>
  <authored-date>2008-02-16T20:34:48-08:00</authored-date>
  <message>release 0.7.0 + Improved Event.simulate [thx Juriy Zaytsev]</message>
  <tree>b46bc25e47c34851c1253e6dc77d8ccfe7e5d9c0</tree>
  <committer>
    <name>Dr Nic</name>
    <email>drnicwilliams@gmail.com</email>
  </committer>
</commit>
