Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit 12f6ce5

Browse files
committed
Tests: Handle subdirectories in W3C tests
Ref gh-314
1 parent 0c3e84b commit 12f6ce5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"rollup": "^0.29.0"
3939
},
4040
"web-platform-tests": {
41-
"repo": "w3c/web-platform-tests#d12b850c1b6200757e9e19e794d268237c548b14",
41+
"repo": "w3c/web-platform-tests#c5d333c859075744b3828a2a29057ee456234cb2",
4242
"path": "./tests/w3c"
4343
},
4444
"scripts": {

tests/support/pretest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ function getFiles(tree) {
8888

8989
function getTests(tree) {
9090
return Promise.all(_.map(tree, function(object) {
91+
if (object.type === 'tree') {
92+
return Promise.resolve();
93+
}
9194
var $raw = getRaw(object.url);
9295
return $raw.then(function(raw) {
9396
return fs.outputFileAsync(path.join(testPath, object.path), raw, 'utf-8');

0 commit comments

Comments
 (0)