mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 841337 - GCLI web should have continuous integration. Maybe Travis-CI; r=mratcliffe
This commit is contained in:
parent
a3e24dd446
commit
03ea3e3bee
@ -60,6 +60,11 @@ exports.shutdown = function(options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.testPredictions = function(options) {
|
exports.testPredictions = function(options) {
|
||||||
|
if (options.isJsdom) {
|
||||||
|
assert.log('Skipping checks due to jsdom document.stylsheets support.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var resource1 = types.getType('resource');
|
var resource1 = types.getType('resource');
|
||||||
var options1 = resource1.getLookup();
|
var options1 = resource1.getLookup();
|
||||||
// firefox doesn't support digging into scripts/stylesheets
|
// firefox doesn't support digging into scripts/stylesheets
|
||||||
@ -67,7 +72,7 @@ exports.testPredictions = function(options) {
|
|||||||
assert.ok(options1.length > 1, 'have all resources');
|
assert.ok(options1.length > 1, 'have all resources');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert.log('Skipping checks due to jsdom/firefox document.stylsheets support.');
|
assert.log('Skipping checks due to firefox document.stylsheets support.');
|
||||||
}
|
}
|
||||||
options1.forEach(function(prediction) {
|
options1.forEach(function(prediction) {
|
||||||
checkPrediction(resource1, prediction);
|
checkPrediction(resource1, prediction);
|
||||||
@ -80,7 +85,7 @@ exports.testPredictions = function(options) {
|
|||||||
assert.ok(options2.length > 1, 'have js resources');
|
assert.ok(options2.length > 1, 'have js resources');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert.log('Skipping checks due to jsdom/firefox document.stylsheets support.');
|
assert.log('Skipping checks due to firefox document.stylsheets support.');
|
||||||
}
|
}
|
||||||
options2.forEach(function(prediction) {
|
options2.forEach(function(prediction) {
|
||||||
checkPrediction(resource2, prediction);
|
checkPrediction(resource2, prediction);
|
||||||
@ -93,7 +98,7 @@ exports.testPredictions = function(options) {
|
|||||||
assert.ok(options3.length >= 1, 'have css resources');
|
assert.ok(options3.length >= 1, 'have css resources');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert.log('Skipping checks due to jsdom/firefox document.stylsheets support.');
|
assert.log('Skipping checks due to firefox document.stylsheets support.');
|
||||||
}
|
}
|
||||||
options3.forEach(function(prediction) {
|
options3.forEach(function(prediction) {
|
||||||
checkPrediction(resource3, prediction);
|
checkPrediction(resource3, prediction);
|
||||||
|
Loading…
Reference in New Issue
Block a user