~ubuntu-branches/ubuntu/maverick/newsbeuter/maverick

« back to all changes in this revision

Viewing changes to test/test-reloadall.rb

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2008-09-02 13:56:35 UTC
  • mfrom: (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20080902135635-728j1jk0wvt7kswp
Tags: 1.2-1
* New upstream release.
  - Fix incomplete quoting fix for article URLs by replacing '
    with the proper encoding in hex (Closes: #497495).
* Update rss_parser.cpp part of the use_system-wide-libs for the
  new download-timeout option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env ruby
 
2
# test "reload all" (which starts a background thread)
 
3
require 'tuitest'
 
4
 
 
5
Kernel.system("rm -f cache")
 
6
 
 
7
Tuitest.init
 
8
verifier = Tuitest::Verifier.new("test-reloadall.rb.log")
 
9
 
 
10
 
 
11
Tuitest.run("../newsbeuter -c cache -C /dev/null -u urls-tuitest1")
 
12
Tuitest.wait_until_idle
 
13
 
 
14
Tuitest.keypress("R"[0])
 
15
 
 
16
Tuitest.wait_until_idle
 
17
verifier.expect(0, 29, "1")
 
18
verifier.expect(1, 5, "N       (3/3) RSS 2.0 testbed feed                   ")
 
19
 
 
20
Tuitest.keypress("q"[0])
 
21
Tuitest.wait(1000)
 
22
Tuitest.wait_until_idle
 
23
 
 
24
Tuitest.close
 
25
verifier.finish
 
26
 
 
27
Kernel.system("rm -f cache")
 
28
 
 
29
# EOF