Skip to content

Commit bcbc21a

Browse files
committed
Fixes feature tests titles
1 parent 3c7ef79 commit bcbc21a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/features/tests.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ var tests = [
381381
},
382382
{
383383
id: 'dash-array',
384-
name: 'dashed lined is supported',
384+
name: 'dashed line style is supported',
385385
run: function () {
386386
if (!isCanvasSupported)
387387
return { output: 'Skipped', emulated: '' };
@@ -429,7 +429,7 @@ var tests = [
429429
},
430430
{
431431
id: 'font-face-sync',
432-
name: '@font-face data urls are loaded synchronously',
432+
name: '@font-face loading completion detection',
433433
run: function () {
434434
if (!isCanvasSupported)
435435
return { output: 'Skipped', emulated: '' };
@@ -441,14 +441,18 @@ var tests = [
441441
var styleSheet = styleElement.sheet;
442442
styleSheet.insertRule(rule, styleSheet.cssRules.length);
443443

444+
// checking if data urls are loaded synchronously
444445
if (checkCanvas('plus-loaded'))
445446
return { output: 'Success', emulated: '' };
446447

448+
// TODO checking if data urls are loaded asynchronously
449+
447450
var usageElement = document.createElement('div');
448451
usageElement.setAttribute('style', 'font-family: plus-loaded; visibility: hidden;');
449452
usageElement.textContent = '`';
450453
document.body.appendChild(usageElement);
451454

455+
// verify is font is loaded
452456
var promise = new Promise();
453457
setTimeout(function() {
454458
if (checkCanvas('plus-loaded'))

0 commit comments

Comments
 (0)