Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Remove unused expected manifest js files #1289

Merged
merged 1 commit into from
Nov 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
"test/karma.conf.js",
"scripts",
"utils",
"test/test-manifests.js",
"test/test-expected.js"
"test/test-manifests.js"
]
},
"files": [
Expand Down
16 changes: 0 additions & 16 deletions scripts/manifest-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ var basePath = path.resolve(__dirname, '..');
var testDataDir = path.join(basePath,'test');
var manifestDir = path.join(basePath, 'utils', 'manifest');
var manifestFilepath = path.join(testDataDir, 'test-manifests.js');
var expectedFilepath = path.join(testDataDir, 'test-expected.js');

var build = function() {
var manifests = 'export default {\n';
var expected = 'export default {\n';

var files = fs.readdirSync(manifestDir);
while (files.length > 0) {
Expand All @@ -28,11 +26,6 @@ var build = function() {
// strip leading spaces and the trailing '+'
.slice(4, -3);
manifests += ',\n';
} else if (extname === '.js') {
// append the expected parse
expected += ' "' + path.basename(file, '.js') + '": ';
expected += fs.readFileSync(file, 'utf8');
expected += ',\n';
} else {
console.log('Unknown file ' + file + ' found in manifest dir ' + manifestDir);
}
Expand All @@ -42,13 +35,9 @@ var build = function() {
// clean up and close the objects
manifests = manifests.slice(0, -2);
manifests += '\n};\n';
expected = expected.slice(0, -2);
expected += '\n};\n';

fs.writeFileSync(manifestFilepath, manifests);
fs.writeFileSync(expectedFilepath, expected);
console.log('Wrote test data file ' + manifestFilepath);
console.log('Wrote test data file ' + expectedFilepath);
};

var watch = function() {
Expand All @@ -65,11 +54,6 @@ var clean = function() {
} catch(e) {
console.log(e);
}
try {
fs.unlinkSync(expectedFilepath);
} catch(e) {
console.log(e);
}
}

module.exports = {
Expand Down
31 changes: 0 additions & 31 deletions utils/manifest/absoluteUris.js

This file was deleted.

164 changes: 0 additions & 164 deletions utils/manifest/allowCache.js

This file was deleted.

20 changes: 0 additions & 20 deletions utils/manifest/allowCacheInvalid.js

This file was deleted.

55 changes: 0 additions & 55 deletions utils/manifest/alternateAudio.js

This file was deleted.

47 changes: 0 additions & 47 deletions utils/manifest/alternateVideo.js

This file was deleted.

Loading