Bug 54458 - [Cairo][Gtk] Get more of the philip suite of canvas tests passing
Summary: [Cairo][Gtk] Get more of the philip suite of canvas tests passing
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 44932 54471 54491 54658 55878 97658
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-15 07:05 PST by Zan Dobersek
Modified: 2012-09-26 04:44 PDT (History)
3 users (show)

See Also:


Attachments
Unskip already passing tests (3.46 KB, patch)
2011-02-15 07:18 PST, Zan Dobersek
no flags Details | Formatted Diff | Diff
This patch updates the list of skipped canvas tests along with explanation about Cairo-specific failures (6.15 KB, patch)
2011-08-08 04:07 PDT, Zan Dobersek
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Zan Dobersek 2011-02-15 07:05:14 PST
This bug oversees the cleanup of tests that already pass but are skipped when testing as well as points to bugs for tests that need fixing to pass and offers minor patches that enable more tests.
Comment 1 Zan Dobersek 2011-02-15 07:11:33 PST
Using revision 78552 and cairo trunk, test canvas/philip/tests/2d.path.isPointInPath.edge succeeds on my machine too. It apparently only fails on bots, so we should check if it still does and if so, check whether it's actually cairo that affects this test.
Comment 2 Zan Dobersek 2011-02-15 07:18:27 PST
Created attachment 82449 [details]
Unskip already passing tests

This patch unskips about 25 tests that already pass.
Comment 3 Andreas Kling 2011-02-15 08:28:47 PST
Comment on attachment 82449 [details]
Unskip already passing tests

r=me
Comment 4 WebKit Commit Bot 2011-02-15 08:48:49 PST
Comment on attachment 82449 [details]
Unskip already passing tests

Clearing flags on attachment: 82449

Committed r78570: <http://trac.webkit.org/changeset/78570>
Comment 5 WebKit Commit Bot 2011-02-15 08:48:54 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Zan Dobersek 2011-02-15 09:00:06 PST
Reopening this bug, will leave commit bot out of it in the future.
Comment 7 Zan Dobersek 2011-03-07 07:53:20 PST
This is a part of the Skipped file covering canvas tests that I've modified to clarify why these tests fail. Only tests that are failing because of Gtk/Cairo implementation are listed, the others are (probably) failing because of incomplete implementation of the canvas element in WebCore.

# These tests are failing for us, but not for Mac. This likely
# indicates platform specific problems.

# When drawing canvas into itself, WebCore draws canvas's buffer into the same buffer. This
# results in recursive drawing into cairo surface. We should either use groups when drawing
# with cairo or copy the buffer every time the HTMLCanvasElement gets repainted.
canvas/philip/tests/2d.drawImage.self.2.html

# https://bugs.webkit.org/show_bug.cgi?id=54471
# http://cgit.freedesktop.org/cairo/commit/?id=4d4056872db94573183473610ad1d81d5439fdc6
canvas/philip/tests/2d.path.arc.selfintersect.1.html
canvas/philip/tests/2d.path.arc.shape.3.html

# Succeeds with Cairo trunk, should be unskipped when Cairo 1.11.3/1.10.3 is released
# Cairo commit http://cgit.freedesktop.org/cairo/commit/?id=e46dc9e17a6f6737d5624dbcdd3c42c2353a72f1
# Cairo test http://cgit.freedesktop.org/cairo/commit/?id=7386960d063e4a3642fb281aaae071404d837bdb
canvas/philip/tests/2d.path.arc.zeroradius.html

# http://cgit.freedesktop.org/cairo/commit/?id=303f56a2d34a23d933a02fa625873211fb51eb3b
canvas/philip/tests/2d.path.rect.selfintersect.html

# Strangely set miter limit - should be 1.414, or there's a bug in maths!
canvas/philip/tests/2d.path.rect.zero.6.html

# Repeat-x/-y doesn't work - not supported in Cairo, workaround needed
# https://bugs.webkit.org/show_bug.cgi?id=53085
canvas/philip/tests/2d.pattern.paint.repeatx.coord1.html
canvas/philip/tests/2d.pattern.paint.repeatx.outside.html
canvas/philip/tests/2d.pattern.paint.repeaty.coord1.html
canvas/philip/tests/2d.pattern.paint.repeaty.outside.html

# Quality should be in range [0, 100]
# https://bugs.webkit.org/show_bug.cgi?id=55878
canvas/philip/tests/toDataURL.jpeg.quality.basic.html
Comment 8 Martin Robinson 2011-03-07 09:24:28 PST
(In reply to comment #7)

> # When drawing canvas into itself, WebCore draws canvas's buffer into the same buffer. This
> # results in recursive drawing into cairo surface. We should either use groups when drawing
> # with cairo or copy the buffer every time the HTMLCanvasElement gets repainted.
> canvas/philip/tests/2d.drawImage.self.2.html

You have my approval to put all of this information directly into the Skipped file! Thanks for looking into these.
Comment 9 Zan Dobersek 2011-08-08 04:07:26 PDT
Created attachment 103226 [details]
This patch updates the list of skipped canvas tests along with explanation about Cairo-specific failures
Comment 10 WebKit Review Bot 2011-08-08 10:52:39 PDT
Comment on attachment 103226 [details]
This patch updates the list of skipped canvas tests along with explanation about Cairo-specific failures

Clearing flags on attachment: 103226

Committed r92605: <http://trac.webkit.org/changeset/92605>
Comment 11 WebKit Review Bot 2011-08-08 10:52:44 PDT
All reviewed patches have been landed.  Closing bug.