From 07e80df3993d1384c7de518dba430b0cd070e7c4 Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sat, 29 Dec 2012 14:33:30 +0200 Subject: [PATCH] Fixed lint error --- src/Parse.js | 4 ++-- tests/results/chrome-23.0.1271.97-windows-vista.json | 1 - tests/results/chrome.json | 1 - tests/results/firefox-12.0-windows-vista.json | 1 - tests/results/firefox.json | 1 - tests/results/iexplorer-9-windows-vista.json | 1 - tests/results/iexplorer.json | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 tests/results/chrome-23.0.1271.97-windows-vista.json delete mode 100644 tests/results/chrome.json delete mode 100644 tests/results/firefox-12.0-windows-vista.json delete mode 100644 tests/results/firefox.json delete mode 100644 tests/results/iexplorer-9-windows-vista.json delete mode 100644 tests/results/iexplorer.json diff --git a/src/Parse.js b/src/Parse.js index 9eaca5a..2b273a2 100644 --- a/src/Parse.js +++ b/src/Parse.js @@ -274,8 +274,8 @@ _html2canvas.Parse = function (images, options) { text_align = text_align.replace(["-webkit-auto"],["auto"]); - renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing)) - ? textNode.nodeValue.split(/(\b| )/) + renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing)) ? + textNode.nodeValue.split(/(\b| )/) : textNode.nodeValue.split(""); metrics = setTextVariables(ctx, el, text_decoration, color); diff --git a/tests/results/chrome-23.0.1271.97-windows-vista.json b/tests/results/chrome-23.0.1271.97-windows-vista.json deleted file mode 100644 index 8c8cf53..0000000 --- a/tests/results/chrome-23.0.1271.97-windows-vista.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":98,"cases/background/linear-gradient.html":82.27},"date":"2012-12-28T16:48:04.248Z","version":"23.0.1271.97"} \ No newline at end of file diff --git a/tests/results/chrome.json b/tests/results/chrome.json deleted file mode 100644 index 01acad7..0000000 --- a/tests/results/chrome.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":100,"cases/background/linear-gradient.html":82.27},"date":"2012-12-28T16:48:04.248Z","version":"23.0.1271.97"} \ No newline at end of file diff --git a/tests/results/firefox-12.0-windows-vista.json b/tests/results/firefox-12.0-windows-vista.json deleted file mode 100644 index ffe0de2..0000000 --- a/tests/results/firefox-12.0-windows-vista.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":100,"cases/background/linear-gradient.html":92.64},"date":"2012-12-28T16:48:10.772Z","version":"12.0"} \ No newline at end of file diff --git a/tests/results/firefox.json b/tests/results/firefox.json deleted file mode 100644 index 5b0f7bb..0000000 --- a/tests/results/firefox.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":100,"cases/background/linear-gradient.html":85.64},"date":"2012-12-28T16:48:10.772Z","version":"12.0"} \ No newline at end of file diff --git a/tests/results/iexplorer-9-windows-vista.json b/tests/results/iexplorer-9-windows-vista.json deleted file mode 100644 index 526cd67..0000000 --- a/tests/results/iexplorer-9-windows-vista.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":100,"cases/background/linear-gradient.html":100},"date":"2012-12-28T16:48:04.855Z","version":"9"} \ No newline at end of file diff --git a/tests/results/iexplorer.json b/tests/results/iexplorer.json deleted file mode 100644 index 526cd67..0000000 --- a/tests/results/iexplorer.json +++ /dev/null @@ -1 +0,0 @@ -{"tests":{"cases/background/encoded.html":100,"cases/background/linear-gradient.html":100},"date":"2012-12-28T16:48:04.855Z","version":"9"} \ No newline at end of file