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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-webkitLineDash.js

Issue 2693043012: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 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: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-webkitLineDash.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-webkitLineDash.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-webkitLineDash.js
deleted file mode 100644
index c2d778a4b206b23d02cac9d7f5cf6148af236e4c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-webkitLineDash.js
+++ /dev/null
@@ -1,28 +0,0 @@
-description("Basic test for webkitLineDash and webkitLineDashOffset");
-
-var canvas = document.createElement('canvas');
-document.body.appendChild(canvas);
-canvas.setAttribute('width', '700');
-canvas.setAttribute('height', '700');
-var ctx = canvas.getContext('2d');
-
-// Verify default values.
-shouldBe('ctx.webkitLineDashOffset', '0');
-
-// Set dash-style.
-ctx.webkitLineDash = [15, 10];
-ctx.webkitLineDashOffset = 5;
-ctx.strokeRect (10,10,100,100);
-
-// Verify dash and offset.
-var lineDash;
-lineDash = ctx.webkitLineDash;
-shouldBe('lineDash[0]', '15');
-shouldBe('lineDash[1]', '10');
-shouldBe('ctx.webkitLineDashOffset', '5');
-
-// Verify that line dash offset persists after
-// clearRect (which causes a save/restore of the context
-// state to the stack).
-ctx.clearRect(0, 0, 700, 700);
-shouldBe('ctx.webkitLineDashOffset', '5');

Powered by Google App Engine
This is Rietveld 408576698