l1ving_youtube-dl/test/js2tests/try_statement.py
sulyi 1f40e3ef63 [jsinterp] Test suit update
- Fixes (at least changes) global variable referencing in `jsinterp2`
- Adds test suite based testcase for `jsinterp`
- Adds per assertion based skip
- Renames `test_jsinterp` (hopefully temporally) to `test_jsinterp_orig`
- Adds function declaration to testcases (code & ast)
2018-06-02 02:01:40 +02:00

18 lines
379 B
Python

from __future__ import unicode_literals
from youtube_dl.jsinterp2.jsgrammar import Token
skip = {
'jsinterp': 'Try statement is not supported',
'interpret': 'Interpreting try statement not yet implemented',
'parse': 'Test not yet implemented: missing code and ast'
}
tests = [
{
'code': '',
'asserts': [{'value': 0}],
'ast': []
}
]