2010-08-11 22:33:04 +04:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
|
|
|
|
import validator.testcases.scripting
|
2010-12-25 03:05:36 +03:00
|
|
|
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()
|
2010-12-25 03:05:36 +03:00
|
|
|
err = MockBundler()
|
2010-12-30 22:15:18 +03:00
|
|
|
validator.testcases.scripting.test_js_file(err=err,
|
|
|
|
filename=path,
|
|
|
|
data=script)
|