app-validator/jsmain.py

15 строки
459 B
Python
Исходник Обычный вид История

2010-08-11 22:33:04 +04:00
import sys
import os
import validator.testcases.scripting
from validator.testcases.javascript.traverser import MockBundler
import validator.testcases.javascript.traverser
validator.testcases.javascript.traverser.DEBUG = True
2010-08-11 22:33:04 +04:00
path = sys.argv[1]
2010-08-12 22:26:04 +04:00
script = open(path).read()
err = MockBundler()
validator.testcases.scripting.test_js_file(err=err,
filename=path,
data=script)