Skip to content
Permalink
Browse files

Unit testing for image thumbnails

  • Loading branch information...
Patrick Schmalstig
Patrick Schmalstig committed Jul 24, 2019
1 parent 4693d77 commit 5ec2925c57033b0c9061278ecb0ac2a1f50c1ff2
Showing with 1,311 additions and 72 deletions.
  1. BIN _tests/assets/images/16x9.gif
  2. BIN _tests/assets/images/16x9.jpeg
  3. BIN _tests/assets/images/16x9.jpg
  4. BIN _tests/assets/images/16x9.png
  5. BIN _tests/assets/images/18x32.gif
  6. BIN _tests/assets/images/18x32.jpeg
  7. BIN _tests/assets/images/18x32.jpg
  8. BIN _tests/assets/images/18x32.png
  9. BIN _tests/assets/images/1x1.gif
  10. BIN _tests/assets/images/1x1.jpeg
  11. BIN _tests/assets/images/1x1.jpg
  12. BIN _tests/assets/images/1x1.png
  13. BIN _tests/assets/images/2x2.gif
  14. BIN _tests/assets/images/2x2.jpeg
  15. BIN _tests/assets/images/2x2.jpg
  16. BIN _tests/assets/images/2x2.png
  17. BIN _tests/assets/images/32x18.gif
  18. BIN _tests/assets/images/32x18.jpeg
  19. BIN _tests/assets/images/32x18.jpg
  20. BIN _tests/assets/images/32x18.png
  21. BIN _tests/assets/images/3x4.gif
  22. BIN _tests/assets/images/3x4.jpeg
  23. BIN _tests/assets/images/3x4.jpg
  24. BIN _tests/assets/images/3x4.png
  25. BIN _tests/assets/images/4x3.gif
  26. BIN _tests/assets/images/4x3.jpeg
  27. BIN _tests/assets/images/4x3.jpg
  28. BIN _tests/assets/images/4x3.png
  29. BIN _tests/assets/images/6x8.gif
  30. BIN _tests/assets/images/6x8.jpeg
  31. BIN _tests/assets/images/6x8.jpg
  32. BIN _tests/assets/images/6x8.png
  33. BIN _tests/assets/images/8x6.gif
  34. BIN _tests/assets/images/8x6.jpeg
  35. BIN _tests/assets/images/8x6.jpg
  36. BIN _tests/assets/images/8x6.png
  37. BIN _tests/assets/images/9x16.gif
  38. BIN _tests/assets/images/9x16.jpeg
  39. BIN _tests/assets/images/9x16.jpg
  40. BIN _tests/assets/images/9x16.png
  41. BIN _tests/assets/images/exifrotated.jpg
  42. +16 −0 _tests/assets/images/index.html
  43. BIN _tests/assets/images/quadrant.gif
  44. BIN _tests/assets/images/quadrant.jpeg
  45. BIN _tests/assets/images/quadrant.jpg
  46. BIN _tests/assets/images/quadrant.png
  47. BIN _tests/assets/images/translucent.png
  48. BIN _tests/assets/images/transparent.gif
  49. BIN _tests/assets/images/transparent.png
  50. BIN _tests/assets/images/transparent_8bit.png
  51. +973 −0 _tests/assets/images/tux.svg
  52. +16 −0 _tests/assets/index.html
  53. +244 −65 _tests/tests/unit_tests/images.php
  54. +62 −7 sources_custom/hooks/systems/addon_registry/testing_platform.php
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>TODO write content</div>
</body>
</html>
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div>TODO write content</div>
</body>
</html>

Large diffs are not rendered by default.

@@ -1,11 +1,13 @@
<?php /*
<?php
Composr
Copyright (c) ocProducts, 2004-2016
/*
See text/EN/licence.txt for full licencing information.
Composr
Copyright (c) ocProducts, 2004-2016
*/
See text/EN/licence.txt for full licencing information.
*/
/**
* @license http://opensource.org/licenses/cpal_1.0 Common Public Attribution License
@@ -18,6 +20,7 @@
*/
class Hook_addon_registry_testing_platform
{
/**
* Get a list of file permissions to set
*
@@ -109,7 +112,7 @@ public function get_applicable_tutorials()
public function get_dependencies()
{
return array(
'requires' => array( // Actually, it's all
'requires' => array(// Actually, it's all
'meta_toolkit',
),
'recommends' => array(),
@@ -227,6 +230,58 @@ public function get_file_list()
'_tests/cmstest/index.html',
'_tests/cmstest/cms_test_case.php',
'_tests/readme.txt',
'_tests/assets/images/16x9.gif',
'_tests/assets/images/16x9.jpeg',
'_tests/assets/images/16x9.jpg',
'_tests/assets/images/16x9.png',
'_tests/assets/images/18x32.gif',
'_tests/assets/images/18x32.jpeg',
'_tests/assets/images/18x32.jpg',
'_tests/assets/images/18x32.png',
'_tests/assets/images/1x1.gif',
'_tests/assets/images/1x1.jpeg',
'_tests/assets/images/1x1.jpg',
'_tests/assets/images/1x1.png',
'_tests/assets/images/2x2.gif',
'_tests/assets/images/2x2.jpeg',
'_tests/assets/images/2x2.jpg',
'_tests/assets/images/2x2.png',
'_tests/assets/images/32x18.gif',
'_tests/assets/images/32x18.jpeg',
'_tests/assets/images/32x18.jpg',
'_tests/assets/images/32x18.png',
'_tests/assets/images/3x4.gif',
'_tests/assets/images/3x4.jpeg',
'_tests/assets/images/3x4.jpg',
'_tests/assets/images/3x4.png',
'_tests/assets/images/4x3.gif',
'_tests/assets/images/4x3.jpeg',
'_tests/assets/images/4x3.jpg',
'_tests/assets/images/4x3.png',
'_tests/assets/images/6x8.gif',
'_tests/assets/images/6x8.jpeg',
'_tests/assets/images/6x8.jpg',
'_tests/assets/images/6x8.png',
'_tests/assets/images/8x6.gif',
'_tests/assets/images/8x6.jpeg',
'_tests/assets/images/8x6.jpg',
'_tests/assets/images/8x6.png',
'_tests/assets/images/9x16.gif',
'_tests/assets/images/9x16.jpeg',
'_tests/assets/images/9x16.jpg',
'_tests/assets/images/9x16.png',
'_tests/assets/images/exifrotated.jpg',
'_tests/assets/images/tux.svg',
'_tests/assets/images/index.html',
'_tests/assets/images/quadrant.gif',
'_tests/assets/images/quadrant.jpeg',
'_tests/assets/images/quadrant.jpg',
'_tests/assets/images/quadrant.png',
'_tests/assets/images/translucent.png',
'_tests/assets/images/transparent.gif',
'_tests/assets/images/transparent.png',
'_tests/assets/images/transparent_8bit.png',
'_tests/assets/index.html',
'_tests/screens_tested/.htaccess',
'_tests/screens_tested/index.html',
'_tests/simpletest/.htaccess',
@@ -317,7 +372,6 @@ public function get_file_list()
'_tests/tests/regression_tests/index.html',
'_tests/tests/testatom.cms',
'_tests/tests/testrss.cms',
// It is worth noting that most of these are not true unit tests, but integration tests, or other kinds of test
// Pedantry aside - we just want to test as effectively and efficiently and broadly as we can ;-).
// Whatever we can quickly achieve as a testing win for our total platform stability/coherence, we go with.
@@ -527,4 +581,5 @@ public function get_file_list()
'_tests/tests/unit_tests/privilege_existence.php',
);
}
}

0 comments on commit 5ec2925

Please sign in to comment.
You can’t perform that action at this time.