mirror of https://github.com/tc39/test262.git
14 lines
375 B
Python
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
|