| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-arc-negative-radius.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-arc-negative-radius.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-arc-negative-radius.html
|
| index a1810f53b5e1f51acf0fa6be782bf0529d750d0b..8c52cc5b6a6a0ef3d9b3720fc516e7ddc8e6642e 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-arc-negative-radius.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-arc-negative-radius.html
|
| @@ -1,35 +1,29 @@
|
| -<!DOCTYPE html>
|
| -<html>
|
| -<head>
|
| -<script src="../../resources/js-test.js"></script>
|
| -</head>
|
| -<body>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <p id="description"></p>
|
| <div id="console"></div>
|
|
|
| <script>
|
| -description("Tests CanvasPathMethods arc and arcTo with negative radii.");
|
| +test(function(t) {
|
| + var canvas = document.createElement("canvas");
|
| + var ctx = canvas.getContext('2d');
|
|
|
| -var canvas = document.createElement("canvas");
|
| -var ctx = canvas.getContext('2d');
|
| + ctx.arc(10, 10, 5, 0, 1, false);
|
| + ctx.arc(10, 10, 0, 0, 1, false);
|
| + assert_throws(null, function() {ctx.arc(10, 10, -5, 0, 1, false);});
|
|
|
| -shouldNotThrow("ctx.arc(10, 10, 5, 0, 1, false)");
|
| -shouldNotThrow("ctx.arc(10, 10, 0, 0, 1, false)");
|
| -shouldThrow("ctx.arc(10, 10, -5, 0, 1, false)");
|
| + ctx.arcTo(10, 10, 20, 20, 5);
|
| + ctx.arcTo(10, 10, 20, 20, 0);
|
| + assert_throws(null, function() {ctx.arcTo(10, 10, 20, 20, -5);});
|
|
|
| -shouldNotThrow("ctx.arcTo(10, 10, 20, 20, 5)")
|
| -shouldNotThrow("ctx.arcTo(10, 10, 20, 20, 0)")
|
| -shouldThrow("ctx.arcTo(10, 10, 20, 20, -5)")
|
| + var path = new Path2D();
|
|
|
| -var path = new Path2D();
|
| + path.arc(10, 10, 5, 0, 1, false);
|
| + path.arc(10, 10, 0, 0, 1, false);
|
| + assert_throws(null, function() {path.arc(10, 10, -5, 0, 1, false);});
|
|
|
| -shouldNotThrow("path.arc(10, 10, 5, 0, 1, false)");
|
| -shouldNotThrow("path.arc(10, 10, 0, 0, 1, false)");
|
| -shouldThrow("path.arc(10, 10, -5, 0, 1, false)");
|
| -
|
| -shouldNotThrow("path.arcTo(10, 10, 20, 20, 5)")
|
| -shouldNotThrow("path.arcTo(10, 10, 20, 20, 0)")
|
| -shouldThrow("path.arcTo(10, 10, 20, 20, -5)")
|
| + path.arcTo(10, 10, 20, 20, 5);
|
| + path.arcTo(10, 10, 20, 20, 0);
|
| + assert_throws(null, function() {path.arcTo(10, 10, 20, 20, -5);});
|
| +}, 'Tests CanvasPathMethods arc and arcTo with negative radii.');
|
| </script>
|
| -</body>
|
| -</html>
|
|
|