gecko-dev/gfx/tests/TestColorNames.cpp

144 lines
4.5 KiB
C++
Raw Normal View History

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
1998-04-13 20:24:54 +00:00
*
* 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/
1998-04-13 20:24:54 +00:00
*
* 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.
1998-04-13 20:24:54 +00:00
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* 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 ***** */
1998-04-13 20:24:54 +00:00
#include "TestHarness.h"
1999-01-21 22:10:57 +00:00
#include <string.h>
#include "nsColor.h"
#include "nsColorNames.h"
1998-04-13 20:24:54 +00:00
#include "prprf.h"
1999-07-18 00:42:28 +00:00
#include "nsString.h"
1998-04-13 20:24:54 +00:00
// define an array of all color names
#define GFX_COLOR(_name, _value) #_name,
static const char* const kColorNames[] = {
#include "nsColorNameList.h"
};
#undef GFX_COLOR
// define an array of all color name values
#define GFX_COLOR(_name, _value) _value,
static const nscolor kColors[] = {
#include "nsColorNameList.h"
};
#undef GFX_COLOR
1998-04-13 20:24:54 +00:00
static const char* kJunkNames[] = {
nsnull,
"",
"123",
"backgroundz",
"zzzzzz",
"#@$&@#*@*$@$#"
};
int main(int argc, char** argv)
{
ScopedXPCOM xpcom("TestColorNames");
if (xpcom.failed())
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
return 1;
nscolor rgb;
1998-04-13 20:24:54 +00:00
int rv = 0;
// First make sure we can find all of the tags that are supposed to
// be in the table. Futz with the case to make sure any case will
// work
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
for (PRUint32 index = 0 ; index < NS_ARRAY_LENGTH(kColorNames); index++) {
1998-04-13 20:24:54 +00:00
// Lookup color by name and make sure it has the right id
nsCString tagName(kColorNames[index]);
1999-07-18 00:42:28 +00:00
// Check that color lookup by name gets the right rgb value
if (!NS_ColorNameToRGB(NS_ConvertASCIItoUTF16(tagName), &rgb)) {
fail("can't find '%s'", tagName.get());
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
if (rgb != kColors[index]) {
fail("name='%s' ColorNameToRGB=%x kColors[%d]=%08x",
tagName.get(), rgb, index, kColors[index]);
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
// fiddle with the case to make sure we can still find it
tagName.SetCharAt(tagName.CharAt(0) - 32, 0);
if (!NS_ColorNameToRGB(NS_ConvertASCIItoUTF16(tagName), &rgb)) {
fail("can't find '%s'", tagName.get());
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
if (rgb != kColors[index]) {
fail("name='%s' ColorNameToRGB=%x kColors[%d]=%08x",
tagName.get(), rgb, index, kColors[index]);
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
// Check that parsing an RGB value in hex gets the right values
PRUint8 r = NS_GET_R(rgb);
PRUint8 g = NS_GET_G(rgb);
PRUint8 b = NS_GET_B(rgb);
PRUint8 a = NS_GET_A(rgb);
if (a != PR_UINT8_MAX) {
// NS_HexToRGB() can not handle a color with alpha channel
rgb = NS_RGB(r, g, b);
}
1998-04-13 20:24:54 +00:00
char cbuf[50];
1999-07-18 00:42:28 +00:00
PR_snprintf(cbuf, sizeof(cbuf), "%02x%02x%02x", r, g, b);
1998-04-13 20:24:54 +00:00
nscolor hexrgb;
if (!NS_HexToRGB(NS_ConvertASCIItoUTF16(cbuf), &hexrgb)) {
fail("hex conversion to color of '%s'", cbuf);
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
if (hexrgb != rgb) {
fail("rgb=%x hexrgb=%x", rgb, hexrgb);
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
}
// Now make sure we don't find some garbage
for (PRUint32 i = 0; i < NS_ARRAY_LENGTH(kJunkNames); i++) {
nsCString tag(kJunkNames[i]);
if (NS_ColorNameToRGB(NS_ConvertASCIItoUTF16(tag), &rgb)) {
fail("found '%s'", kJunkNames[i] ? kJunkNames[i] : "(null)");
Bug 571989 part 4: Reorganize all the tests directories below gfx/. r=joedrew --HG-- rename : gfx/thebes/crashtests/122875-1.html => gfx/tests/crashtests/122875-1.html rename : gfx/thebes/crashtests/156882-1.html => gfx/tests/crashtests/156882-1.html rename : gfx/thebes/crashtests/157320-1.html => gfx/tests/crashtests/157320-1.html rename : gfx/thebes/crashtests/199379-1.html => gfx/tests/crashtests/199379-1.html rename : gfx/thebes/crashtests/206561-1.html => gfx/tests/crashtests/206561-1.html rename : gfx/thebes/crashtests/248518-1.html => gfx/tests/crashtests/248518-1.html rename : gfx/thebes/crashtests/306649-1.xml => gfx/tests/crashtests/306649-1.xml rename : gfx/src/thebes/crashtests/306902-1.xml => gfx/tests/crashtests/306902-1.xml rename : gfx/thebes/crashtests/333861-1.html => gfx/tests/crashtests/333861-1.html rename : gfx/thebes/crashtests/334735-1.html => gfx/tests/crashtests/334735-1.html rename : gfx/thebes/crashtests/345576-1.html => gfx/tests/crashtests/345576-1.html rename : gfx/thebes/crashtests/345629-1.html => gfx/tests/crashtests/345629-1.html rename : gfx/thebes/crashtests/348462-1.html => gfx/tests/crashtests/348462-1.html rename : gfx/thebes/crashtests/348462-2.html => gfx/tests/crashtests/348462-2.html rename : gfx/thebes/crashtests/369688-1.html => gfx/tests/crashtests/369688-1.html rename : gfx/thebes/crashtests/369947-1.html => gfx/tests/crashtests/369947-1.html rename : gfx/thebes/crashtests/372094-1.xhtml => gfx/tests/crashtests/372094-1.xhtml rename : gfx/thebes/crashtests/376627-1.html => gfx/tests/crashtests/376627-1.html rename : gfx/thebes/crashtests/377231-1.html => gfx/tests/crashtests/377231-1.html rename : gfx/thebes/crashtests/377232-1.xhtml => gfx/tests/crashtests/377232-1.xhtml rename : gfx/thebes/crashtests/377461-1.xhtml => gfx/tests/crashtests/377461-1.xhtml rename : gfx/thebes/crashtests/383473-1.html => gfx/tests/crashtests/383473-1.html rename : gfx/src/thebes/crashtests/383872-1.svg => gfx/tests/crashtests/383872-1.svg rename : gfx/thebes/crashtests/385228-1.svg => gfx/tests/crashtests/385228-1.svg rename : gfx/thebes/crashtests/385228-2.svg => gfx/tests/crashtests/385228-2.svg rename : gfx/thebes/crashtests/385289-1.xhtml => gfx/tests/crashtests/385289-1.xhtml rename : gfx/thebes/crashtests/385417-1.html => gfx/tests/crashtests/385417-1.html rename : gfx/thebes/crashtests/385417-2.html => gfx/tests/crashtests/385417-2.html rename : gfx/thebes/crashtests/385423-1.html => gfx/tests/crashtests/385423-1.html rename : gfx/thebes/crashtests/385423-2.html => gfx/tests/crashtests/385423-2.html rename : gfx/thebes/crashtests/385719-1.html => gfx/tests/crashtests/385719-1.html rename : gfx/thebes/crashtests/389326-1-inner.xhtml => gfx/tests/crashtests/389326-1-inner.xhtml rename : gfx/thebes/crashtests/389326-1.html => gfx/tests/crashtests/389326-1.html rename : gfx/thebes/crashtests/393746-1.xhtml => gfx/tests/crashtests/393746-1.xhtml rename : gfx/thebes/crashtests/393749-1.html => gfx/tests/crashtests/393749-1.html rename : gfx/thebes/crashtests/393822-1.html => gfx/tests/crashtests/393822-1.html rename : gfx/thebes/crashtests/394246-1.html => gfx/tests/crashtests/394246-1.html rename : gfx/thebes/crashtests/394246-2.html => gfx/tests/crashtests/394246-2.html rename : gfx/thebes/crashtests/394384-1.html => gfx/tests/crashtests/394384-1.html rename : gfx/thebes/crashtests/395335-1.xhtml => gfx/tests/crashtests/395335-1.xhtml rename : gfx/thebes/crashtests/395458-1.html => gfx/tests/crashtests/395458-1.html rename : gfx/thebes/crashtests/396321-1.svg => gfx/tests/crashtests/396321-1.svg rename : gfx/thebes/crashtests/398042-1.xhtml => gfx/tests/crashtests/398042-1.xhtml rename : gfx/thebes/crashtests/398042-2.xhtml => gfx/tests/crashtests/398042-2.xhtml rename : gfx/thebes/crashtests/402307-1.html => gfx/tests/crashtests/402307-1.html rename : gfx/thebes/crashtests/403464-1.html => gfx/tests/crashtests/403464-1.html rename : gfx/thebes/crashtests/404112-1.html => gfx/tests/crashtests/404112-1.html rename : gfx/thebes/crashtests/404112-2.html => gfx/tests/crashtests/404112-2.html rename : gfx/thebes/crashtests/405268-1.xhtml => gfx/tests/crashtests/405268-1.xhtml rename : gfx/thebes/crashtests/407761-1.html => gfx/tests/crashtests/407761-1.html rename : gfx/thebes/crashtests/407842.html => gfx/tests/crashtests/407842.html rename : gfx/thebes/crashtests/408754-1.html => gfx/tests/crashtests/408754-1.html rename : gfx/thebes/crashtests/410728-1.xml => gfx/tests/crashtests/410728-1.xml rename : gfx/thebes/crashtests/416637-1.html => gfx/tests/crashtests/416637-1.html rename : gfx/thebes/crashtests/419095-1.html => gfx/tests/crashtests/419095-1.html rename : gfx/thebes/crashtests/419255-1.html => gfx/tests/crashtests/419255-1.html rename : gfx/thebes/crashtests/420945-1.html => gfx/tests/crashtests/420945-1.html rename : gfx/thebes/crashtests/420962-1.html => gfx/tests/crashtests/420962-1.html rename : gfx/thebes/crashtests/421393-1.html => gfx/tests/crashtests/421393-1.html rename : gfx/thebes/crashtests/421813-1.html => gfx/tests/crashtests/421813-1.html rename : gfx/src/thebes/crashtests/423110-1.xhtml => gfx/tests/crashtests/423110-1.xhtml rename : gfx/thebes/crashtests/423270-1.html => gfx/tests/crashtests/423270-1.html rename : gfx/thebes/crashtests/429899-1.html => gfx/tests/crashtests/429899-1.html rename : gfx/thebes/crashtests/441360.html => gfx/tests/crashtests/441360.html rename : gfx/thebes/crashtests/441360_data.gif => gfx/tests/crashtests/441360_data.gif rename : gfx/src/thebes/crashtests/445711.html => gfx/tests/crashtests/445711.html rename : gfx/thebes/crashtests/463307-1.html => gfx/tests/crashtests/463307-1.html rename : gfx/thebes/crashtests/467703-1.xhtml => gfx/tests/crashtests/467703-1.xhtml rename : gfx/thebes/crashtests/467873-1.html => gfx/tests/crashtests/467873-1.html rename : gfx/thebes/crashtests/470418-1.html => gfx/tests/crashtests/470418-1.html rename : gfx/thebes/crashtests/474410-1.html => gfx/tests/crashtests/474410-1.html rename : gfx/thebes/crashtests/483120-1.xhtml => gfx/tests/crashtests/483120-1.xhtml rename : gfx/thebes/crashtests/483120-2.xhtml => gfx/tests/crashtests/483120-2.xhtml rename : gfx/thebes/crashtests/487549-1.html => gfx/tests/crashtests/487549-1.html rename : gfx/thebes/crashtests/487549-bad_kern_table.ttf => gfx/tests/crashtests/487549-bad_kern_table.ttf rename : gfx/thebes/crashtests/487724-1.html => gfx/tests/crashtests/487724-1.html rename : gfx/thebes/crashtests/490777-1.html => gfx/tests/crashtests/490777-1.html rename : gfx/thebes/crashtests/532726-1.html => gfx/tests/crashtests/532726-1.html rename : gfx/thebes/crashtests/538065-1.html => gfx/tests/crashtests/538065-1.html rename : gfx/thebes/crashtests/546870-1.html => gfx/tests/crashtests/546870-1.html rename : gfx/thebes/crashtests/balinese-letter-spacing.html => gfx/tests/crashtests/balinese-letter-spacing.html rename : gfx/thebes/crashtests/crashtests.list => gfx/tests/crashtests/crashtests.list rename : gfx/thebes/test/gfxColorManagementTest.cmtest => gfx/tests/gfxColorManagementTest.cmtest rename : gfx/thebes/test/gfxColorManagementTest.cpp => gfx/tests/gfxColorManagementTest.cpp rename : gfx/thebes/test/gfxFontSelectionTest.cpp => gfx/tests/gfxFontSelectionTest.cpp rename : gfx/thebes/test/gfxFontSelectionTests.h => gfx/tests/gfxFontSelectionTests.h rename : gfx/thebes/test/gfxSurfaceRefCountTest.cpp => gfx/tests/gfxSurfaceRefCountTest.cpp rename : gfx/thebes/test/gfxTestCocoaHelper.h => gfx/tests/gfxTestCocoaHelper.h rename : gfx/thebes/test/gfxTestCocoaHelper.mm => gfx/tests/gfxTestCocoaHelper.mm rename : gfx/thebes/test/gfxTextRunPerfTest.cpp => gfx/tests/gfxTextRunPerfTest.cpp rename : gfx/thebes/test/gfxWordCacheTest.cpp => gfx/tests/gfxWordCacheTest.cpp rename : gfx/thebes/mochitest/test_bug509244.html => gfx/tests/mochitest/test_bug509244.html rename : gfx/thebes/mochitest/test_bug513439.html => gfx/tests/mochitest/test_bug513439.html rename : gfx/thebes/test/per-word-runs.h => gfx/tests/per-word-runs.h rename : gfx/thebes/test/process-textruns.pl => gfx/tests/process-textruns.pl rename : gfx/thebes/test/testprofiles/DELL2407WFP-2B283C91.icc => gfx/tests/testprofiles/DELL2407WFP-2B283C91.icc rename : gfx/thebes/test/testprofiles/G22LWk-2489A79.icc => gfx/tests/testprofiles/G22LWk-2489A79.icc rename : gfx/thebes/test/testprofiles/MBP20080419-1.icc => gfx/tests/testprofiles/MBP20080419-1.icc rename : gfx/thebes/test/testprofiles/PhLCD17a.icm => gfx/tests/testprofiles/PhLCD17a.icm rename : gfx/thebes/test/testprofiles/identity.icc => gfx/tests/testprofiles/identity.icc rename : gfx/thebes/test/testprofiles/murphy.icc => gfx/tests/testprofiles/murphy.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_noBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_noBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_IEC61966-2-1_withBPC.icc => gfx/tests/testprofiles/sRGB_IEC61966-2-1_withBPC.icc rename : gfx/thebes/test/testprofiles/sRGB_v4_ICC_preference.icc => gfx/tests/testprofiles/sRGB_v4_ICC_preference.icc
2010-07-13 21:54:18 +00:00
rv = 1;
1998-04-13 20:24:54 +00:00
}
}
if (rv == 0)
passed("TestColorNames");
1998-04-26 03:13:20 +00:00
return rv;
1998-04-13 20:24:54 +00:00
}