summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md')
-rw-r--r--www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md b/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md
new file mode 100644
index 00000000..7c0f3663
--- /dev/null
+++ b/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/qunit/addons/canvas/README.md
@@ -0,0 +1,16 @@
+Canvas - A QUnit Addon For Testing Canvas Rendering
+================================
+
+This addon for QUnit adds a pixelEqual method that allows you to assert
+individual pixel values in a given canvas.
+
+Usage:
+
+ pixelEqual(canvas, x, y, r, g, b, a, message)
+
+Where:
+
+ * canvas: Reference to a canvas element
+ * x, y: Coordinates of the pixel to test
+ * r, g, b, a: The color and opacity value of the pixel that you except
+ * message: Optional message, same as for other assertions