Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 1463 Bytes
1 | require File.dirname(__FILE__) + '/../test_helper' |
2 | require 'theme_controller' |
3 | |
4 | # Re-raise errors caught by the controller. |
5 | class ThemeController; def rescue_action(e) raise e end; end |
6 | |
7 | class ThemeControllerTest < Test::Unit::TestCase |
8 | def setup |
9 | @controller = ThemeController.new |
10 | @request, @response = ActionController::TestRequest.new, ActionController::TestResponse.new |
11 | end |
12 | |
13 | def test_stylesheets |
14 | get :stylesheets, :filename => "azure.css" |
15 | assert_response :success |
16 | assert_equal "text/css; charset=utf-8", @response.headers['Content-Type'] |
17 | assert_equal "inline; filename=\"azure.css\"", @response.headers['Content-Disposition'] |
18 | end |
19 | |
20 | def test_images |
21 | get :images, :filename => "bg-tile.gif" |
22 | assert_response :success |
23 | assert_equal "image/gif", @response.headers['Content-Type'] |
24 | assert_equal "inline; filename=\"bg-tile.gif\"", @response.headers['Content-Disposition'] |
25 | end |
26 | |
27 | def test_malicious_path |
28 | get :stylesheets, :filename => "../../../config/database.yml" |
29 | assert_response 404 |
30 | end |
31 | |
32 | def test_view_theming |
33 | get :static_view_test |
34 | assert_response :success |
35 | |
36 | assert @response.body =~ /Static View Test from azure/ |
37 | end |
38 | |
39 | def disabled_test_javascript |
40 | get :stylesheets, :filename => "typo.js" |
41 | assert_response :success |
42 | assert_equal "text/javascript", @response.headers['Content-Type'] |
43 | assert_equal "inline; filename=\"typo.js\"", @response.headers['Content-Disposition'] |
44 | end |
45 | end |