2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
15 # The Original Code is mozilla.org code.
17 # The Initial Developer of the Original Code is
18 # the Mozilla Foundation.
19 # Portions created by the Initial Developer are Copyright (C) 2007
20 # the Initial Developer. All Rights Reserved.
23 # Philip Taylor <philip.taylor@cl.cam.ac.uk>
25 # Alternatively, the contents of this file may be used under the terms of
26 # either of the GNU General Public License Version 2 or later (the "GPL"),
27 # or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 # in which case the provisions of the GPL or the LGPL are applicable instead
29 # of those above. If you wish to allow use of your version of this file only
30 # under the terms of either the GPL or the LGPL, and not to allow others to
31 # use your version of this file under the terms of the MPL, indicate your
32 # decision by deleting the provisions above and replace them with the notice
33 # and other provisions required by the GPL or the LGPL. If you do not delete
34 # the provisions above, a recipient may use your version of this file under
35 # the terms of any one of the MPL, the GPL or the LGPL.
37 # ***** END LICENSE BLOCK *****
40 topsrcdir
= @top_srcdir@
43 relativesrcdir
= content
/canvas
/test
44 DIRS
+= webgl crossorigin
46 include $(DEPTH
)/config
/autoconf.mk
47 include $(topsrcdir
)/config
/rules.mk
50 image_transparent50.png \
51 image_redtransparent.png \
53 image_anim-poster-gr.png \
54 image_green-16x16.png \
57 image_ggrr-256x256.png \
60 image_rrgg-256x256.png \
63 image_rgrg-256x256.png \
65 image_transparent.png \
67 image_green-redirect \
68 image_green-redirect^headers^ \
69 test_drawImageIncomplete.html \
70 test_canvas_font_setter.html \
71 test_2d.clearRect.image.offscreen.html \
72 test_2d.composite.canvas.destination-atop.html \
73 test_2d.composite.canvas.destination-in.html \
74 test_2d.composite.canvas.source-in.html \
75 test_2d.composite.canvas.source-out.html \
76 test_2d.composite.image.destination-atop.html \
77 test_2d.composite.image.destination-in.html \
78 test_2d.composite.image.source-in.html \
79 test_2d.composite.image.source-out.html \
80 test_2d.composite.uncovered.image.destination-in.html \
81 test_2d.composite.uncovered.image.source-in.html \
82 test_2d.composite.uncovered.image.source-out.html \
83 test_2d.drawImage.zerocanvas.html \
84 test_toDataURL_lowercase_ascii.html \
85 test_toDataURL_parameters.html \
86 test_mozGetAsFile.html \
87 test_canvas_strokeStyle_getter.html \
89 test_drawImage_edge_cases.html \
92 ifneq (1_Linux
,$(MOZ_SUITE
)_
$(OS_ARCH
))
93 # This test fails in Suite on Linux for some reason, disable it there
94 _TEST_FILES_0
+= test_2d.composite.uncovered.image.destination-atop.html
97 # xor and lighter aren't well handled by cairo; they mostly work, but we don't want
99 # test_2d.composite.solid.xor.html \
100 # test_2d.composite.solid.lighter.html \
101 # test_2d.composite.transparent.xor.html \
102 # test_2d.composite.transparent.lighter.html \
103 # test_2d.composite.image.xor.html \
104 # test_2d.composite.image.lighter.html \
105 # test_2d.composite.canvas.xor.html \
106 # test_2d.composite.canvas.lighter.html \
107 # test_2d.composite.clip.xor.html \
108 # test_2d.composite.clip.lighter.html \
111 # Tests that fail on Mac (possibly because spec is underdefined?). Bug 407105
112 ifneq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
113 # XXX vlad don't test these anywhere, cairo behaviour changed
115 test_2d.line.
join.parallel.html \
116 test_2d.strokeRect.zero
.5.html \
119 # This is an issue with Quartz's handling of radial gradients and some numeric
120 # imprecision that results in errors here.
122 test_2d.gradient.radial.inside2.html \
123 test_2d.gradient.radial.inside3.html \
124 test_2d.gradient.radial.outside1.html \
125 test_2d.gradient.radial.cone.front.html \
126 test_2d.gradient.radial.cone.top.html \
129 # This is another Quartz bug -- closed paths that don't lie fully within the
130 # destination bounds seem to have problems with the BEVEL/SQUARE join/cap combo.
131 # The joins are rendered as if with MITER; the correct behaviour is also seen
132 # if BUTT is used instead of SQUARE.
133 _TEST_FILES_0
+= test_2d.line.cap.closed.html
137 # Tests that fail on non-Mac (bug 407107)
138 ifeq ($(MOZ_WIDGET_TOOLKIT
),cocoa
)
140 # still need bug numbers
142 test_2d.composite.uncovered.fill.source-in.html \
143 test_2d.composite.uncovered.fill.destination-in.html \
144 test_2d.composite.uncovered.fill.source-out.html \
145 test_2d.composite.uncovered.fill.destination-atop.html \
146 test_2d.composite.uncovered.pattern.source-in.html \
147 test_2d.composite.uncovered.pattern.destination-in.html \
148 test_2d.composite.uncovered.pattern.source-out.html \
149 test_2d.composite.uncovered.pattern.destination-atop.html \
152 # still need bug numbers
154 test_2d.gradient.radial.outside2.html \
155 test_2d.gradient.radial.outside3.html \
158 # still need bug numbers
159 _TEST_FILES_0
+= test_2d.path.arc.shape
.3.html
161 _TEST_FILES_0
+= test_2d.path.rect.selfintersect.html
164 # These tests only pass on Mac OS X >= 10.5; see bug 450114
165 # test_2d.gradient.radial.touch1.html \
166 # test_2d.gradient.radial.touch2.html \
167 # test_2d.gradient.radial.touch3.html \
168 # test_2d.gradient.radial.equal.html \
170 # These tests do not pass on any platform; Quartz backend won't pass them
171 # because we fall back to pixman when one circle doesn't contain the other.
173 # test_2d.gradient.radial.cone.shape2.html \
174 # test_2d.gradient.radial.cone.behind.html \
175 # test_2d.gradient.radial.cone.beside.html \
177 # This test is bogus according to the spec; see bug 407107
178 # test_2d.path.rect.zero.6.html
180 # split up into groups to work around command-line length limits
181 libs
:: $(_TEST_FILES_0
)
182 $(INSTALL
) $(foreach f
,$^
,"$f") $(DEPTH
)/$(mochitestdir
)/tests
/$(relativesrcdir
)