Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: LayoutTests/fast/canvas/canvas-path-addpath-expected.txt

Issue 170503002: Implement addPath() method for Path object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/canvas-path-addpath-expected.txt
diff --git a/LayoutTests/fast/canvas/canvas-path-addpath-expected.txt b/LayoutTests/fast/canvas/canvas-path-addpath-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6f7f30bf0e1dd56186f5d034d87df405d45e017d
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-path-addpath-expected.txt
@@ -0,0 +1,38 @@
+Test addPath() method.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test addPath() with transform as identity matrix.
+PASS imgdata[4] is 255
+PASS imgdata[5] is 255
+PASS imgdata[6] is 0
+PASS imgdata[7] is 255
+
+Test addPath() with transform as translate(100, -100).
+PASS imgdata[4] is 255
+PASS imgdata[5] is 255
+PASS imgdata[6] is 0
+PASS imgdata[7] is 255
+
+Test addPath() with non-invertible transform.
+PASS imgdata[4] is not 255
+PASS imgdata[5] is not 255
+PASS imgdata[6] is 0
+PASS imgdata[7] is not 255
+
+Test addPath() with transform as null or invalid type.
+PASS imgdata[4] is 255
+PASS imgdata[5] is 0
+PASS imgdata[6] is 0
+PASS imgdata[7] is 255
+
+Test addPath() with path as null and invalid type
+PASS p7.addPath(null, m) threw exception TypeMismatchError: Failed to execute 'addPath' on 'Path': The 1st argument provided is either null, or an invalid Path object..
+PASS p7.addPath([], m) threw exception TypeMismatchError: Failed to execute 'addPath' on 'Path': The 1st argument provided is either null, or an invalid Path object..
+PASS p7.addPath({}, m) threw exception TypeMismatchError: Failed to execute 'addPath' on 'Path': The 1st argument provided is either null, or an invalid Path object..
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/canvas/canvas-path-addpath.html ('k') | LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698