~ubuntu-branches/ubuntu/saucy/tdiary/saucy-proposed

« back to all changes in this revision

Viewing changes to tdiary/wiki_style_test.rb

  • Committer: Bazaar Package Importer
  • Author(s): Daigo Moriwaki
  • Date: 2011-04-11 21:53:16 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110411215316-ih4gt4q8p29d2wf8
Tags: 3.0.1-1
* New upstream release (Closes: #542801, #594947)
* debian/control:
 - Bumped up Standards-Version to 3.9.1.
 - Updated version dependency.
* debian/tdiary-setup.rb: Followed the upstream changes, incorporating js and
  index.fcgi

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8; -*-
1
2
#!/usr/bin/env ruby
2
3
#-*-ruby-*-
3
4
require "test/unit"
83
84
<div class="section">
84
85
<%=section_enter_proc( Time::at( 1041346800 ) )%>
85
86
<h3><%= subtitle_proc( Time::at( 1041346800 ), "subTitle" ) %></h3>
86
 
<p>
87
 
honbun</p>
 
87
<p>honbun</p>
88
88
<%=section_leave_proc( Time::at( 1041346800 ) )%>
89
89
</div>
90
90
    EOF
177
177
 
178
178
  def checkConversion(source, htmlExpected, opt = nil)
179
179
    opt ||= {}
180
 
    diary = TDiary::WikiDiary.new(Time.local(2003, 1, 1), "TITLE", "")
 
180
    diary = TDiary::WikiDiary.new(Time::at( 1041346800 ), "TITLE", "")
181
181
    diary.append(source)
182
182
    if opt[:preConvertHtml]
183
183
      opt[:preConvertHtml].call(diary)