Skip to content

Commit

Permalink
Tests: Handle subdirectories in W3C tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Oct 22, 2016
1 parent aa1885b commit 3c14e97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"rollup": "^0.29.0"
},
"web-platform-tests": {
"repo": "w3c/web-platform-tests#d12b850c1b6200757e9e19e794d268237c548b14",
"repo": "w3c/web-platform-tests#c5d333c859075744b3828a2a29057ee456234cb2",
"path": "./tests/w3c"
},
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions tests/support/pretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ function getFiles(tree) {

function getTests(tree) {
return Promise.all(_.map(tree, function(object) {
if (object.type === 'tree') {
return Promise.resolve()
}
var $raw = getRaw(object.url);
return $raw.then(function(raw) {
return fs.outputFileAsync(path.join(testPath, object.path), raw, 'utf-8');
Expand Down

0 comments on commit 3c14e97

Please sign in to comment.