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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-offset.js

Issue 2703803002: 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/gradient-addColorStop-with-invalid-offset.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-offset.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-offset.js
deleted file mode 100644
index 493ad9aaccc092e189d4b7c6f8692fcc03727897..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-offset.js
+++ /dev/null
@@ -1,10 +0,0 @@
-description('This test checks invalid offsets on gradients.');
-
-var gradient = document.createElement('canvas').getContext('2d').createLinearGradient(0, 0, 150, 0);
-
-// Check that invalid offset values throw.
-shouldThrow("gradient.addColorStop(-1, '#000')");
-shouldThrow("gradient.addColorStop(2, '#000')");
-shouldThrow("gradient.addColorStop(Infinity, '#000')");
-shouldThrow("gradient.addColorStop(-Infinity, '#000')");
-shouldThrow("gradient.addColorStop(NaN, '#000')");

Powered by Google App Engine
This is Rietveld 408576698