diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/.DS_Store differ diff --git a/Gruntfile.js b/Gruntfile.js index 88faa9e..cef2430 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -92,6 +92,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-contrib-qunit'); // Default task. + grunt.registerTask('build', ['concat', 'uglify']); grunt.registerTask('default', ['jshint', 'concat', 'qunit', 'uglify', 'webdriver']); }; diff --git a/tests/readme.md b/tests/readme.md index 2ffdd03..9f3a606 100644 --- a/tests/readme.md +++ b/tests/readme.md @@ -1,35 +1,35 @@ -
chrome 23.0.1271.97 | firefox 12.0 | iexplorer 9 | |
---|---|---|---|
background/clip.html | 100% | 100% | 99.89% |
background/encoded.html | 100% | 100% | 100% |
background/linear-gradient.html | 89.87% | 90.73% | 100% |
background/multi.html | 100% | 100% | 99.93% |
background/position.html | 100% | 100% | 99.87% |
background/radial-gradient.html | 73.23% | 70.32% | 94.02% |
background/repeat.html | 100% | 100% | 99.92% |
border/dashed.html | 96.45% | 98.38% | 97.7% |
border/dotted.html | 97.41% | 96.46% | 95.93% |
border/double.html | 97.96% | 97.87% | 97.95% |
border/radius.html | 99.74% | 99.77% | 99.75% |
border/solid.html | 99.97% | 99.97% | 99.98% |
forms.html | 95.96% | 94.55% | 95.01% |
images/canvas.html | 99.86% | 100% | 100% |
images/cross-origin.html | 97.99% | 97.58% | 99.35% |
images/empty.html | 99.86% | 99.87% | 99.85% |
images/images.html | 83.72% | 96.93% | 55.09% |
images/svg.html | 99.92% | 96.79% | 99.93% |
list/decimal-leading-zero.html | 99.63% | 99.72% | 35.88% |
list/decimal.html | 99.64% | 99.73% | 35.89% |
list/lower-alpha.html | 99.65% | 99.73% | 35.89% |
list/upper-roman.html | 99.45% | 99.61% | 35.94% |
overflow.html | 96.85% | 97.49% | 96.5% |
pseudoelements.html | 97.36% | 97.94% | 99.37% |
text/chinese.html | 99.75% | 99.74% | 65.76% |
text/linethrough.html | 97.14% | 94.12% | 47.08% |
text/text.html | 95.71% | 94.67% | 85.01% |
text/underline-lineheight.html | 97.06% | 92.35% | 53% |
text/underline.html | 97.65% | 93.5% | 47.02% |
visibility.html | 99.19% | 98.92% | 99.39% |
zindex/z-index1.html | 96.99% | 99.27% | 99.44% |
zindex/z-index2.html | 95.85% | 98.06% | 97.72% |
zindex/z-index3.html | 98.6% | 98.29% | 98.56% |
chrome 23.0.1271.97 | firefox 12.0 | iexplorer 9 | chrome 25.0.1364.172 Mac 10.7.4 | firefox 19.0.2 Mac 10.7.4 | safari 6.0 Mac 10.7.4 | |
---|---|---|---|---|---|---|
background/clip.html | 100% | 100% | 99.89% | 100% | 100% | 100% |
background/encoded.html | 100% | 100% | 100% | 100% | 100% | 100% |
background/linear-gradient.html | 89.87% | 90.73% | 100% | 95.35% | 91.33% | 91.69% |
background/multi.html | 100% | 100% | 99.93% | 100% | 100% | 100% |
background/position.html | 100% | 100% | 99.87% | 100% | 100% | 100% |
background/radial-gradient.html | 73.23% | 70.32% | 94.02% | 87.65% | 57.99% | 79.95% |
background/repeat.html | 100% | 100% | 99.92% | 100% | 100% | 100% |
border/dashed.html | 96.45% | 98.38% | 97.7% | 98.36% | 98.47% | 97.43% |
border/dotted.html | 97.41% | 96.46% | 95.93% | 98.81% | 96.31% | 98.13% |
border/double.html | 97.96% | 97.87% | 97.95% | 99.06% | 97.99% | 98.53% |
border/radius.html | 99.74% | 99.77% | 99.75% | 99.88% | 99.81% | 99.75% |
border/solid.html | 99.97% | 99.97% | 99.98% | 99.99% | 99.97% | 99.98% |
forms.html | 95.96% | 94.55% | 95.01% | 98.57% | 94.2% | 97.69% |
images/canvas.html | 99.86% | 100% | 100% | 99.93% | 100% | 99.87% |
images/cross-origin.html | 97.99% | 97.58% | 99.35% | 99.7% | 98.41% | 99.89% |
images/empty.html | 99.86% | 99.87% | 99.85% | 99.91% | 99.81% | 99.86% |
images/images.html | 83.72% | 96.93% | 55.09% | 92.45% | 95.81% | 87.06% |
images/svg.html | 99.92% | 96.79% | 99.93% | 99.95% | 96.51% | 99.92% |
list/decimal-leading-zero.html | 99.63% | 99.72% | 35.88% | 99.7% | 99.99% | 15.05% |
list/decimal.html | 99.64% | 99.73% | 35.89% | 99.71% | 99.99% | 15.06% |
list/lower-alpha.html | 99.65% | 99.73% | 35.89% | 99.72% | 99.98% | 15.06% |
list/upper-roman.html | 99.45% | 99.61% | 35.94% | 99.59% | 99.99% | 13.97% |
overflow.html | 96.85% | 97.49% | 96.5% | 98.15% | 97.96% | 99.42% |
pseudoelements.html | 97.36% | 97.94% | 99.37% | 98.73% | 97.81% | 98.29% |
text/chinese.html | 99.75% | 99.74% | 65.76% | 93.93% | 96% | 46.75% |
text/linethrough.html | 97.14% | 94.12% | 47.08% | 98.99% | 90.28% | 31.02% |
text/text.html | 95.71% | 94.67% | 85.01% | 96.83% | 95.6% | 94.63% |
text/underline-lineheight.html | 97.06% | 92.35% | 53% | 99.15% | 93.69% | 40.76% |
text/underline.html | 97.65% | 93.5% | 47.02% | 99.35% | 89.85% | 31.07% |
visibility.html | 99.19% | 98.92% | 99.39% | 99.69% | 99.32% | 99.74% |
zindex/z-index1.html | 96.99% | 99.27% | 99.44% | 98.62% | 98.48% | 98% |
zindex/z-index2.html | 95.85% | 98.06% | 97.72% | 97.79% | 96.69% | 96.72% |
zindex/z-index3.html | 98.6% | 98.29% | 98.56% | 99.35% | 96.49% | 97.92% |
", - browsers = ["chrome", "firefox", "iexplorer"]; + var data = {}, + html = " |
", + md = " | ", + browsers = ["chrome", "firefox", "iexplorer", "safari"], + activeBrowsers = []; + // Create row for browsers browsers.forEach(function(browser) { - data[browser] = JSON.parse(fs.readFileSync("tests/results/" + browser + ".json")); - html += " | " + browser + " " + data[browser].version + " | ";
- });
- html += "" + browser + " " + data[browser].version + " | ";
+ md += browser + data[browser].version + " | ";
+ } else {
+ console.log("Browser report not found. ", browser + ".json");
+ }
+
+ });
+
+ html += "\n";
+ md += "\n ----";
+ for (var i = activeBrowsers.length - 1; i >= 0; i--) {
+ md += "|---- ";
+ }
+ md += "\n";
+
+ Object.keys(data[activeBrowsers[0]].tests).forEach(function(testFile) {
+
html += "
---|---|---|
" + testFile.substring(12) + " | "; - browsers.forEach(function(browser) { - html += "" + Math.round(data[browser].tests[testFile] * 100) / 100 + "% | "; + md += testFile.substring(12); + activeBrowsers.forEach(function(activeBrowsers) { + html += "" + Math.round(data[activeBrowsers].tests[testFile] * 100) / 100 + "% | "; + md += " | " + Math.round(data[activeBrowsers].tests[testFile] * 100) / 100 + "%"; }); - html += "