diff options
-rw-r--r-- | plugins/DevicesDetection/images/brand/Orange.ico | bin | 1145 -> 1406 bytes | |||
-rw-r--r-- | plugins/DevicesDetection/images/brand/Pantech.ico | bin | 3201 -> 1406 bytes | |||
-rw-r--r-- | plugins/DevicesDetection/images/brand/Vertu.ico | bin | 2946 -> 1518 bytes | |||
-rw-r--r-- | plugins/DevicesDetection/images/brand/Zonda.ico | bin | 295 -> 1406 bytes | |||
-rw-r--r-- | plugins/DevicesDetection/images/brand/unknown.ico | bin | 1150 -> 1150 bytes | |||
-rw-r--r-- | tests/PHPUnit/Core/ReleaseCheckListTest.php | 19 |
6 files changed, 19 insertions, 0 deletions
diff --git a/plugins/DevicesDetection/images/brand/Orange.ico b/plugins/DevicesDetection/images/brand/Orange.ico Binary files differindex 55437dda38..aeba6d616e 100644 --- a/plugins/DevicesDetection/images/brand/Orange.ico +++ b/plugins/DevicesDetection/images/brand/Orange.ico diff --git a/plugins/DevicesDetection/images/brand/Pantech.ico b/plugins/DevicesDetection/images/brand/Pantech.ico Binary files differindex 6fc39d30cb..ebdda16744 100644 --- a/plugins/DevicesDetection/images/brand/Pantech.ico +++ b/plugins/DevicesDetection/images/brand/Pantech.ico diff --git a/plugins/DevicesDetection/images/brand/Vertu.ico b/plugins/DevicesDetection/images/brand/Vertu.ico Binary files differindex 48ff28926b..7d8abdb82c 100644 --- a/plugins/DevicesDetection/images/brand/Vertu.ico +++ b/plugins/DevicesDetection/images/brand/Vertu.ico diff --git a/plugins/DevicesDetection/images/brand/Zonda.ico b/plugins/DevicesDetection/images/brand/Zonda.ico Binary files differindex eede4f8baa..c9bcd6f0c6 100644 --- a/plugins/DevicesDetection/images/brand/Zonda.ico +++ b/plugins/DevicesDetection/images/brand/Zonda.ico diff --git a/plugins/DevicesDetection/images/brand/unknown.ico b/plugins/DevicesDetection/images/brand/unknown.ico Binary files differindex 62a489e293..1e9b327a91 100644 --- a/plugins/DevicesDetection/images/brand/unknown.ico +++ b/plugins/DevicesDetection/images/brand/unknown.ico diff --git a/tests/PHPUnit/Core/ReleaseCheckListTest.php b/tests/PHPUnit/Core/ReleaseCheckListTest.php index bd216dade2..abc6277fef 100644 --- a/tests/PHPUnit/Core/ReleaseCheckListTest.php +++ b/tests/PHPUnit/Core/ReleaseCheckListTest.php @@ -17,6 +17,25 @@ class ReleaseCheckListTest extends PHPUnit_Framework_TestCase parent::setUp(); } + public function test_icoFilesIconsShouldBeInPngFormat() + { + $files = Filesystem::globr(PIWIK_INCLUDE_PATH . '/plugins', '*.ico'); + $errors = array(); + foreach ($files as $file) { + if(false !== @imagecreatefrompng($file)) { + $errors[] = $file; + } + } + if(!empty($errors)) { + $msg =''; + foreach($errors as $file) { + $msg .= " convert png:$file $file \n"; + } + $this->fail("imagecreatefrompng failed for following icons (--> Convert them to valid PNG .ico files with following command: \n\n" . $msg); + } + + } + /** * @group Core */ |