Add tests: getColor on black, red, color, transparent, white image

This commit is contained in:
Lokesh Dhakar
2019-04-29 08:24:09 -07:00
parent 2ffa707ae0
commit 8e77715d5d
3 changed files with 51 additions and 12 deletions

View File

@@ -28,7 +28,6 @@ document.querySelectorAll('.image').forEach((image) => {
// Run Color Thief functions and display results below image.
// We also log execution time of functions for display.
const showColorsForImage = function(image, section) {
const file = section.src;
const start = Date.now();
const color = colorThief.getColor(image);
const elapsedTimeForGetColor = Date.now() - start;