@@ -381,7 +381,7 @@ var tests = [
381
381
},
382
382
{
383
383
id : 'dash-array' ,
384
- name : 'dashed lined is supported' ,
384
+ name : 'dashed line style is supported' ,
385
385
run : function () {
386
386
if (!isCanvasSupported )
387
387
return { output : 'Skipped' , emulated : '' };
@@ -429,7 +429,7 @@ var tests = [
429
429
},
430
430
{
431
431
id : 'font-face-sync' ,
432
- name : '@font-face data urls are loaded synchronously ' ,
432
+ name : '@font-face loading completion detection ' ,
433
433
run : function () {
434
434
if (!isCanvasSupported )
435
435
return { output : 'Skipped' , emulated : '' };
@@ -441,14 +441,18 @@ var tests = [
441
441
var styleSheet = styleElement .sheet ;
442
442
styleSheet .insertRule (rule , styleSheet .cssRules .length );
443
443
444
+ // checking if data urls are loaded synchronously
444
445
if (checkCanvas ('plus-loaded' ))
445
446
return { output : 'Success' , emulated : '' };
446
447
448
+ // TODO checking if data urls are loaded asynchronously
449
+
447
450
var usageElement = document .createElement ('div' );
448
451
usageElement .setAttribute ('style' , 'font-family: plus-loaded; visibility: hidden;' );
449
452
usageElement .textContent = '`' ;
450
453
document .body .appendChild (usageElement );
451
454
455
+ // verify is font is loaded
452
456
var promise = new Promise ();
453
457
setTimeout (function () {
454
458
if (checkCanvas ('plus-loaded' ))
0 commit comments