diff -r 000000000000 -r 5d03bc08d59c graphicsdeviceinterface/directgdi/test/scripts/htmlreport.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphicsdeviceinterface/directgdi/test/scripts/htmlreport.py Tue Feb 02 01:47:50 2010 +0200 @@ -0,0 +1,270 @@ +# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +""" +Html Report Tools + +Tools for generating the HTML reports. + +""" + +import os +import os.path +from string import * + +# HTML file name for failed images +KPageForFailedImages = "failed.html" +# HTML file name for passed images +KPageForPassedImages = "passed.html" +KPageForFailedAtImages = "failedAt.html" +# HTML file name for a summary page where passed and failed image information is summarised +KPageForSummary = "summary.html" + +# HTML file name for an error message page of the test results +KErrorMessagePageName = "error.html" + +# Prefix of the diff image name when the test image passes +KNoDiffPrefix = "NoDiff_" + +# Prefix of the diff image name when the test image fails +DiffPrefix = "RGBDiff_diffImg_" + +# Write html header +# @param file The file object to be accessed +def writeTitle(file): + file.write("
\n") + file.write("