From bcbc21a51c08fa48a89db2cbe1adfdf33bfde404 Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Tue, 4 Dec 2012 06:48:57 -0600 Subject: [PATCH] Fixes feature tests titles --- test/features/tests.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/features/tests.js b/test/features/tests.js index 9e17d66ef..a9ea38c33 100644 --- a/test/features/tests.js +++ b/test/features/tests.js @@ -381,7 +381,7 @@ var tests = [ }, { id: 'dash-array', - name: 'dashed lined is supported', + name: 'dashed line style is supported', run: function () { if (!isCanvasSupported) return { output: 'Skipped', emulated: '' }; @@ -429,7 +429,7 @@ var tests = [ }, { id: 'font-face-sync', - name: '@font-face data urls are loaded synchronously', + name: '@font-face loading completion detection', run: function () { if (!isCanvasSupported) return { output: 'Skipped', emulated: '' }; @@ -441,14 +441,18 @@ var tests = [ var styleSheet = styleElement.sheet; styleSheet.insertRule(rule, styleSheet.cssRules.length); + // checking if data urls are loaded synchronously if (checkCanvas('plus-loaded')) return { output: 'Success', emulated: '' }; + // TODO checking if data urls are loaded asynchronously + var usageElement = document.createElement('div'); usageElement.setAttribute('style', 'font-family: plus-loaded; visibility: hidden;'); usageElement.textContent = '`'; document.body.appendChild(usageElement); + // verify is font is loaded var promise = new Promise(); setTimeout(function() { if (checkCanvas('plus-loaded'))