1const path = require('path'); 2const Tokenizer = require('parse5/lib/tokenizer'); 3const generateTokenizationTests = require('../../../test/utils/generate-tokenization-tests'); 4const ParserFeedbackSimulator = require('../lib/parser-feedback-simulator'); 5 6generateTokenizationTests( 7 exports, 8 'ParserFeedbackSimulator', 9 path.join(__dirname, '../../../test/data/parser-feedback'), 10 () => { 11 const tokenizer = new Tokenizer(); 12 const feedbackSimulator = new ParserFeedbackSimulator(tokenizer); 13 14 return { tokenizer, getNextToken: () => feedbackSimulator.getNextToken() }; 15 } 16); 17