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

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

Issue 2681423002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Adding exceptions to TestExpectations 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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash-invalid.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash-invalid.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash-invalid.js
deleted file mode 100644
index 35f73df6fd14e2150422c31bd55f7362f610df6f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash-invalid.js
+++ /dev/null
@@ -1,44 +0,0 @@
-description("Test for invalid input of setLineDash, getLineDash and lineDashOffset");
-
-var canvas = document.createElement('canvas');
-document.body.appendChild(canvas);
-canvas.setAttribute('width', '700');
-canvas.setAttribute('height', '700');
-var ctx = canvas.getContext('2d');
-var initialLineDash = [1.5, 2.5];
-var initialLineDashOffset = 1.5;
-
-function resetLineDash() {
- ctx.setLineDash(initialLineDash);
- ctx.lineDashOffset = initialLineDashOffset;
-}
-
-function trySettingLineDash(value) {
- resetLineDash();
- ctx.setLineDash(value);
- return ctx.getLineDash();
-}
-
-function trySettingLineDashWithNoArgs() {
- resetLineDash();
- ctx.setLineDash();
- return ctx.getLineDash();
-}
-
-function trySettingLineDashOffset(value) {
- resetLineDash();
- ctx.lineDashOffset = value;
- return ctx.lineDashOffset;
-}
-
-shouldBe("trySettingLineDash([1, -1])", "initialLineDash");
-shouldBe("trySettingLineDash([1, Infinity])", "initialLineDash");
-shouldBe("trySettingLineDash([1, -Infinity])", "initialLineDash");
-shouldBe("trySettingLineDash([1, NaN])", "initialLineDash");
-shouldBe("trySettingLineDash([1, 'string'])", "initialLineDash");
-shouldThrow("trySettingLineDashWithNoArgs()", '"TypeError: Failed to execute \'setLineDash\' on \'CanvasRenderingContext2D\': 1 argument required, but only 0 present."');
-
-shouldBe("trySettingLineDashOffset(Infinity)", "initialLineDashOffset");
-shouldBe("trySettingLineDashOffset(-Infinity)", "initialLineDashOffset");
-shouldBe("trySettingLineDashOffset(NaN)", "initialLineDashOffset");
-shouldBe("trySettingLineDashOffset('string')", "initialLineDashOffset");
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-lineDash.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698