##// 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:

r3960:5293d4bb merge default
r4131:31f510a8 rhodecode-2.2.5-gpl
Show More
test_changelog.py
153 lines | 6.8 KiB | text/x-python | PythonLexer
from rhodecode.tests import *
class TestChangelogController(TestController):
def test_index_hg(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO))
response.mustcontain('''id="chg_20" class="container tablerow1"''')
response.mustcontain(
"""<input class="changeset_range" """
"""id="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """
"""name="7b22a518347bb9bc19679f6af07cd0a61bfe16e7" """
"""type="checkbox" value="1" />"""
)
#rev 640: code garden
response.mustcontain(
"""<span class="changeset_hash">r640:0a4e54a44604</span>"""
)
response.mustcontain("""code garden""")
def test_index_pagination_hg(self):
self.log_user()
#pagination
self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 1})
self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 2})
self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 3})
self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 4})
self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 5})
response = self.app.get(url(controller='changelog', action='index',
repo_name=HG_REPO), {'page': 6})
# Test response after pagination...
response.mustcontain(
"""<input class="changeset_range" """
"""id="22baf968d547386b9516965ce89d189665003a31" """
"""name="22baf968d547386b9516965ce89d189665003a31" """
"""type="checkbox" value="1" />"""
)
response.mustcontain(
"""<span class="changeset_hash">r539:22baf968d547</span>"""
)
def test_index_git(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO))
response.mustcontain('''id="chg_20" class="container tablerow1"''')
response.mustcontain(
"""<input class="changeset_range" """
"""id="95f9a91d775b0084b2368ae7779e44931c849c0e" """
"""name="95f9a91d775b0084b2368ae7779e44931c849c0e" """
"""type="checkbox" value="1" />"""
)
response.mustcontain(
"""<span class="changeset_hash">r613:95f9a91d775b</span>"""
)
response.mustcontain("""fixing stupid typo in context for mercurial""")
# response.mustcontain(
# """<div id="changed_total_5e204e7583b9c8e7b93a020bd036564b1e731dae" """
# """style="float:right;" class="changed_total tooltip" """
# """title="Affected number of files, click to show """
# """more details">3</div>"""
# )
def test_index_pagination_git(self):
self.log_user()
#pagination
self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 1})
self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 2})
self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 3})
self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 4})
self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 5})
response = self.app.get(url(controller='changelog', action='index',
repo_name=GIT_REPO), {'page': 6})
# Test response after pagination...
response.mustcontain(
"""<input class="changeset_range" """
"""id="636ed213f2f11ef91071b9c24f2d5e6bd01a6ed5" """
"""name="636ed213f2f11ef91071b9c24f2d5e6bd01a6ed5" """
"""type="checkbox" value="1" />"""
)
response.mustcontain(
"""<span class="changeset_hash">r515:636ed213f2f1</span>"""
)
def test_index_hg_with_filenode(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/vcs/exceptions.py',
repo_name=HG_REPO))
#history commits messages
response.mustcontain('Added exceptions module, this time for real')
response.mustcontain('Added not implemented hg backend test case')
response.mustcontain('Added BaseChangeset class')
# Test response...
def test_index_git_with_filenode(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/vcs/exceptions.py',
repo_name=GIT_REPO))
#history commits messages
response.mustcontain('Added exceptions module, this time for real')
response.mustcontain('Added not implemented hg backend test case')
response.mustcontain('Added BaseChangeset class')
def test_index_hg_with_filenode_that_is_dirnode(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/tests',
repo_name=HG_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_git_with_filenode_that_is_dirnode(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/tests',
repo_name=GIT_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_hg_with_filenode_not_existing(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/wrong_path',
repo_name=HG_REPO))
self.assertEqual(response.status, '302 Found')
def test_index_git_with_filenode_not_existing(self):
self.log_user()
response = self.app.get(url(controller='changelog', action='index',
revision='tip', f_path='/wrong_path',
repo_name=GIT_REPO))
self.assertEqual(response.status, '302 Found')