From cbda1ff0ed9a8742f394fbf2ea9d162a017d7e17 Mon Sep 17 00:00:00 2001 From: "surkov.alexander%gmail.com" Date: Thu, 14 Feb 2008 06:20:03 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20416553=20=C3=A2=C2=80=C2=93=20option=20to?= =?UTF-8?q?=20run=20accessibility=20tests,=20r=3Drcampbell?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@245676 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/accessible/Makefile.in | 2 +- mozilla/accessible/tests/Makefile.in | 53 +++++++ .../accessible/tests/mochitest/Makefile.in | 53 +++++++ .../tests/mochitest}/test_bug368835.xul | 137 +++++++++++++++--- mozilla/testing/mochitest/Makefile.in | 4 + mozilla/testing/mochitest/harness-ally.xul | 15 ++ mozilla/testing/mochitest/harness-overlay.xul | 109 ++++++++++++++ mozilla/testing/mochitest/harness.xul | 98 +------------ mozilla/testing/mochitest/redirect-ally.html | 14 ++ mozilla/testing/mochitest/redirect.html | 14 +- mozilla/testing/mochitest/redirect.js | 53 +++++++ mozilla/testing/mochitest/runtests.pl.in | 13 +- mozilla/testing/mochitest/runtests.py.in | 8 + 13 files changed, 447 insertions(+), 126 deletions(-) create mode 100644 mozilla/accessible/tests/Makefile.in create mode 100644 mozilla/accessible/tests/mochitest/Makefile.in rename mozilla/{layout/xul/test => accessible/tests/mochitest}/test_bug368835.xul (50%) create mode 100644 mozilla/testing/mochitest/harness-ally.xul create mode 100644 mozilla/testing/mochitest/harness-overlay.xul create mode 100644 mozilla/testing/mochitest/redirect-ally.html create mode 100644 mozilla/testing/mochitest/redirect.js diff --git a/mozilla/accessible/Makefile.in b/mozilla/accessible/Makefile.in index f7d363ef3ed..a6eab40ce24 100644 --- a/mozilla/accessible/Makefile.in +++ b/mozilla/accessible/Makefile.in @@ -43,7 +43,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk MODULE = accessibility -DIRS = public src build +DIRS = public src build tests include $(topsrcdir)/config/rules.mk diff --git a/mozilla/accessible/tests/Makefile.in b/mozilla/accessible/tests/Makefile.in new file mode 100644 index 00000000000..b602f735b2f --- /dev/null +++ b/mozilla/accessible/tests/Makefile.in @@ -0,0 +1,53 @@ +# +# ***** 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 Foundation. +# Portions created by the Initial Developer are Copyright (C) 2008 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Alexander Surkov (original author) +# +# 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@ + +include $(DEPTH)/config/autoconf.mk + +MODULE = test_accessibility + +ifdef MOZ_MOCHITEST +DIRS += mochitest +endif + +include $(topsrcdir)/config/rules.mk + diff --git a/mozilla/accessible/tests/mochitest/Makefile.in b/mozilla/accessible/tests/mochitest/Makefile.in new file mode 100644 index 00000000000..8f46e2bda3e --- /dev/null +++ b/mozilla/accessible/tests/mochitest/Makefile.in @@ -0,0 +1,53 @@ +# +# ***** 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 Foundation. +# Portions created by the Initial Developer are Copyright (C) 2008 +# the Initial Developer. All Rights Reserved. +# +# Contributor(s): +# Alexander Surkov (original author) +# +# 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 = accessible + +include $(DEPTH)/config/autoconf.mk +include $(topsrcdir)/config/rules.mk + +_TEST_FILES =\ + test_bug368835.xul \ + $(NULL) + +libs:: $(_TEST_FILES) + $(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/ally/$(relativesrcdir) diff --git a/mozilla/layout/xul/test/test_bug368835.xul b/mozilla/accessible/tests/mochitest/test_bug368835.xul similarity index 50% rename from mozilla/layout/xul/test/test_bug368835.xul rename to mozilla/accessible/tests/mochitest/test_bug368835.xul index 7c77746eb7d..8e90094f048 100644 --- a/mozilla/layout/xul/test/test_bug368835.xul +++ b/mozilla/accessible/tests/mochitest/test_bug368835.xul @@ -1,6 +1,7 @@ - +