Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 344
- Log:
Massive changeset which brings the old, ROOL customised Instiki
version up to date, but without any ROOL customisations in this
latest checked-in version (which is 0.19.1). This is deliberate,
so that it's easy to see the changes made for the ROOL version
in a subsequent changeset. The 'app/views/shared' directory is not
part of Instiki but is kept to maintain the change history with
updated ROOL customisations, some of which involve the same files
in that same directory.
- Author:
- rool
- Date:
- Sat Mar 19 19:52:13 +0000 2011
- Size:
- 1605 Bytes
- Properties:
- Property svn:executable is set
1 | #!/usr/bin/env ruby |
2 | |
3 | require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') |
4 | require 'chunks/nowiki' |
5 | |
6 | class NoWikiTest < Test::Unit::TestCase |
7 | include ChunkMatch |
8 | |
9 | def test_simple_nowiki |
10 | match(NoWiki, 'This sentence contains <nowiki>[[raw text]]</nowiki>. Do not touch!', |
11 | :plain_text => '[[raw text]]' |
12 | ) |
13 | end |
14 | |
15 | def test_include_nowiki |
16 | match(NoWiki, 'This sentence contains <nowiki>[[!include foo]]</nowiki>. Do not touch!', |
17 | :plain_text => '[[!include foo]]' |
18 | ) |
19 | end |
20 | |
21 | def test_markdown_nowiki |
22 | match(NoWiki, 'This sentence contains <nowiki>*raw text*</nowiki>. Do not touch!', |
23 | :plain_text => '*raw text*' |
24 | ) |
25 | end |
26 | |
27 | def test_sanitize_nowiki |
28 | match(NoWiki, 'This sentence contains <nowiki>[[test]]&<a href="a&b">shebang</a> <script>alert("xss!");</script> *foo*</nowiki>. Do not touch!', |
29 | :plain_text => "[[test]]&<a href='a&b'>shebang</a> <script>alert("xss!");</script> *foo*" |
30 | ) |
31 | end |
32 | |
33 | def test_sanitize_nowiki_ill_formed |
34 | match(NoWiki, "<nowiki><animateColor xlink:href='#foo'/></nowiki>", |
35 | :plain_text => "<animateColor xlink:href='#foo'/>" |
36 | ) |
37 | end |
38 | |
39 | def test_sanitize_nowiki_ill_formed_II |
40 | match(NoWiki, "<nowiki><animateColor xlink:href='#foo'/>\000</nowiki>", |
41 | :plain_text => %(<animateColor xlink:href='#foo'/>) |
42 | ) |
43 | end |
44 | |
45 | def test_sanitize_nowiki_bad_utf8 |
46 | match(NoWiki, "<nowiki>\357elephant & \302ivory</nowiki>", |
47 | :plain_text => "".respond_to?(:force_encoding) ? "elephant &AMP; ivory" : "ephant &AMP; vory" |
48 | ) |
49 | end |
50 | |
51 | end |