source: products/quintagroup.plonetabs/trunk/quintagroup/plonetabs/tests/ecmaunits/ecmaview.py @ 3437

Last change on this file since 3437 was 3437, checked in by potar, 12 years ago

Merged tests branch

  • Property svn:eol-style set to native
File size: 629 bytes
Line 
1import os
2from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
3from kss.core.tests.ecmaview import EcmaView as base
4
5
6def absolute_dir(path):
7    here = os.path.split(globals()['__file__'])[0]
8    return os.path.abspath(os.path.join(here, path))
9
10
11class EcmaView(base):
12    '''quintagroup.plonetabs js test view
13
14    This allows the runner.html to be used on this view.
15
16    This provides the tests run with the compiled kukit.js
17    resource, in the same way as they would be run
18    in production with kss.
19    '''
20
21    _testdir = absolute_dir('js')
22
23    _runner = ViewPageTemplateFile('js/runner.html')
Note: See TracBrowser for help on using the repository browser.