From 1c318ab607f64e3eb3cce639db37f0ec85753043 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Thu, 10 Aug 2017 23:24:26 +0800 Subject: [PATCH] Add ignored reftests --- scripts/create-reftest-list.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/scripts/create-reftest-list.js b/scripts/create-reftest-list.js index 0302f3f..0e4a487 100644 --- a/scripts/create-reftest-list.js +++ b/scripts/create-reftest-list.js @@ -7,6 +7,11 @@ const slash = require('slash'); const parseRefTest = require('./parse-reftest'); const outputPath = 'tests/reftests.js'; +const ignoredTests = [ + '/tests/reftests/background/radial-gradient.html', + '/tests/reftests/text/chinese.html' +]; + glob( '../tests/reftests/**/*.html', { @@ -21,10 +26,16 @@ glob( const testList = files.reduce((acc, filename) => { const refTestFilename = path.resolve(__dirname, filename.replace(/\.html$/, '.txt')); - console.log(refTestFilename); - acc[`/${slash(path.relative('../', filename))}`] = fs.existsSync(refTestFilename) - ? parseRefTest(fs.readFileSync(refTestFilename).toString()) - : null; + const name = `/${slash(path.relative('../', filename))}`; + if (ignoredTests.indexOf(name) === -1) { + console.log(name); + acc[name] = fs.existsSync(refTestFilename) + ? parseRefTest(fs.readFileSync(refTestFilename).toString()) + : null; + } else { + console.log(`IGNORED: ${name}`); + } + return acc; }, {});