mirror of
https://github.com/Polymer/polymer.git
synced 2025-02-25 18:55:30 -06:00
test more permutations
This commit is contained in:
committed by
Tim van der Lippe
parent
41616c6fbd
commit
f03e8d1b3e
@@ -101,26 +101,26 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
// test shadowdom/custom elements polyfills together
|
||||
// preferring both if possible.
|
||||
var matrix = [''];
|
||||
var webcomponents = '';
|
||||
if (window.customElements) {
|
||||
webcomponents = 'wc-ce=true';
|
||||
matrix.push('wc-ce=true');
|
||||
}
|
||||
// if native is available, make sure to test polyfill
|
||||
if (Element.prototype.attachShadow && Node.prototype.getRootNode) {
|
||||
webcomponents = addUrlOption(webcomponents, 'wc-shadydom=true');
|
||||
matrix.push('wc-shadydom=true');
|
||||
}
|
||||
// ce + sd becomes a single test iteration.
|
||||
if (webcomponents) {
|
||||
matrix.push(webcomponents);
|
||||
// Both sd and ce are supported, force both polyfills
|
||||
if (matrix.length === 3) {
|
||||
// ce + sd becomes a single test iteration.
|
||||
matrix.push('wc-ce=true&wc-shadydom=true');
|
||||
}
|
||||
|
||||
// economize testing by testing css shimming
|
||||
// only against 1 environment (native or polyfill).
|
||||
if (window.CSS && CSS.supports && CSS.supports('box-shadow', '0 0 0 var(--foo)')) {
|
||||
var last = matrix[matrix.length-1];
|
||||
var last = matrix.length === 1 ? '' : matrix[matrix.length - 1];
|
||||
matrix.push(addUrlOption(last, 'wc-shimcssproperties=true'));
|
||||
}
|
||||
suites = combinations(suites, [matrix]);
|
||||
|
||||
console.log('Testing suites:\n\t' + suites.join('\n\t'));
|
||||
|
||||
WCT.loadSuites(suites);
|
||||
|
||||
Reference in New Issue
Block a user