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

Unified Diff: LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt

Issue 196243007: Implement CRC2D.scrollPathIntoView() on Canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update and layout test Created 6 years, 9 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-scroll-path-into-view-expected.txt
diff --git a/LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt b/LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3e80f05ad74631a9330bdfdbbd9b8e951d32e7e8
--- /dev/null
+++ b/LayoutTests/fast/canvas/canvas-scroll-path-into-view-expected.txt
@@ -0,0 +1,28 @@
+Series of tests to ensure correct results of scrolling path into view on canvas
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+Test case 1: scrollPathIntoView();
+PASS testValue is 100
+PASS testValue is 600
+PASS testValue is 600
+PASS testValue is 1100
+PASS testValue is 600
+
+Test case 2: scrollPathIntoView(path);
+PASS testValue is 100
+PASS testValue is 600
+PASS testValue is 600
+PASS testValue is 1100
+PASS testValue is 600
+
+Test case 3: exceptions
+PASS context.scrollPathIntoView(null); threw exception TypeMismatchError: Failed to execute 'scrollPathIntoView' on 'CanvasRenderingContext2D': The 1st argument provided is either null, or an invalid Path2D object..
+PASS context.scrollPathIntoView([]); threw exception TypeError: Failed to execute 'scrollPathIntoView' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
+PASS context.scrollPathIntoView({}); threw exception TypeError: Failed to execute 'scrollPathIntoView' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698