Fixes feature tests titles
This commit is contained in:
parent
3c7ef79487
commit
bcbc21a51c
@ -381,7 +381,7 @@ var tests = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'dash-array',
|
id: 'dash-array',
|
||||||
name: 'dashed lined is supported',
|
name: 'dashed line style is supported',
|
||||||
run: function () {
|
run: function () {
|
||||||
if (!isCanvasSupported)
|
if (!isCanvasSupported)
|
||||||
return { output: 'Skipped', emulated: '' };
|
return { output: 'Skipped', emulated: '' };
|
||||||
@ -429,7 +429,7 @@ var tests = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'font-face-sync',
|
id: 'font-face-sync',
|
||||||
name: '@font-face data urls are loaded synchronously',
|
name: '@font-face loading completion detection',
|
||||||
run: function () {
|
run: function () {
|
||||||
if (!isCanvasSupported)
|
if (!isCanvasSupported)
|
||||||
return { output: 'Skipped', emulated: '' };
|
return { output: 'Skipped', emulated: '' };
|
||||||
@ -441,14 +441,18 @@ var tests = [
|
|||||||
var styleSheet = styleElement.sheet;
|
var styleSheet = styleElement.sheet;
|
||||||
styleSheet.insertRule(rule, styleSheet.cssRules.length);
|
styleSheet.insertRule(rule, styleSheet.cssRules.length);
|
||||||
|
|
||||||
|
// checking if data urls are loaded synchronously
|
||||||
if (checkCanvas('plus-loaded'))
|
if (checkCanvas('plus-loaded'))
|
||||||
return { output: 'Success', emulated: '' };
|
return { output: 'Success', emulated: '' };
|
||||||
|
|
||||||
|
// TODO checking if data urls are loaded asynchronously
|
||||||
|
|
||||||
var usageElement = document.createElement('div');
|
var usageElement = document.createElement('div');
|
||||||
usageElement.setAttribute('style', 'font-family: plus-loaded; visibility: hidden;');
|
usageElement.setAttribute('style', 'font-family: plus-loaded; visibility: hidden;');
|
||||||
usageElement.textContent = '`';
|
usageElement.textContent = '`';
|
||||||
document.body.appendChild(usageElement);
|
document.body.appendChild(usageElement);
|
||||||
|
|
||||||
|
// verify is font is loaded
|
||||||
var promise = new Promise();
|
var promise = new Promise();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
if (checkCanvas('plus-loaded'))
|
if (checkCanvas('plus-loaded'))
|
||||||
|
Loading…
Reference in New Issue
Block a user