##// END OF EJS Templates
Update minified YUI to version 2.9 built from Source....
Update minified YUI to version 2.9 built from Source. yui.2.9.js used to be a minified version of YUI 2.9 until 5143b8df576c updated it to something else and applied more aggresive minification. We stick to a clean but minified version 2.9. The license of YUI is BSD 3-clause, as described on http://yuilibrary.com/license/ . Since the minified version combines with GPLv3'd Javascript, it is only GPLv3'd compliant to distribute this Object Code version with the Corresponding Source (or offer therefor). This yui.2.9.js is built from Source this way: git clone https://github.com/yui/builder git clone https://github.com/yui/yui2 cd yui2/ git checkout hudson-yui2-2800 ln -sf JumpToPageDropDown.js src/paginator/js/JumpToPageDropdown.js # work around inconsistent casing rm -f tmp.js for m in yahoo event dom connection animation dragdrop element datasource autocomplete container event-delegate json datatable paginator; do rm -f build/$m/$m.js; ( cd src/$m && ant build deploybuild ) && sed -e 's,@VERSION@,2.9.0,g' -e 's,@BUILD@,2800,g' build/$m/$m.js >> tmp.js done java -jar ../builder/componentbuild/lib/yuicompressor/yuicompressor-2.4.4.jar tmp.js -o yui.2.9.js The source is mirrored and available on https://kallithea-scm.org/repos/mirror .

File last commit:

r4116:ffd45b18 rhodecode-2.2.5-gpl
r4131:31f510a8 rhodecode-2.2.5-gpl
Show More
test_admin_defaults.py
75 lines | 2.7 KiB | text/x-python | PythonLexer
Implemented #379 defaults settings page for creation of repositories...
r3056 from rhodecode.tests import *
from rhodecode.model.db import RhodeCodeSetting
class TestDefaultsController(TestController):
def test_index(self):
self.log_user()
response = self.app.get(url('defaults'))
response.mustcontain('default_repo_private')
response.mustcontain('default_repo_enable_statistics')
response.mustcontain('default_repo_enable_downloads')
response.mustcontain('default_repo_enable_locking')
def test_index_as_xml(self):
response = self.app.get(url('formatted_defaults', format='xml'))
def test_create(self):
response = self.app.post(url('defaults'))
def test_new(self):
response = self.app.get(url('new_default'))
def test_new_as_xml(self):
response = self.app.get(url('formatted_new_default', format='xml'))
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 def test_update_params_true_hg(self):
Implemented #379 defaults settings page for creation of repositories...
r3056 self.log_user()
params = {
'default_repo_enable_locking': True,
'default_repo_enable_downloads': True,
'default_repo_enable_statistics': True,
'default_repo_private': True,
'default_repo_type': 'hg',
}
response = self.app.put(url('default', id='default'), params=params)
self.checkSessionFlash(response, 'Default settings updated successfully')
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116
Implemented #379 defaults settings page for creation of repositories...
r3056 defs = RhodeCodeSetting.get_default_repo_settings()
self.assertEqual(params, defs)
Bradley M. Kuhn
Imported some of the GPLv3'd changes from RhodeCode v2.2.5....
r4116 def test_update_params_false_git(self):
self.log_user()
Implemented #379 defaults settings page for creation of repositories...
r3056 params = {
'default_repo_enable_locking': False,
'default_repo_enable_downloads': False,
'default_repo_enable_statistics': False,
'default_repo_private': False,
'default_repo_type': 'git',
}
response = self.app.put(url('default', id='default'), params=params)
self.checkSessionFlash(response, 'Default settings updated successfully')
defs = RhodeCodeSetting.get_default_repo_settings()
self.assertEqual(params, defs)
def test_update_browser_fakeout(self):
response = self.app.post(url('default', id=1), params=dict(_method='put'))
def test_delete(self):
response = self.app.delete(url('default', id=1))
def test_delete_browser_fakeout(self):
response = self.app.post(url('default', id=1), params=dict(_method='delete'))
def test_show(self):
response = self.app.get(url('default', id=1))
def test_show_as_xml(self):
response = self.app.get(url('formatted_default', id=1, format='xml'))
def test_edit(self):
response = self.app.get(url('edit_default', id=1))
def test_edit_as_xml(self):
response = self.app.get(url('formatted_edit_default', id=1, format='xml'))