• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Revision531a01d1af919a26fde31d73091ece7648ee0dd0 (tree)
Time2012-04-02 23:21:16
Authorbolkimen <bolkimen@yaho...>
Commiterbolkimen

Log Message

Merge branch 't34_valid_html_css' into t35_custom_css_values

Change Summary

Incremental Difference

--- a/Allura/allura/model/neighborhood.py
+++ b/Allura/allura/model/neighborhood.py
@@ -180,9 +180,9 @@ class Neighborhood(MappedClass):
180180 if m:
181181 icon_theme = m.group(1)
182182 if icon_theme == "ffffff":
183- titlebarcolor_dark = 'selected="selected"'
183+ titlebarcolor_dark = ' selected="selected"'
184184 elif icon_theme == "454545":
185- titlebarcolor_white = 'selected="selected"'
185+ titlebarcolor_white = ' selected="selected"'
186186
187187 titlebarcolor['additional'] = titlebarcolor['additional'] % {'titlebarcolor_dark': titlebarcolor_dark,
188188 'titlebarcolor_white': titlebarcolor_white}
--- a/Allura/allura/tests/functional/test_neighborhood.py
+++ b/Allura/allura/tests/functional/test_neighborhood.py
@@ -125,14 +125,17 @@ class TestNeighborhood(TestController):
125125 'css-projecttitlecolor': 'green',
126126 'css-barontop': '#555555',
127127 'css-titlebarbackground': '#333',
128- 'css-titlebarcolor': '#444'},
128+ 'css-titlebarcolor': '#444',
129+ 'css-addopt-icon-theme': 'dark'},
129130 extra_environ=dict(username='root'), upload_files=[])
130131 neighborhood = M.Neighborhood.query.get(name='Adobe')
131132 assert '/*projecttitlefont*/.project_title{font-family:arial,sans-serif;}' in neighborhood.css
132133 assert '/*projecttitlecolor*/.project_title{color:green;}' in neighborhood.css
133134 assert '/*barontop*/.pad h2.colored {background-color:#555555; background-image: none;}' in neighborhood.css
134135 assert '/*titlebarbackground*/.pad h2.title{background-color:#333; background-image: none;}' in neighborhood.css
135- assert '/*titlebarcolor*/.pad h2.title{color:#444;}' in neighborhood.css
136+ assert "/*titlebarcolor*/.pad h2.title{color:#444;} "\
137+ ".pad h2.dark small b.ico {background-image: "\
138+ "url('/nf/_ew_/theme/allura/images/neo-icon-set-ffffff-256x350.png');}" in neighborhood.css
136139
137140 def test_max_projects(self):
138141 # Set max value to unlimit
--- a/Allura/allura/tests/model/test_neighborhood.py
+++ b/Allura/allura/tests/model/test_neighborhood.py
@@ -53,17 +53,21 @@ def test_neighborhood():
5353 'titlebarbackground': u'#555',
5454 'projecttitlefont': u'arial,sans-serif',
5555 'projecttitlecolor': u'#333',
56- 'titlebarcolor': u'#666'}
56+ 'titlebarcolor': u'#666',
57+ 'addopt-icon-theme': 'dark'}
5758 css_text = neighborhood.compile_css_for_gold_level(test_css_dict)
5859 assert '#333' in css_text
5960 assert '#444' in css_text
6061 assert '#555' in css_text
6162 assert '#666' in css_text
6263 assert 'arial,sans-serif' in css_text
64+ assert 'images/neo-icon-set-ffffff-256x350.png' in css_text
6365 neighborhood.css = css_text
6466 styles_list = neighborhood.get_css_for_gold_level()
6567 for style in styles_list:
6668 assert test_css_dict[style['name']] == style['value']
69+ if style['name'] == 'titlebarcolor':
70+ assert '<option value="dark" selected="selected">' in style['additional']
6771
6872 # Check neighborhood custom css showing
6973 neighborhood.level = 'silver'