Skip to content

Commit

Permalink
Change [implementation]: false to skipped: { [implementation]: 'reaso…
Browse files Browse the repository at this point in the history
…n' }

Closes #176
  • Loading branch information
Anand Thakker authored and jfirebaugh committed Nov 29, 2016
1 parent d5f17f2 commit d8eba28
Show file tree
Hide file tree
Showing 81 changed files with 313 additions and 134 deletions.
6 changes: 4 additions & 2 deletions lib/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ module.exports = function (directory, implementation, options, run) {
return;
}

if (params[implementation] === false) {
console.log(colors.gray('* skipped ' + params.group + ' ' + params.test));
var skipped = params.skipped && params.skipped[implementation]
if (skipped) {
console.log(colors.gray('* skipped ' + params.group + ' ' + params.test +
' (' + skipped + ')'));
return;
}

Expand Down
4 changes: 3 additions & 1 deletion query-tests/world-wrapping/box/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"skipped": {
"native": "needs issue"
},
"width": 2000,
"height": 500,
"pixelRatio": 0.25,
Expand Down
4 changes: 3 additions & 1 deletion query-tests/world-wrapping/point/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"skipped": {
"native": "needs issue"
},
"debug": true,
"width": 1000,
"height": 250,
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/default/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-brightness/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-contrast/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-hue-rotate/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-opacity/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-saturation/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
6 changes: 4 additions & 2 deletions render-tests/image/raster-visibility/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down
8 changes: 5 additions & 3 deletions render-tests/regressions/mapbox-gl-js#3010/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/601"
},
"width": 512,
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"center": [
Expand Down Expand Up @@ -49,4 +51,4 @@
}
}
]
}
}
39 changes: 29 additions & 10 deletions render-tests/regressions/mapbox-gl-js#3548/style.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
"version": 8,
"metadata": {
"test": {
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860"
},
"height": 512
"height": 512,
"skipped": {
"native": "needs issue"
}
}
},
"sources": {
Expand All @@ -20,13 +22,30 @@
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[
[ -0.0004, -0.0004 ],
[ -0.0004, 0.0000 ],
[ 0.0004, 0.0004 ],
[ 0.0004, -0.0000 ],
[ -0.0004, -0.0004 ]
]]
"coordinates": [
[
[
-0.0004,
-0.0004
],
[
-0.0004,
0
],
[
0.0004,
0.0004
],
[
0.0004,
0
],
[
-0.0004,
-0.0004
]
]
]
}
}
]
Expand Down Expand Up @@ -168,4 +187,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"test": {
"width": 64,
"height": 64,
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860 https://github.com/mapbox/mapbox-gl-native/issues/6518"
},
Expand All @@ -21,7 +20,10 @@
[
"wait"
]
]
],
"skipped": {
"native": "needs issue"
}
}
},
"transition": {
Expand Down Expand Up @@ -74,4 +76,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"test": {
"width": 64,
"height": 64,
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860 https://github.com/mapbox/mapbox-gl-native/issues/6518"
},
Expand All @@ -21,7 +20,10 @@
[
"wait"
]
]
],
"skipped": {
"native": "needs issue"
}
}
},
"transition": {
Expand Down Expand Up @@ -75,4 +77,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"test": {
"width": 64,
"height": 64,
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860 https://github.com/mapbox/mapbox-gl-native/issues/6518"
},
Expand All @@ -18,7 +17,10 @@
[
"wait"
]
]
],
"skipped": {
"native": "needs issue"
}
}
},
"transition": {
Expand Down Expand Up @@ -75,4 +77,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"test": {
"width": 64,
"height": 64,
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860 https://github.com/mapbox/mapbox-gl-native/issues/6518"
},
Expand All @@ -18,7 +17,10 @@
[
"wait"
]
]
],
"skipped": {
"native": "needs issue"
}
}
},
"transition": {
Expand Down Expand Up @@ -75,4 +77,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"test": {
"width": 64,
"height": 64,
"native": false,
"ignored": {
"native": "https://github.com/mapbox/mapbox-gl-native/issues/4860 https://github.com/mapbox/mapbox-gl-native/issues/6518"
},
Expand All @@ -21,7 +20,10 @@
[
"wait"
]
]
],
"skipped": {
"native": "needs issue"
}
}
},
"transition": {
Expand Down Expand Up @@ -70,4 +72,4 @@
"source": "geojson"
}
]
}
}
Loading

0 comments on commit d8eba28

Please sign in to comment.