2007-12-05 18:51:12 -08:00
|
|
|
#
|
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Mozilla Corporation.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 2007
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Philip Taylor <philip.taylor@cl.cam.ac.uk>
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|
|
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|
|
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|
|
|
# of those above. If you wish to allow use of your version of this file only
|
|
|
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|
|
|
# use your version of this file under the terms of the MPL, indicate your
|
|
|
|
# decision by deleting the provisions above and replace them with the notice
|
|
|
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|
|
|
# the provisions above, a recipient may use your version of this file under
|
|
|
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
relativesrcdir = content/canvas/test
|
2010-08-25 05:14:12 -07:00
|
|
|
DIRS += webgl
|
2007-12-05 18:51:12 -08:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
2008-08-10 21:01:14 -07:00
|
|
|
_TEST_FILES_0 = \
|
2009-07-29 20:04:14 -07:00
|
|
|
test_canvas.html \
|
2007-12-05 18:51:12 -08:00
|
|
|
image_transparent50.png \
|
|
|
|
image_redtransparent.png \
|
|
|
|
image_yellow.png \
|
2008-08-10 21:01:14 -07:00
|
|
|
image_anim-poster-gr.png \
|
2007-12-05 18:51:12 -08:00
|
|
|
image_green-16x16.png \
|
|
|
|
image_red-16x16.png \
|
|
|
|
image_green-1x1.png \
|
|
|
|
image_ggrr-256x256.png \
|
|
|
|
image_yellow75.png \
|
2008-08-10 21:01:14 -07:00
|
|
|
image_anim-gr.gif \
|
|
|
|
image_rrgg-256x256.png \
|
2007-12-05 18:51:12 -08:00
|
|
|
image_broken.png \
|
2008-08-10 21:01:14 -07:00
|
|
|
image_anim-gr.png \
|
2007-12-05 18:51:12 -08:00
|
|
|
image_rgrg-256x256.png \
|
|
|
|
image_red.png \
|
|
|
|
image_transparent.png \
|
|
|
|
image_green.png \
|
2008-08-10 21:01:14 -07:00
|
|
|
image_green-redirect \
|
|
|
|
image_green-redirect^headers^ \
|
2010-06-18 09:23:05 -07:00
|
|
|
test_drawImageIncomplete.html \
|
2010-07-24 12:17:38 -07:00
|
|
|
test_canvas_font_setter.html \
|
2010-09-25 23:57:56 -07:00
|
|
|
test_2d.composite.canvas.destination-atop.html \
|
|
|
|
test_2d.composite.canvas.destination-in.html \
|
|
|
|
test_2d.composite.canvas.source-in.html \
|
|
|
|
test_2d.composite.canvas.source-out.html \
|
|
|
|
test_2d.composite.image.destination-atop.html \
|
|
|
|
test_2d.composite.image.destination-in.html \
|
|
|
|
test_2d.composite.image.source-in.html \
|
|
|
|
test_2d.composite.image.source-out.html \
|
2010-09-29 15:24:40 -07:00
|
|
|
test_2d.composite.uncovered.image.destination-atop.html \
|
|
|
|
test_2d.composite.uncovered.image.destination-in.html \
|
|
|
|
test_2d.composite.uncovered.image.source-in.html \
|
|
|
|
test_2d.composite.uncovered.image.source-out.html \
|
2010-09-17 18:14:59 -07:00
|
|
|
test_mozGetAsFile.html \
|
2010-10-06 18:01:37 -07:00
|
|
|
test_canvas_strokeStyle_getter.html \
|
2007-12-05 18:51:12 -08:00
|
|
|
$(NULL)
|
|
|
|
|
2008-08-10 22:20:31 -07:00
|
|
|
# xor and lighter aren't well handled by cairo; they mostly work, but we don't want
|
|
|
|
# to test that
|
|
|
|
# test_2d.composite.solid.xor.html \
|
|
|
|
# test_2d.composite.solid.lighter.html \
|
|
|
|
# test_2d.composite.transparent.xor.html \
|
|
|
|
# test_2d.composite.transparent.lighter.html \
|
|
|
|
# test_2d.composite.image.xor.html \
|
|
|
|
# test_2d.composite.image.lighter.html \
|
|
|
|
# test_2d.composite.canvas.xor.html \
|
|
|
|
# test_2d.composite.canvas.lighter.html \
|
|
|
|
# test_2d.composite.clip.xor.html \
|
|
|
|
# test_2d.composite.clip.lighter.html \
|
|
|
|
#
|
|
|
|
|
2007-12-05 20:47:09 -08:00
|
|
|
# Tests that fail on Mac (possibly because spec is underdefined?). Bug 407105
|
2007-12-05 18:51:12 -08:00
|
|
|
ifneq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2008-02-13 23:52:05 -08:00
|
|
|
# XXX vlad don't test these anywhere, cairo behaviour changed
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += \
|
2008-08-10 21:01:14 -07:00
|
|
|
test_2d.line.join.parallel.html \
|
|
|
|
test_2d.strokeRect.zero.5.html \
|
|
|
|
$(NULL)
|
2008-01-18 14:54:21 -08:00
|
|
|
|
2008-03-14 20:45:26 -07:00
|
|
|
# This is an issue with Quartz's handling of radial gradients and some numeric
|
|
|
|
# imprecision that results in errors here.
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += \
|
2008-08-10 21:01:14 -07:00
|
|
|
test_2d.gradient.radial.inside2.html \
|
|
|
|
test_2d.gradient.radial.inside3.html \
|
|
|
|
test_2d.gradient.radial.outside1.html \
|
2008-11-06 01:44:13 -08:00
|
|
|
test_2d.gradient.radial.cone.front.html \
|
|
|
|
test_2d.gradient.radial.cone.top.html \
|
2008-08-10 21:01:14 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2008-03-14 20:45:26 -07:00
|
|
|
# This is another Quartz bug -- closed paths that don't lie fully within the
|
|
|
|
# destination bounds seem to have problems with the BEVEL/SQUARE join/cap combo.
|
|
|
|
# The joins are rendered as if with MITER; the correct behaviour is also seen
|
|
|
|
# if BUTT is used instead of SQUARE.
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += test_2d.line.cap.closed.html
|
2007-12-05 18:51:12 -08:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2007-12-05 20:47:09 -08:00
|
|
|
# Tests that fail on non-Mac (bug 407107)
|
2007-12-05 18:51:12 -08:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
|
2008-08-10 21:01:14 -07:00
|
|
|
|
|
|
|
# still need bug numbers
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += \
|
2008-08-10 21:01:14 -07:00
|
|
|
test_2d.composite.uncovered.fill.source-in.html \
|
|
|
|
test_2d.composite.uncovered.fill.destination-in.html \
|
|
|
|
test_2d.composite.uncovered.fill.source-out.html \
|
|
|
|
test_2d.composite.uncovered.fill.destination-atop.html \
|
|
|
|
test_2d.composite.uncovered.pattern.source-in.html \
|
|
|
|
test_2d.composite.uncovered.pattern.destination-in.html \
|
|
|
|
test_2d.composite.uncovered.pattern.source-out.html \
|
|
|
|
test_2d.composite.uncovered.pattern.destination-atop.html \
|
2007-12-05 18:51:12 -08:00
|
|
|
$(NULL)
|
2008-08-10 21:01:14 -07:00
|
|
|
|
|
|
|
# still need bug numbers
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += \
|
2008-08-10 21:01:14 -07:00
|
|
|
test_2d.gradient.radial.outside2.html \
|
|
|
|
test_2d.gradient.radial.outside3.html \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
# still need bug numbers
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += test_2d.path.arc.shape.3.html
|
2008-08-10 21:01:14 -07:00
|
|
|
|
2009-07-29 20:04:14 -07:00
|
|
|
_TEST_FILES_0 += test_2d.path.rect.selfintersect.html
|
2007-12-05 18:51:12 -08:00
|
|
|
endif
|
|
|
|
|
2008-08-17 13:58:11 -07:00
|
|
|
# These tests only pass on Mac OS X >= 10.5; see bug 450114
|
|
|
|
# test_2d.gradient.radial.touch1.html \
|
|
|
|
# test_2d.gradient.radial.touch2.html \
|
|
|
|
# test_2d.gradient.radial.touch3.html \
|
|
|
|
# test_2d.gradient.radial.equal.html \
|
|
|
|
|
2009-08-25 23:59:20 -07:00
|
|
|
# These tests do not pass on any platform; Quartz backend won't pass them
|
|
|
|
# because we fall back to pixman when one circle doesn't contain the other.
|
|
|
|
# See bug 512647.
|
|
|
|
# test_2d.gradient.radial.cone.shape2.html \
|
|
|
|
# test_2d.gradient.radial.cone.behind.html \
|
|
|
|
# test_2d.gradient.radial.cone.beside.html \
|
|
|
|
|
2008-03-14 20:45:26 -07:00
|
|
|
# This test is bogus according to the spec; see bug 407107
|
|
|
|
# test_2d.path.rect.zero.6.html
|
|
|
|
|
2007-12-05 19:23:00 -08:00
|
|
|
# split up into groups to work around command-line length limits
|
2008-08-10 21:01:14 -07:00
|
|
|
libs:: $(_TEST_FILES_0)
|
2007-12-05 19:23:00 -08:00
|
|
|
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|