test262/tools/lint/lib/checks/harness.py

14 lines
375 B
Python

import yaml
from ..check import Check
class CheckHarness(Check):
'''Ensure tests don't misuse harness APIs.'''
ID = 'HARNESS'
def run(self, name, meta, source):
if 'verifyConfigurable(' in source and 'verifyProperty(' in source:
return 'verifyConfigurable & verifyProperty may not be used in the same file'
else:
return