| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The canvas spec [1] does not define strokeRect with 5 arguments, so this issue
remains only strokeRect with 4 arguments.
[1] http://www.w3.org/TR/2dcontext2/
BUG=
Review URL: https://chromiumcodereview.appspot.com/14972014
git-svn-id: svn://svn.chromium.org/blink/trunk@150200 bbb929c8-8fbe-4397-9dbb-9b2b20218538
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://bugs.webkit.org/show_bug.cgi?id=70784
Reviewed by Ojan Vafai.
Tools:
* Scripts/make-new-script-test:
(writeTestFile): Update the template for script tests.
LayoutTests:
This makes "successfullyParsed = true" optional in favor of tracking syntax errors
using window.onerror.
* fast/*: Remove successfullyParsed.
* fast/dom/Window/new-window-opener.html: Cleanup.
* fast/dom/Window/resources/window-appendages-cleared-results.html:
* fast/dom/Window/webkitConvertPoint.html: Ditto.
* fast/dom/Window/webkitConvertPointUpdateLayout.html: Ditto.
* fast/js/kde/evil-n.html: This is now a normal test since it is not supposed to fail.
* fast/js/kde/garbage-n-expected.txt:
* fast/js/kde/garbage-n.html: Use shouldHaveHadError instead of js-test-post-n.js
* fast/js/kde/string-1-n.html: Ditto.
* fast/js/kde/string-2-n.html: Ditto.
* fast/js/resources/js-test-post-async.js: Ensure we didn't get an error.
* fast/js/resources/js-test-post-function.js: Ditto.
* fast/js/resources/js-test-post-n.js: Removed.
* fast/js/resources/js-test-pre.js: Added shouldHaveHadError function that can be used to assert that the
error message is what was expected.
Ensure we didn't get an error in finistJSTest.
git-svn-id: svn://svn.chromium.org/blink/trunk@98407 bbb929c8-8fbe-4397-9dbb-9b2b20218538
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Reviewed by Oliver Hunt.
https://bugs.webkit.org/show_bug.cgi?id=37686
Fixes an issue where the canvas method strokeRect will stroke a
rectangle whose dimensions are 0 when lineWidth > 1.
As per the definition of strokeRect in the HTML Canvas 2D Context
spec. <http://www.w3.org/TR/2dcontext/#dom-context-2d-strokerect>,
this method should have no effect when both the height and width
are zero.
Tests: fast/canvas/canvas-clearRect.html
fast/canvas/canvas-fillRect.html
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::validateRectForCanvas): Return false if height, width == 0.
2010-04-27 Daniel Bates <dbates@rim.com>
Reviewed by Oliver Hunt.
https://bugs.webkit.org/show_bug.cgi?id=37686
Tests that strokeRect does not paint any artifacts when the
specified rectangle has height, width = 0 and lineWidth > 1.
Also tests that clearRect, fillRect, and rect are ignored when
height, width = 0.
* fast/canvas/canvas-clearRect-expected.txt: Added.
* fast/canvas/canvas-clearRect.html: Added.
* fast/canvas/canvas-fillRect-expected.txt: Added.
* fast/canvas/canvas-fillRect.html: Added.
* fast/canvas/canvas-modify-emptyPath-expected.txt:
* fast/canvas/canvas-strokeRect-expected.txt: Updated results.
* fast/canvas/script-tests/canvas-clearRect.js: Added.
* fast/canvas/script-tests/canvas-fillRect.js: Added.
* fast/canvas/script-tests/canvas-modify-emptyPath.js: Added test case.
* fast/canvas/script-tests/canvas-strokeRect.js: Ditto. Also, added
debug statements so as to distinguish the results for each test.
git-svn-id: svn://svn.chromium.org/blink/trunk@58381 bbb929c8-8fbe-4397-9dbb-9b2b20218538
|
|
Rubber-stamped by Eric Seidel.
js tests should move into jstests subdirectory instead of resources/
https://bugs.webkit.org/show_bug.cgi?id=25880
Migration for fast/canvas and fast/css directories.
* fast/canvas/canvas-copyPixels.html:
* fast/canvas/canvas-gradient-addStop-error.html:
* fast/canvas/canvas-gradient-without-path.html:
* fast/canvas/canvas-modify-emptyPath.html:
* fast/canvas/canvas-set-properties-with-non-invertible-ctm.html:
* fast/canvas/canvas-setTransform.html:
* fast/canvas/canvas-strokeRect.html:
* fast/canvas/canvas-transparency-and-composite.html:
* fast/canvas/gradient-addColorStop-with-invalid-color.html:
* fast/canvas/gradient-with-clip.html:
* fast/canvas/linearGradient-infinite-values.html:
* fast/canvas/pattern-with-transform.html:
* fast/canvas/radialGradient-infinite-values.html:
* fast/canvas/resources/TEMPLATE.html: Removed.
* fast/canvas/resources/canvas-copyPixels.js: Removed.
* fast/canvas/resources/canvas-gradient-addStop-error.js: Removed.
* fast/canvas/resources/canvas-gradient-without-path.js: Removed.
* fast/canvas/resources/canvas-modify-emptyPath.js: Removed.
* fast/canvas/resources/canvas-set-properties-with-non-invertible-ctm.js: Removed.
* fast/canvas/resources/canvas-setTransform.js: Removed.
* fast/canvas/resources/canvas-strokeRect.js: Removed.
* fast/canvas/resources/canvas-transparency-and-composite.js: Removed.
* fast/canvas/resources/gradient-addColorStop-with-invalid-color.js: Removed.
* fast/canvas/resources/gradient-with-clip.js: Removed.
* fast/canvas/resources/linearGradient-infinite-values.js: Removed.
* fast/canvas/resources/pattern-with-transform.js: Removed.
* fast/canvas/resources/radialGradient-infinite-values.js: Removed.
* fast/canvas/resources/set-colors.js: Removed.
* fast/canvas/resources/translate-text.js: Removed.
* fast/canvas/script-tests: Added.
* fast/canvas/script-tests/TEMPLATE.html: Copied from LayoutTests/fast/canvas/resources/TEMPLATE.html.
* fast/canvas/script-tests/canvas-copyPixels.js: Copied from LayoutTests/fast/canvas/resources/canvas-copyPixels.js.
* fast/canvas/script-tests/canvas-gradient-addStop-error.js: Copied from LayoutTests/fast/canvas/resources/canvas-gradient-addStop-error.js.
* fast/canvas/script-tests/canvas-gradient-without-path.js: Copied from LayoutTests/fast/canvas/resources/canvas-gradient-without-path.js.
* fast/canvas/script-tests/canvas-modify-emptyPath.js: Copied from LayoutTests/fast/canvas/resources/canvas-modify-emptyPath.js.
* fast/canvas/script-tests/canvas-set-properties-with-non-invertible-ctm.js: Copied from LayoutTests/fast/canvas/resources/canvas-set-properties-with-non-invertible-ctm.js.
* fast/canvas/script-tests/canvas-setTransform.js: Copied from LayoutTests/fast/canvas/resources/canvas-setTransform.js.
* fast/canvas/script-tests/canvas-strokeRect.js: Copied from LayoutTests/fast/canvas/resources/canvas-strokeRect.js.
* fast/canvas/script-tests/canvas-transparency-and-composite.js: Copied from LayoutTests/fast/canvas/resources/canvas-transparency-and-composite.js.
* fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js: Copied from LayoutTests/fast/canvas/resources/gradient-addColorStop-with-invalid-color.js.
* fast/canvas/script-tests/gradient-with-clip.js: Copied from LayoutTests/fast/canvas/resources/gradient-with-clip.js.
* fast/canvas/script-tests/linearGradient-infinite-values.js: Copied from LayoutTests/fast/canvas/resources/linearGradient-infinite-values.js.
* fast/canvas/script-tests/pattern-with-transform.js: Copied from LayoutTests/fast/canvas/resources/pattern-with-transform.js.
* fast/canvas/script-tests/radialGradient-infinite-values.js: Copied from LayoutTests/fast/canvas/resources/radialGradient-infinite-values.js.
* fast/canvas/script-tests/set-colors.js: Copied from LayoutTests/fast/canvas/resources/set-colors.js.
* fast/canvas/script-tests/translate-text.js: Copied from LayoutTests/fast/canvas/resources/translate-text.js.
* fast/canvas/set-colors.html:
* fast/canvas/translate-text.html:
* fast/css/getComputedStyle/computed-style-font-family-monospace.html:
* fast/css/getComputedStyle/font-family-fallback-reset.html:
* fast/css/getComputedStyle/getComputedStyle-text-decoration.html:
* fast/css/getComputedStyle/resources/TEMPLATE.html: Removed.
* fast/css/getComputedStyle/resources/computed-style-font-family-monospace.js: Removed.
* fast/css/getComputedStyle/resources/font-family-fallback-reset.js: Removed.
* fast/css/getComputedStyle/resources/getComputedStyle-text-decoration.js: Removed.
* fast/css/getComputedStyle/script-tests: Added.
* fast/css/getComputedStyle/script-tests/TEMPLATE.html: Copied from LayoutTests/fast/css/getComputedStyle/resources/TEMPLATE.html.
* fast/css/getComputedStyle/script-tests/computed-style-font-family-monospace.js: Copied from LayoutTests/fast/css/getComputedStyle/resources/computed-style-font-family-monospace.js.
* fast/css/getComputedStyle/script-tests/font-family-fallback-reset.js: Copied from LayoutTests/fast/css/getComputedStyle/resources/font-family-fallback-reset.js.
* fast/css/getComputedStyle/script-tests/getComputedStyle-text-decoration.js: Copied from LayoutTests/fast/css/getComputedStyle/resources/getComputedStyle-text-decoration.js.
git-svn-id: svn://svn.chromium.org/blink/trunk@48550 bbb929c8-8fbe-4397-9dbb-9b2b20218538
|