[jsinterp] Fixing test skip messages

This commit is contained in:
sulyi 2018-06-03 23:23:41 +02:00
parent db0dc7b4ea
commit d977e93070
16 changed files with 23 additions and 23 deletions

View File

@ -4,8 +4,8 @@ from youtube_dl.jsinterp2.jsgrammar import Token
skip = { skip = {
'jsinterp': 'Debugger statement is not supported', 'jsinterp': 'Debugger statement is not supported',
'interpret': 'Interpreting debugger statement not yet implemented', 'interpret': 'Interpreting debugger statement is not yet implemented',
'parse': 'Test not yet implemented: missing code and ast' 'parse': 'Test is not yet implemented: missing code and ast'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _UNARY_OPERATORS, _R
skip = { skip = {
'jsinterp': 'Do loop is not supported', 'jsinterp': 'Do loop is not supported',
'interpret': 'Interpreting do loop not yet implemented' 'interpret': 'Interpreting do loop is not yet implemented'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _UNARY_OPERATORS, _R
skip = { skip = {
'jsinterp': 'For loop is not supported', 'jsinterp': 'For loop is not supported',
'interpret': 'Interpreting for empty loop not yet implemented' 'interpret': 'Interpreting for empty loop is not yet implemented'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS
skip = { skip = {
'jsinterp': 'For in loop is not supported', 'jsinterp': 'For in loop is not supported',
'interpret': 'Interpreting for in loop not yet implemented' 'interpret': 'Interpreting for in loop is not yet implemented'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _UNARY_OPERATORS, _R
skip = { skip = {
'jsinterp': 'For loop is not supported', 'jsinterp': 'For loop is not supported',
'interpret': 'Interpreting for loop not yet implemented' 'interpret': 'Interpreting for loop is not yet implemented'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS
skip = { skip = {
'jsinterp': 'not supported', 'jsinterp': 'not supported',
'interpret': 'Interpreting function expression not yet implemented' 'interpret': 'Interpreting function expression is not yet implemented'
} }
tests = [ tests = [

View File

@ -4,8 +4,8 @@ from youtube_dl.jsinterp2.jsgrammar import Token
skip = { skip = {
'jsinterp': 'Label statement is not supported', 'jsinterp': 'Label statement is not supported',
'interpret': 'Interpreting label not yet implemented', 'interpret': 'Interpreting label is not yet implemented',
'parse': 'Test not yet implemented: missing code and ast' 'parse': 'Test is not yet implemented: missing code and ast'
} }
tests = [ tests = [

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals
from youtube_dl.jsinterp2.jsgrammar import Token from youtube_dl.jsinterp2.jsgrammar import Token
from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _OPERATORS from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _OPERATORS
skip = {'interpret': 'Interpreting object literals not yet implemented'} skip = {'interpret': 'Interpreting object literals is not yet implemented'}
tests = [ tests = [
{ {

View File

@ -3,7 +3,7 @@ from __future__ import unicode_literals
from youtube_dl.jsinterp2.jsgrammar import Token from youtube_dl.jsinterp2.jsgrammar import Token
from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _OPERATORS from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _OPERATORS
skip = {'interpret': 'Interpreting built-in fields not yet implemented'} skip = {'interpret': 'Interpreting built-in fields are not yet implemented'}
tests = [ tests = [
{ {

View File

@ -2,12 +2,12 @@ from __future__ import unicode_literals
skip = { skip = {
'jsinterp': 'String literals are not supported', 'jsinterp': 'String literals are not supported',
'parse': 'Ast not yet implemented' 'interpret': 'Builtins are not yet implemented',
'parse': 'Test is not yet implemented: missing ast'
} }
tests = [ tests = [
{ {
'exclude': ('jsinterp2',),
'code': 'function f() {return "hello".split(""); }', 'code': 'function f() {return "hello".split(""); }',
'globals': {}, 'globals': {},
'asserts': [{'value': ['h', 'e', 'l', 'l', 'o'], 'call': ('f',)}], 'asserts': [{'value': ['h', 'e', 'l', 'l', 'o'], 'call': ('f',)}],

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _UNARY_OPERATORS
skip = { skip = {
'jsinterp': 'Switch statement is not supported', 'jsinterp': 'Switch statement is not supported',
'interpret': 'Interpreting switch statement not yet implemented' 'interpret': 'Interpreting switch statement is not yet implemented'
} }
tests = [ tests = [

View File

@ -4,8 +4,8 @@ from youtube_dl.jsinterp2.jsgrammar import Token
skip = { skip = {
'jsinterp': 'Try statement is not supported', 'jsinterp': 'Try statement is not supported',
'interpret': 'Interpreting try statement not yet implemented', 'interpret': 'Interpreting try statement is not yet implemented',
'parse': 'Test not yet implemented: missing code and ast' 'parse': 'Test is not yet implemented: missing code and ast'
} }
tests = [ tests = [

View File

@ -2,7 +2,7 @@ from __future__ import unicode_literals
skip = { skip = {
'jsinterp': 'Unary operations are not supported', 'jsinterp': 'Unary operations are not supported',
'parse': True 'parse': 'Test is not yet implemented: missing ast'
} }
tests = [ tests = [

View File

@ -1,9 +1,9 @@
from __future__ import unicode_literals from __future__ import unicode_literals
skip = { skip = {
'jsinterp': 'Test not implemented', 'jsinterp': 'Test is not implemented',
'parse': 'Test not implemented', 'interpert': 'Test is not implemented',
'interpert': 'Test not implemented' 'parse': 'Test is not implemented'
} }
tests = [ tests = [

View File

@ -5,7 +5,7 @@ from youtube_dl.jsinterp2.tstream import _ASSIGN_OPERATORS, _UNARY_OPERATORS, _R
skip = { skip = {
'jsinterp': 'While loop is not supported', 'jsinterp': 'While loop is not supported',
'interpret': 'Interpreting while loop not yet implemented' 'interpret': 'Interpreting while loop is not yet implemented'
} }
tests = [ tests = [

View File

@ -4,8 +4,8 @@ from youtube_dl.jsinterp2.jsgrammar import Token
skip = { skip = {
'jsinterp': 'With statement is not supported', 'jsinterp': 'With statement is not supported',
'interpret': 'Interpreting with statement not yet implemented', 'interpret': 'Interpreting with statement is not yet implemented',
'parse': 'Test not yet implemented: missing code and ast' 'parse': 'Test is not yet implemented: missing code and ast'
} }
tests = [ tests = [