[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:51:18 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 99d4d4bb03cf9f56a771f7355dce24847cc2180b
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Thu Nov 1 22:18:11 2001 +0000
Removed files from this part of the tree; moved to a top-level
Labyrinth directory called Tests
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/kwq/tests/.cvsignore b/WebCore/kwq/tests/.cvsignore
deleted file mode 100644
index a486a70..0000000
--- a/WebCore/kwq/tests/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-harness
diff --git a/WebCore/kwq/tests/Makefile.in b/WebCore/kwq/tests/Makefile.in
deleted file mode 100644
index 5daaf3a..0000000
--- a/WebCore/kwq/tests/Makefile.in
+++ /dev/null
@@ -1,56 +0,0 @@
-#======================================================================
-#
-# Makefile
-#
-# $RCSfile$
-#
-#======================================================================
-# set top source dir relative to this directory
-# include make vars boilerplate
-#
-
-TOPSRCDIR = ../../..
-include $(TOPSRCDIR)/Makefile.vars
-
-#----------------------------------------------------------------------
-# Set variables for this directory
-
-CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
-
-PROGRAM = harness
-
-CLEAN_FILES = *.o \
- $(PROGRAM) \
- $(NULL)
-
-#----------------------------------------------------------------------
-# Set flags for this directory
-
-CFLAGS = $(BASECFLAGS) \
- -Wall \
- -O2 \
- $(NULL)
-
-DEPFLAGS = $(CFLAGS)
-
-#----------------------------------------------------------------------
-# Set targets for this directory
-
-all: $(OBJECTS) $(PROGRAM)
-
-$(PROGRAM): harness.o
- $(CC) -o $@ $< $(LDFLAGS)
-
-test:
- $(MAKE) && ./harness
-
-depend:
-
-#----------------------------------------------------------------------
-# include make rules boilerplate
-
-include $(TOPSRCDIR)/Makefile.rules
-
-#======================================================================
-# end
-#======================================================================
diff --git a/WebCore/kwq/tests/draw/Makefile b/WebCore/kwq/tests/draw/Makefile
deleted file mode 100644
index b3f2ef2..0000000
--- a/WebCore/kwq/tests/draw/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-
-qdraw.o: draw.mm
- cc -c -I$(QTDIR)/include -fno-exceptions -pipe -g -o qdraw.o draw.mm
-
-qdraw: qdraw.o
- cc -L$(QTDIR)/lib -o ./qdraw qdraw.o -lqt -L/usr/X11R6/lib -lz -ljpeg -lXext -lX11 -framework Cocoa
-
-#kwqdraw.o: draw.mm
-# cc -c -DQT_NO_DATASTREAM -D_KWQ_COMPLETE_ -D_KWQ_ -I../.. -I../../qt -fno-exceptions -pipe -g -o kwqdraw.o draw.mm
-
-#kwqdraw: kwqdraw.o
-# cc -L$(QTDIR)/lib -o ./kwqdraw kwqdraw.o -L../.. -L../../qt -lkwq -l_qt -lstdc++ -framework Cocoa
-
-#clean:
-# rm *.o qdraw kwqdraw
-clean:
-
- rm *.o qdraw
-#all: qdraw kwqdraw
-all: qdraw
diff --git a/WebCore/kwq/tests/draw/draw.mm b/WebCore/kwq/tests/draw/draw.mm
deleted file mode 100644
index 69091e2..0000000
--- a/WebCore/kwq/tests/draw/draw.mm
+++ /dev/null
@@ -1,367 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * This program tests the subset of the Qt drawing API implemented in the
- * KWQ emulation package. Only the API in the emulation package should
- * be used.
- *
- * Classes tested (and needed to link):
- * QApplication
- * QBrush
- * QByteArray
- * QColor
- * QFont
- * QFontMetrics
- * QPainter
- * QPen
- * QPixmap
- * QPoint
- * QRect
- * QSize
- * QString
- * QWidget
- * QWMatrix
- */
-
-#include <qwidget.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qapplication.h>
-#include <qpoint.h>
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-// Voodoo required to get compiler to compile correctly.
-#undef DEBUG
-#import <Cocoa/Cocoa.h>
-
-//
-// This function draws a color wheel.
-// The coordinate system x=(0..500), y=(0..500) spans the paint device.
-//
-
-#define SLICE_WIDTH 68
-#define SLICE_HEIGHT 10
-
-void drawColors( QPainter *p )
-{
- int x = 0, y = 0, height, r = 0, g = 255, b = 125;
- p->save();
-
- QFont f;
- f.setFamily( "helvetica" );
- f.setPixelSizeFloat ((float) 10);
- f.setWeight ( QFont::Bold );
- p->setFont( f );
- p->setPen( QPen(Qt::black) );
-
- QFontMetrics fm = p->fontMetrics();
- height = fm.height();
-
- for ( int i=0; i<36; i++ ) { // draws 36 rotated rectangles
- QColor c;
- c.setRgb( r, g, b );
- r += 255/36;
- g -= 255/36;
- p->setBrush( c ); // solid fill with color c
- x += SLICE_WIDTH + 5;
- if (i % 6 == 0) {
- y += SLICE_HEIGHT + height + 2;
- x = 10;
- }
- p->drawRect( x, y, SLICE_WIDTH, SLICE_HEIGHT ); // draw the rectangle
-
- QString n;
- n.sprintf( "%d,%d,%d", r,g,b );
- p->drawText( x, y + SLICE_HEIGHT + height, n ); // draw the hue number
- }
- p->restore();
-}
-
-
-void drawImages( QPainter *p)
-{
- QByteArray *byteArray[3];
- QPixmap *pixmap[3];
- NSString *files[3] = { @"qt.png", @"powermac.jpg", @"yahoo.gif" }, *filename;
- NSData *data[3];
- int i;
- QPoint *point;
-
- for (i = 0; i < 3; i++){
- point = new QPoint (10 + 60 * i, 200);
-#ifdef _KWQ_
- filename = [NSString stringWithFormat: @"%@/%@", [[NSBundle mainBundle] resourcePath], files[i], nil];
- data[i] = [[NSData alloc] initWithContentsOfFile: filename];
-#else
- data[i] = [[NSData alloc] initWithContentsOfFile: files[i]];
-#endif
- byteArray[i] = new QByteArray();
- byteArray[i]->setRawData ((const char *)[data[i] bytes], (unsigned int)[data[i] length]);
- pixmap[i] = new QPixmap (*byteArray[i]);
- if (i == 1)
- p->setRasterOp(Qt::XorROP);
- else
- p->setRasterOp(Qt::CopyROP);
- if (i == 2){
- QWMatrix matrix;
- matrix.scale((double)0.5, (double)0.5);
- QPixmap rp = pixmap[i]->xForm (matrix);
- p->drawPixmap (*point,rp);
- }
- else
- p->drawPixmap (*point,*pixmap[i]);
- delete point;
- }
-
- for (i = 0; i < 3; i++){
- point = new QPoint (10 + 60 * i, 200);
-
- QSize imageSize = pixmap[i]->size();
-
- // This should draw an empty rect, as brush isn't set to any color.
- p->setPen( QPen(Qt::yellow) );
- p->drawRect (point->x(), point->y(), imageSize.width(), imageSize.height());
-
- p->setPen( Qt::blue );
- p->drawLine (point->x(), point->y(), point->x() + imageSize.width(), point->y() + imageSize.height());
- p->drawLine (point->x(), point->y() + imageSize.height(), point->x() + imageSize.width(), point->y());
- delete point;
- }
-
- int x = 480, y = 20, w = 400, h = 300;
- p->drawTiledPixmap (x, y, w, h, *pixmap[0], 0, 0);
- p->drawLine (x, y, x + w, y + h);
- p->drawLine (x, y + h, x + w, y);
-
- x = 530; y = 70; w = 380, h = 325;
- p->drawTiledPixmap (x, y, w, h, *pixmap[0], 0, 0);
- p->drawLine (x, y, x + w, y + h);
- p->drawLine (x, y + h, x + w, y);
-
- for (i = 0; i < 3; i++){
- // Problematic, as QByteArray expects ownership. It will free() the bytes set from setRawData.
- //delete byteArray[i];
- delete pixmap[i];
- //[data[i] release];
- }
-}
-
-
-//
-// This function draws a few lines of text using different fonts.
-//
-
-#define DRAW_FONT_OFFSET 360.0F
-
-void drawFonts( QPainter *p )
-{
- static const char *fonts[] = { "Helvetica", "Courier", "Times", 0 };
- static int sizes[] = { 10, 12, 18, 24, 36, 0 };
- int f = 0;
- int y = 0;
-
- p->save();
-
-#ifdef USE_TRANSLATION
- QWMatrix matrix;
- matrix.translate( 0.0F, DRAW_FONT_OFFSET ); // move to center
- p->setWorldMatrix( matrix ); // use this world matrix
-#else
- y += (int)DRAW_FONT_OFFSET;
-#endif
-
- p->setPen( Qt::black );
- while ( fonts[f] ) {
- int s = 0;
- while ( sizes[s] ) {
- QFont font;
- font.setFamily ( fonts[f] );
- font.setPixelSizeFloat ( (float)sizes[s] );
- p->setFont( font );
- QFontMetrics fm = p->fontMetrics();
- y += fm.ascent();
- p->drawText( 10, y, fonts[f] );
- QString n;
- n.sprintf( " size = %d, h = %d, a = %d, d = %d ", sizes[s], fm.height(),fm.ascent(),fm.descent() );
- p->drawText( 10 + p->fontMetrics().width(fonts[f]), y, n );
- p->drawText( 10 + p->fontMetrics().width(n) + p->fontMetrics().width(fonts[f]) , y, "pqX-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz" );
- y += fm.descent();
- s++;
- }
- f++;
- }
-
- QFont font;
- font.setFamily ("Helvetica");
- font.setPixelSizeFloat ((float)12);
- p->setFont( font );
- p->setBrush ( Qt::white );
- p->drawRect(700, 600, 150, 60);
- p->drawText(700, 600, 150, 60 , Qt::WordBreak, "Some text in a box that should word break." );
- p->drawRect(700, 670, 150, 60);
- p->drawText(700, 670, 150, 60 , Qt::AlignLeft, "Some text in a box that should align left." );
- p->drawRect(700, 740, 150, 60);
- p->drawText(700, 740, 150, 60 , Qt::AlignRight, "Some text in a box that should align right." );
- p->drawRect(700, 810, 100, 60);
- p->drawText(700, 810, 100, 60 , Qt::AlignLeft|Qt::WordBreak, "Some text in a box that should align left and word break." );
- p->drawRect(700, 880, 100, 60);
- p->drawText(700, 880, 100, 60 , Qt::AlignRight|Qt::WordBreak, "Some text in a box that should align right and word break." );
-
- p->restore();
-}
-
-
-//
-// This function draws some shapes
-//
-
-#define DRAW_SHAPES_OFFSET 690.0F
-
-void drawShapes( QPainter *p )
-{
- QBrush b1( Qt::blue );
- QBrush b2( Qt::green); // green
- QBrush b3( Qt::lightGray ); //
- QBrush b4( Qt::red ); // red
-
- int y = 10;
-
- p->save();
-
-#ifdef USE_TRANSLATION
- QWMatrix matrix;
- matrix.translate( 0.0F, DRAW_SHAPES_OFFSET ); // move to center
- p->setWorldMatrix( matrix ); // use this world matrix
-#else
- y += (int)DRAW_SHAPES_OFFSET;
-#endif
- p->setPen( Qt::red );
- p->setBrush( b1 );
- p->drawRect( 10, y, 200, 100 );
- p->setBrush( b3 );
- p->drawEllipse( 250, y, 200, 100 );
-
- p->drawArc( 500, y, 200, 200, 0*16, 360*16 );
- p->drawArc( 500, y + 20, 100, 100, 0*16, 360*16 );
- p->setPen( Qt::white );
- p->drawArc( 500, y, 200, 200, 45*16, 90*16 );
- p->drawArc( 500, y + 20, 100, 100, 180*16, 45*16 );
-
- int x = 10, offset = 40;
- y += 110;
- QCOORD points1[] = { x,y, x+offset,y, x+offset,y+offset, x,y+offset, x,y };
- QPointArray a1( 5, points1 );
-
- p->setPen( Qt::green );
- p->drawPolyline( a1 );
-
- x = 200, offset = 40;
- QCOORD points2[] = { x,y, x+offset,y, x+offset*2,y+offset, x,y+offset, x-10,y };
- QPointArray a2( 5, points2 );
-
- p->setBrush( Qt::lightGray );
- p->setPen( Qt::darkRed );
- p->drawPolygon( a2 );
-
-
- p->restore();
-}
-
-
-class DrawView : public QWidget
-{
-public:
- DrawView();
- ~DrawView();
-protected:
-
-#ifdef _KWQ_
- void paint( void * );
-#else
- void paintEvent( QPaintEvent * );
-#endif
-private:
-};
-
-
-//
-// Construct the DrawView with buttons.
-//
-
-DrawView::DrawView()
-{
- resize( 980,980 );
-}
-
-//
-// Clean up
-//
-DrawView::~DrawView()
-{
-}
-
-//
-// Called when the widget needs to be updated.
-//
-
-#ifdef _KWQ_
-void DrawView::paint( void *arg )
-{
- QPainter paint( this );
-
- drawColors (&paint);
- drawImages (&paint);
- drawFonts (&paint);
- drawShapes (&paint);
-}
-#else
-void DrawView::paintEvent( QPaintEvent * )
-{
- QPainter paint( this );
-
- drawColors (&paint);
- drawImages (&paint);
- drawFonts (&paint);
- drawShapes (&paint);
-}
-#endif
-
-
-//
-// Create and display our widget.
-//
-
-int main( int argc, char **argv )
-{
- QApplication app( argc, argv );
- DrawView draw;
- app.setMainWidget( &draw );
- draw.show();
- return app.exec();
-}
diff --git a/WebCore/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings b/WebCore/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings
deleted file mode 100644
index c9c7ca4..0000000
Binary files a/WebCore/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings and /dev/null differ
diff --git a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib b/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib
deleted file mode 100644
index 0fd7917..0000000
--- a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- CLASS = _KWQOwner;
- LANGUAGE = ObjC;
- OUTLETS = {window = id; };
- SUPERCLASS = NSApplication;
- }
- );
- IBVersion = 1;
-}
\ No newline at end of file
diff --git a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib b/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib
deleted file mode 100644
index ba73594..0000000
--- a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>IBFramework Version</key>
- <string>219.0</string>
- <key>IBMainMenuLocation</key>
- <string>69 252 318 44 0 0 1600 1002 </string>
- <key>IBSystem Version</key>
- <string>5G64</string>
- <key>IBUserGuides</key>
- <dict>
- <key>Window</key>
- <dict>
- <key>guideLocations</key>
- <array/>
- <key>guidesLocked</key>
- <string>NO</string>
- </dict>
- </dict>
-</dict>
-</plist>
diff --git a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib b/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib
deleted file mode 100644
index 5f2f293..0000000
Binary files a/WebCore/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib and /dev/null differ
diff --git a/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore b/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore
deleted file mode 100644
index 0857ac3..0000000
--- a/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pbxuser
diff --git a/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj b/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj
deleted file mode 100644
index 1e521e1..0000000
--- a/WebCore/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj
+++ /dev/null
@@ -1,395 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 34;
- objects = {
- 080E96DCFE201CFB7F000001 = {
- fileRef = 29B97318FDCFA39411CA2CEA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 080E96DDFE201D6D7F000001 = {
- children = (
- );
- isa = PBXGroup;
- name = Classes;
- refType = 4;
- };
- 089C165CFE840E0CC02AAC07 = {
- children = (
- 089C165DFE840E0CC02AAC07,
- );
- isa = PBXVariantGroup;
- name = InfoPlist.strings;
- refType = 4;
- };
- 089C165DFE840E0CC02AAC07 = {
- fileEncoding = 10;
- isa = PBXFileReference;
- name = English;
- path = English.lproj/InfoPlist.strings;
- refType = 4;
- };
- 089C165EFE840E0CC02AAC07 = {
- fileRef = 089C165CFE840E0CC02AAC07;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//080
-//081
-//082
-//083
-//084
-//100
-//101
-//102
-//103
-//104
- 1058C7A0FEA54F0111CA2CBB = {
- children = (
- 1058C7A1FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = "Linked Frameworks";
- refType = 4;
- };
- 1058C7A1FEA54F0111CA2CBB = {
- isa = PBXFrameworkReference;
- name = Cocoa.framework;
- path = /System/Library/Frameworks/Cocoa.framework;
- refType = 0;
- };
- 1058C7A2FEA54F0111CA2CBB = {
- children = (
- 29B97325FDCFA39411CA2CEA,
- 29B97324FDCFA39411CA2CEA,
- );
- isa = PBXGroup;
- name = "Other Frameworks";
- refType = 4;
- };
- 1058C7A3FEA54F0111CA2CBB = {
- fileRef = 1058C7A1FEA54F0111CA2CBB;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//100
-//101
-//102
-//103
-//104
-//170
-//171
-//172
-//173
-//174
- 17587328FF379C6511CA2CBB = {
- isa = PBXApplicationReference;
- path = drawApp.app;
- refType = 3;
- };
-//170
-//171
-//172
-//173
-//174
-//190
-//191
-//192
-//193
-//194
- 19C28FACFE9D520D11CA2CBB = {
- children = (
- 17587328FF379C6511CA2CBB,
- );
- isa = PBXGroup;
- name = Products;
- refType = 4;
- };
-//190
-//191
-//192
-//193
-//194
-//250
-//251
-//252
-//253
-//254
- 251C98EA017CDDA10ECA149E = {
- isa = PBXFileReference;
- name = draw.mm;
- path = ../draw.mm;
- refType = 2;
- };
- 251C98EB017CDDA10ECA149E = {
- fileRef = 251C98EA017CDDA10ECA149E;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//250
-//251
-//252
-//253
-//254
-//290
-//291
-//292
-//293
-//294
- 29B97313FDCFA39411CA2CEA = {
- buildStyles = (
- 4A9504CCFFE6A4B311CA0CBA,
- 4A9504CDFFE6A4B311CA0CBA,
- );
- isa = PBXProject;
- mainGroup = 29B97314FDCFA39411CA2CEA;
- projectDirPath = "";
- targets = (
- 29B97326FDCFA39411CA2CEA,
- );
- };
- 29B97314FDCFA39411CA2CEA = {
- children = (
- 080E96DDFE201D6D7F000001,
- 29B97315FDCFA39411CA2CEA,
- 29B97317FDCFA39411CA2CEA,
- 29B97323FDCFA39411CA2CEA,
- 19C28FACFE9D520D11CA2CBB,
- );
- isa = PBXGroup;
- name = drawApp;
- path = "";
- refType = 4;
- };
- 29B97315FDCFA39411CA2CEA = {
- children = (
- 251C98EA017CDDA10ECA149E,
- );
- isa = PBXGroup;
- name = "Other Sources";
- path = "";
- refType = 4;
- };
- 29B97317FDCFA39411CA2CEA = {
- children = (
- 29B97318FDCFA39411CA2CEA,
- 089C165CFE840E0CC02AAC07,
- 9C05E999017653110ECA16EA,
- 9C05E99A017653110ECA16EA,
- 9C05E99B017653110ECA16EA,
- );
- isa = PBXGroup;
- name = Resources;
- path = "";
- refType = 4;
- };
- 29B97318FDCFA39411CA2CEA = {
- children = (
- 29B97319FDCFA39411CA2CEA,
- );
- isa = PBXVariantGroup;
- name = MainMenu.nib;
- path = "";
- refType = 4;
- };
- 29B97319FDCFA39411CA2CEA = {
- isa = PBXFileReference;
- name = English;
- path = English.lproj/MainMenu.nib;
- refType = 4;
- };
- 29B97323FDCFA39411CA2CEA = {
- children = (
- 1058C7A0FEA54F0111CA2CBB,
- 1058C7A2FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = Frameworks;
- path = "";
- refType = 4;
- };
- 29B97324FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = AppKit.framework;
- path = /System/Library/Frameworks/AppKit.framework;
- refType = 0;
- };
- 29B97325FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = Foundation.framework;
- path = /System/Library/Frameworks/Foundation.framework;
- refType = 0;
- };
- 29B97326FDCFA39411CA2CEA = {
- buildPhases = (
- 29B97327FDCFA39411CA2CEA,
- 29B97328FDCFA39411CA2CEA,
- 29B9732BFDCFA39411CA2CEA,
- 29B9732DFDCFA39411CA2CEA,
- );
- buildSettings = {
- FRAMEWORK_SEARCH_PATHS = "";
- HEADER_SEARCH_PATHS = "";
- INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = ../../../../../lib;
- OTHER_CFLAGS = "-DHAVE_CONFIG_H -DQT_NO_DATASTREAM -D_KWQ_ -I../../../qt -I../../.. -I../../../../..";
- OTHER_LDFLAGS = "-lwebcore -framework Webkit";
- PRODUCT_NAME = drawApp;
- SECTORDER_FLAGS = "";
- WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
- WRAPPER_EXTENSION = app;
- };
- dependencies = (
- );
- isa = PBXApplicationTarget;
- name = drawApp;
- productInstallPath = "$(HOME)/Applications";
- productName = drawApp;
- productReference = 17587328FF379C6511CA2CBB;
- productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
-<plist version=\"0.9\">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>drawApp</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.1</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>_KWQOwner</string>
-</dict>
-</plist>
-";
- shouldUseHeadermap = 1;
- };
- 29B97327FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- );
- isa = PBXHeadersBuildPhase;
- name = Headers;
- };
- 29B97328FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 080E96DCFE201CFB7F000001,
- 089C165EFE840E0CC02AAC07,
- 9C05E99C017653110ECA16EA,
- 9C05E99D017653110ECA16EA,
- 9C05E99E017653110ECA16EA,
- );
- isa = PBXResourcesBuildPhase;
- name = "Bundle Resources";
- };
- 29B9732BFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 251C98EB017CDDA10ECA149E,
- );
- isa = PBXSourcesBuildPhase;
- name = Sources;
- };
- 29B9732DFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 1058C7A3FEA54F0111CA2CBB,
- );
- isa = PBXFrameworksBuildPhase;
- name = "Frameworks & Libraries";
- };
-//290
-//291
-//292
-//293
-//294
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
- 4A9504CCFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- OPTIMIZATION_CFLAGS = "-O0";
- };
- isa = PBXBuildStyle;
- name = Development;
- };
- 4A9504CDFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- isa = PBXBuildStyle;
- name = Deployment;
- };
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
-//9C0
-//9C1
-//9C2
-//9C3
-//9C4
- 9C05E999017653110ECA16EA = {
- isa = PBXFileReference;
- name = powermac.jpg;
- path = ../powermac.jpg;
- refType = 2;
- };
- 9C05E99A017653110ECA16EA = {
- isa = PBXFileReference;
- name = qt.png;
- path = ../qt.png;
- refType = 2;
- };
- 9C05E99B017653110ECA16EA = {
- isa = PBXFileReference;
- name = yahoo.gif;
- path = ../yahoo.gif;
- refType = 2;
- };
- 9C05E99C017653110ECA16EA = {
- fileRef = 9C05E999017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 9C05E99D017653110ECA16EA = {
- fileRef = 9C05E99A017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 9C05E99E017653110ECA16EA = {
- fileRef = 9C05E99B017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- };
- rootObject = 29B97313FDCFA39411CA2CEA;
-}
diff --git a/WebCore/kwq/tests/draw/powermac.jpg b/WebCore/kwq/tests/draw/powermac.jpg
deleted file mode 100644
index e9d1995..0000000
Binary files a/WebCore/kwq/tests/draw/powermac.jpg and /dev/null differ
diff --git a/WebCore/kwq/tests/draw/qt.png b/WebCore/kwq/tests/draw/qt.png
deleted file mode 100644
index 1f619c1..0000000
Binary files a/WebCore/kwq/tests/draw/qt.png and /dev/null differ
diff --git a/WebCore/kwq/tests/draw/yahoo.gif b/WebCore/kwq/tests/draw/yahoo.gif
deleted file mode 100644
index 7a79228..0000000
Binary files a/WebCore/kwq/tests/draw/yahoo.gif and /dev/null differ
diff --git a/WebCore/kwq/tests/harness.c b/WebCore/kwq/tests/harness.c
deleted file mode 100644
index af99fd0..0000000
--- a/WebCore/kwq/tests/harness.c
+++ /dev/null
@@ -1,300 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-
-#define LIST "test.list"
-#define BUFSIZE 1024
-#define MAX_NAME_LEN 40
-#define TEST_ERR_LEN 29
-#define CHK_ERR_LEN 28
-
-int ok = 0;
-int no = 0;
-
-void ppad(int pad) {
- if (pad > 0) {
- while (--pad) {
- printf(".");
- }
- }
-}
-
-void *emalloc(size_t size) {
- void *p;
-
- p = malloc(size);
-
- if (!p) {
- fprintf(stderr, "memory allocation failure\n");
- exit(1);
- }
-
- return p;
-}
-
-int getfile(const char *filename, char **text) {
- FILE *file = NULL;
- int total_read = 0;
-
- file = fopen(filename, "r");
- if (file == NULL) {
- fprintf(stderr, "%s:%d: %s: %s\n", __FILE__, __LINE__, strerror(errno), filename);
- return -1;
- }
- else {
- int char_size = sizeof(char);
- int index = 0;
- int cap = BUFSIZE;
- char *buf;
-
- *text = emalloc(cap);
- buf = emalloc(BUFSIZE);
-
- do {
- int read;
- read = fread(buf, char_size, BUFSIZE, file);
- if (ferror(file) != 0) {
- free(buf);
- free(*text);
- fclose(file);
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- total_read += read;
- if (total_read > cap) {
- char *newmem = realloc(*text, (cap * 2));
- if(newmem == NULL) {
- free(buf);
- free(*text);
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- *text = newmem;
- cap = total_read;
- }
- memcpy((*text) + index, buf, read);
- index = total_read;
- }
- while (feof(file) == 0);
- free(buf);
- (*text)[total_read] = '\0';
- /* close file */
- if (fclose(file) != 0) {
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- }
- return total_read;
-}
-
-int runtest(const char *test) {
- int pid;
- int fd;
- char chkname[64];
- char outname[64];
- char *out;
- char *chk;
- int outlen;
- int chklen;
- struct stat buf;
- int pad;
- int status;
-
- status = 0;
-
- strcpy(chkname, test);
- strcat(chkname, ".chk");
-
- strcpy(outname, test);
- strcat(outname, ".out");
-
- printf("%s", test);
-
- if(stat(test, &buf)) {
- pad = TEST_ERR_LEN - strlen(test);
- ppad(pad);
- printf("test file not found\n");
- return -1;
- }
-
- if(stat(chkname, &buf)) {
- pad = CHK_ERR_LEN - strlen(test);
- ppad(pad);
- printf("check file not found\n");
- return -1;
- }
-
- /* pad with dots */
- pad = MAX_NAME_LEN - strlen(test);
- ppad(pad);
-
- /* Fork a child to run the test */
- pid = fork();
- if (pid == 0) { /* child */
-
- /* Create a temporary file to catch output of test program */
- fd = open(outname, O_CREAT | O_WRONLY, S_IRWXU);
- if (fd == -1) {
- fprintf(stderr, "open of outfile failed\n");
- }
- else {
- /* Redirect stdout to a temporary file */
- close(1);
- dup(fd);
- close(fd);
-
- /* exec test file */
- execl(test, test, NULL);
-
- fprintf(stderr, "exec of %s failed\n", test);
- exit(1);
- }
- }
- else if (pid == -1) {
- fprintf(stderr, "fork failed\n");
- exit(1);
- }
-
- /* Wait for child to complete before returning */
- while (wait(&status) != pid) {} /* empty loop */
- if (WIFEXITED(status)) {
- status = WEXITSTATUS(status);
- }
- else {
- status = -1;
- }
-
- /* collect result and check output from files */
- outlen = getfile(outname, &out);
- chklen = getfile(chkname, &chk);
-
- /* compare output with expected result */
- if (status != 0) {
- no++;
- printf("fail [exit code]\n");
- }
- else if (outlen != chklen) {
- no++;
- printf("fail [!= lengths]\n");
- }
- else if (memcmp(out, chk, chklen) != 0) {
- no++;
- printf("fail [!= output]\n");
- }
- else {
- ok++;
- printf(".ok\n");
- }
-
- free(out);
- free(chk);
-
- /* clean up the temporary file */
- remove(outname);
-
- return 0;
-}
-
-int main(int argc, char **argv) {
-
- char **suites;
- char *list;
- char *line;
- int num;
- int t;
- int i;
- int head;
-
- printf("harness begin\n");
- printf("=========================================================\n");
-
- if (argc < 2) {
- suites = emalloc(sizeof(char *));
- suites[0] = LIST;
- num = 1;
- }
- else {
- num = argc - 1;
- suites = emalloc(num * sizeof(char *));
- for (i = 0; i < num; i++) {
- suites[i] = argv[i + 1];
- }
- }
-
- head = 1;
- for (i = 0; i < num; i++) {
- if (getfile(suites[i], &list) == -1) {
- continue;
- }
- line = strtok(list, "\n");
- while (line != NULL) {
- if (line[0] == '#') {
- head = 0;
- printf("%s\n", line);
- }
- else {
- if (head == 0) {
- printf("Test Name Output\n");
- printf("---------------------------------------------------------\n");
- }
- head = 1;
- runtest(line);
- }
- line = strtok(NULL, "\n");
- }
- free(list);
- }
- free(suites);
-
- t = ok + no;
- printf("---------------------------------------------------------\n");
- printf("Total Tests Run: %4d\n", t);
- printf("---------------------------------------------------------\n");
- printf("Summary Output\n");
- printf("Passed: %4d (%6.2f%%)\n",
- ok, ((float)ok / (float)t * 100)
- );
- printf("Failed: %4d (%6.2f%%)\n",
- no, ((float)no / (float)t * 100)
- );
- printf("=========================================================\n");
- printf("harness done\n");
-
- return no;
-
-}
-
-/*=============================================================================
-// end of file: $RCSfile$
-==============================================================================*/
-
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings b/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings
deleted file mode 100644
index 5414960..0000000
Binary files a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings and /dev/null differ
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib b/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib
deleted file mode 100644
index 7ab970d..0000000
--- a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- ACTIONS = {changeURL = id; };
- CLASS = _KWQOwner;
- LANGUAGE = ObjC;
- OUTLETS = {containerView = id; window = id; };
- SUPERCLASS = NSApplication;
- }
- );
- IBVersion = 1;
-}
\ No newline at end of file
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib b/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib
deleted file mode 100644
index ba73594..0000000
--- a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>IBFramework Version</key>
- <string>219.0</string>
- <key>IBMainMenuLocation</key>
- <string>69 252 318 44 0 0 1600 1002 </string>
- <key>IBSystem Version</key>
- <string>5G64</string>
- <key>IBUserGuides</key>
- <dict>
- <key>Window</key>
- <dict>
- <key>guideLocations</key>
- <array/>
- <key>guidesLocked</key>
- <string>NO</string>
- </dict>
- </dict>
-</dict>
-</plist>
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib b/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib
deleted file mode 100644
index addb7d4..0000000
Binary files a/WebCore/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib and /dev/null differ
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore b/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore
deleted file mode 100644
index 0857ac3..0000000
--- a/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pbxuser
diff --git a/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj b/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj
deleted file mode 100644
index 677bddb..0000000
--- a/WebCore/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj
+++ /dev/null
@@ -1,343 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 34;
- objects = {
- 080E96DCFE201CFB7F000001 = {
- fileRef = 29B97318FDCFA39411CA2CEA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 080E96DDFE201D6D7F000001 = {
- children = (
- );
- isa = PBXGroup;
- name = Classes;
- refType = 4;
- };
- 089C165CFE840E0CC02AAC07 = {
- children = (
- 089C165DFE840E0CC02AAC07,
- );
- isa = PBXVariantGroup;
- name = InfoPlist.strings;
- refType = 4;
- };
- 089C165DFE840E0CC02AAC07 = {
- fileEncoding = 10;
- isa = PBXFileReference;
- name = English;
- path = English.lproj/InfoPlist.strings;
- refType = 4;
- };
- 089C165EFE840E0CC02AAC07 = {
- fileRef = 089C165CFE840E0CC02AAC07;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//080
-//081
-//082
-//083
-//084
-//100
-//101
-//102
-//103
-//104
- 1058C7A0FEA54F0111CA2CBB = {
- children = (
- 1058C7A1FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = "Linked Frameworks";
- refType = 4;
- };
- 1058C7A1FEA54F0111CA2CBB = {
- isa = PBXFrameworkReference;
- name = Cocoa.framework;
- path = /System/Library/Frameworks/Cocoa.framework;
- refType = 0;
- };
- 1058C7A2FEA54F0111CA2CBB = {
- children = (
- 29B97325FDCFA39411CA2CEA,
- 29B97324FDCFA39411CA2CEA,
- );
- isa = PBXGroup;
- name = "Other Frameworks";
- refType = 4;
- };
- 1058C7A3FEA54F0111CA2CBB = {
- fileRef = 1058C7A1FEA54F0111CA2CBB;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//100
-//101
-//102
-//103
-//104
-//170
-//171
-//172
-//173
-//174
- 17587328FF379C6511CA2CBB = {
- isa = PBXApplicationReference;
- path = WebViewTest.app;
- refType = 3;
- };
-//170
-//171
-//172
-//173
-//174
-//190
-//191
-//192
-//193
-//194
- 19C28FACFE9D520D11CA2CBB = {
- children = (
- 17587328FF379C6511CA2CBB,
- );
- isa = PBXGroup;
- name = Products;
- refType = 4;
- };
-//190
-//191
-//192
-//193
-//194
-//250
-//251
-//252
-//253
-//254
- 25FB9CE1017B6FDB0ECA149E = {
- isa = PBXFileReference;
- name = draw.mm;
- path = ../draw.mm;
- refType = 2;
- };
- 25FB9CE2017B6FDB0ECA149E = {
- fileRef = 25FB9CE1017B6FDB0ECA149E;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//250
-//251
-//252
-//253
-//254
-//290
-//291
-//292
-//293
-//294
- 29B97313FDCFA39411CA2CEA = {
- buildStyles = (
- 4A9504CCFFE6A4B311CA0CBA,
- 4A9504CDFFE6A4B311CA0CBA,
- );
- isa = PBXProject;
- mainGroup = 29B97314FDCFA39411CA2CEA;
- projectDirPath = "";
- targets = (
- 29B97326FDCFA39411CA2CEA,
- );
- };
- 29B97314FDCFA39411CA2CEA = {
- children = (
- 080E96DDFE201D6D7F000001,
- 29B97315FDCFA39411CA2CEA,
- 29B97317FDCFA39411CA2CEA,
- 29B97323FDCFA39411CA2CEA,
- 19C28FACFE9D520D11CA2CBB,
- );
- isa = PBXGroup;
- name = WebViewTest;
- path = "";
- refType = 4;
- };
- 29B97315FDCFA39411CA2CEA = {
- children = (
- 25FB9CE1017B6FDB0ECA149E,
- );
- isa = PBXGroup;
- name = "Other Sources";
- path = "";
- refType = 4;
- };
- 29B97317FDCFA39411CA2CEA = {
- children = (
- 29B97318FDCFA39411CA2CEA,
- 089C165CFE840E0CC02AAC07,
- );
- isa = PBXGroup;
- name = Resources;
- path = "";
- refType = 4;
- };
- 29B97318FDCFA39411CA2CEA = {
- children = (
- 29B97319FDCFA39411CA2CEA,
- );
- isa = PBXVariantGroup;
- name = MainMenu.nib;
- path = "";
- refType = 4;
- };
- 29B97319FDCFA39411CA2CEA = {
- isa = PBXFileReference;
- name = English;
- path = English.lproj/MainMenu.nib;
- refType = 4;
- };
- 29B97323FDCFA39411CA2CEA = {
- children = (
- 1058C7A0FEA54F0111CA2CBB,
- 1058C7A2FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = Frameworks;
- path = "";
- refType = 4;
- };
- 29B97324FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = AppKit.framework;
- path = /System/Library/Frameworks/AppKit.framework;
- refType = 0;
- };
- 29B97325FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = Foundation.framework;
- path = /System/Library/Frameworks/Foundation.framework;
- refType = 0;
- };
- 29B97326FDCFA39411CA2CEA = {
- buildPhases = (
- 29B97327FDCFA39411CA2CEA,
- 29B97328FDCFA39411CA2CEA,
- 29B9732BFDCFA39411CA2CEA,
- 29B9732DFDCFA39411CA2CEA,
- );
- buildSettings = {
- FRAMEWORK_SEARCH_PATHS = /symroots;
- HEADER_SEARCH_PATHS = "";
- INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = ../../../../../lib;
- OTHER_CFLAGS = "-DHAVE_CONFIG_H -DQT_NO_DATASTREAM -D_KWQ_ -I../../../qt -I../../.. -I../../../../.. -I../../../../kdelibs/khtml -I../../../../kwq/kdecore -I../../../../kwq/kde -I../../../../kwq -I../../../../../include";
- OTHER_LDFLAGS = "-lwebcore -framework WebKit";
- PRODUCT_NAME = WebViewTest;
- SECTORDER_FLAGS = "";
- WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
- WRAPPER_EXTENSION = app;
- };
- dependencies = (
- );
- isa = PBXApplicationTarget;
- name = WebViewTest;
- productInstallPath = "$(HOME)/Applications";
- productName = WebViewTest;
- productReference = 17587328FF379C6511CA2CBB;
- productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
-<plist version=\"0.9\">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>WebViewTest</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.1</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>_KWQOwner</string>
-</dict>
-</plist>
-";
- shouldUseHeadermap = 1;
- };
- 29B97327FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- );
- isa = PBXHeadersBuildPhase;
- name = Headers;
- };
- 29B97328FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 080E96DCFE201CFB7F000001,
- 089C165EFE840E0CC02AAC07,
- );
- isa = PBXResourcesBuildPhase;
- name = "Bundle Resources";
- };
- 29B9732BFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 25FB9CE2017B6FDB0ECA149E,
- );
- isa = PBXSourcesBuildPhase;
- name = Sources;
- };
- 29B9732DFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 1058C7A3FEA54F0111CA2CBB,
- );
- isa = PBXFrameworksBuildPhase;
- name = "Frameworks & Libraries";
- };
-//290
-//291
-//292
-//293
-//294
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
- 4A9504CCFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- OPTIMIZATION_CFLAGS = "-O0";
- };
- isa = PBXBuildStyle;
- name = Development;
- };
- 4A9504CDFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- isa = PBXBuildStyle;
- name = Deployment;
- };
- };
- rootObject = 29B97313FDCFA39411CA2CEA;
-}
diff --git a/WebCore/kwq/tests/khtmlview/draw.mm b/WebCore/kwq/tests/khtmlview/draw.mm
deleted file mode 100644
index bdb22bb..0000000
--- a/WebCore/kwq/tests/khtmlview/draw.mm
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <qapplication.h>
-#include <khtmlview.h>
-
-#include <KWQView.h>
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-// Voodoo required to get compiler to compile correctly.
-#undef DEBUG
-#import <Cocoa/Cocoa.h>
-
-//
-// Create and display our widget.
-//
-
-/*
- This program illustrates the canonical method for
- creating a WebPageView. It currently use kde and Qt
- API to create a web page view. Eventually it will
- use WebPageView and WebKit API.
-
- The following methods will eventually create a
- web page view.
-
- url = [NSURL URLWithString: @"http://www.apple.com"];
- wpd = [[NSWebPageDocument alloc] initWithURL: url];
- wpv = [[NSWebPageView alloc] initWithFrame: NSMakeRect (0,0,500,500) document: wpd]
-
-*/
-
-int main( int argc, char **argv )
-{
- QApplication app( argc, argv );
-
- // This will eventually be replaced with a NSURL.
- KURL url = "http://kocike.apple.com/foo.html";
-
- // Use KHTMLPart as the model for the view. This will eventually be covered
- // by WebPageDocument.
- // [[WebPageDocument alloc] initWithURL: (NSURL *)url];
- KHTMLPart *w = new KHTMLPart();
-
- // Create the KHTMLView. This will eventually be covered by the
- // WebPageView.
- // [[WebPageView alloc] initWithFrame: (NSRect)rect document: (WebPageDocument *)doc]
- KHTMLView *htmlView = new KHTMLView (w, 0);
- htmlView->resize (800,800);
- KWQHTMLView *kwqHTMLView = [[[KWQHTMLView alloc] initWithFrame: NSMakeRect (0,0,0,0) widget: htmlView] autorelease];
- kwqHTMLView->part = w;
-
- w->setView (htmlView);
-
- w->openURL (url);
-
- htmlView->setView (kwqHTMLView);
-
- htmlView->resize(800, 800);
-
- app.setMainWidget( htmlView );
- htmlView->show();
-
- return app.exec();
-}
diff --git a/WebCore/kwq/tests/qt/.cvsignore b/WebCore/kwq/tests/qt/.cvsignore
deleted file mode 100644
index 69e99b1..0000000
--- a/WebCore/kwq/tests/qt/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-test
-Makefile
-*-test
diff --git a/WebCore/kwq/tests/qt/Makefile.in b/WebCore/kwq/tests/qt/Makefile.in
deleted file mode 100644
index 24206e8..0000000
--- a/WebCore/kwq/tests/qt/Makefile.in
+++ /dev/null
@@ -1,151 +0,0 @@
-#======================================================================
-#
-# Makefile
-#
-# $RCSfile$
-#
-#======================================================================
-# set top source dir relative to this directory
-# include make vars boilerplate
-#
-
-TOPSRCDIR = ../../../..
-include $(TOPSRCDIR)/Makefile.vars
-
-#----------------------------------------------------------------------
-# Set variables for this directory
-
-CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
-CMMOBJECTS = objc-dummy.o
-
-OBJECTS = $(CMMOBJECTS) $(CXXOBJECTS)
-
-PROGRAMS = \
- qpoint-test \
- qsize-test \
- qrect-test \
- qcstring-test \
- qarray-test \
- qmap-test \
- qvaluelist-test \
- qstringlist-test \
- qlist-test \
- qvector-test \
- qdict-test \
- qptrdict-test \
- qstack-test \
- qregexp-test \
- qchar-test \
- qstring-test \
- qdate-test \
- qtime-test \
- qdatetime-test \
- qsortedlist-test \
- $(NULL)
-
-CLEAN_FILES = *.o \
- $(PROGRAMS) \
- $(NULL)
-
-#----------------------------------------------------------------------
-# Set flags for this directory
-
-CXXFLAGS = $(BASECXXFLAGS) \
- -Wall \
- -I$(TOPSRCDIR) \
- -I../../qt \
- -I../.. \
- -I. \
- $(NULL)
-
-CMMFLAGS = $(BASECMMFLAGS)
-
-LIBS = objc-dummy.o \
- -framework Cocoa \
- -F/symroots \
- -framework WebKit \
- -lwebcore \
- $(NULL)
-
-LDFLAGS = $(BASELDFLAGS) \
- -L$(TOPSRCDIR)/lib \
- $(NULL)
-
-DEPFLAGS = $(CXXFLAGS)
-
-#----------------------------------------------------------------------
-# Set targets for this directory
-
-all: $(OBJECTS) $(PROGRAMS)
-
-qpoint-test: qpoint-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qsize-test: qsize-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qrect-test: qrect-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qcstring-test: qcstring-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qarray-test: qarray-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qmap-test: qmap-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qvaluelist-test: qvaluelist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstringlist-test: qstringlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qlist-test: qlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qvector-test: qvector-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdict-test: qdict-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qptrdict-test: qptrdict-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstack-test: qstack-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qregexp-test: qregexp-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qchar-test: qchar-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstring-test: qstring-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdate-test: qdate-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qtime-test: qtime-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdatetime-test: qdatetime-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qsortedlist-test: qsortedlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-
-depend:
-
-#----------------------------------------------------------------------
-# include make rules boilerplate
-
-include $(TOPSRCDIR)/Makefile.rules
-
-#======================================================================
-# end
-#======================================================================
diff --git a/WebCore/kwq/tests/qt/objc-dummy.mm b/WebCore/kwq/tests/qt/objc-dummy.mm
deleted file mode 100644
index 531a44a..0000000
--- a/WebCore/kwq/tests/qt/objc-dummy.mm
+++ /dev/null
@@ -1,6 +0,0 @@
-#import <Cocoa/Cocoa.h>
-
-void objective_c_hack()
-{
- NSObject *o = [NSObject alloc];
-}
diff --git a/WebCore/kwq/tests/qt/qarray-test.chk b/WebCore/kwq/tests/qt/qarray-test.chk
deleted file mode 100644
index 8c4cdbb..0000000
Binary files a/WebCore/kwq/tests/qt/qarray-test.chk and /dev/null differ
diff --git a/WebCore/kwq/tests/qt/qarray-test.cpp b/WebCore/kwq/tests/qt/qarray-test.cpp
deleted file mode 100644
index fd348f2..0000000
--- a/WebCore/kwq/tests/qt/qarray-test.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-#include <iostream>
-
-#include <qarray.h>
-
-int main() {
-
- QArray<char> a0 = QArray<char>(10);
- QArray<char> a1 = QArray<char>(10);
- QArray<char> a2 = QArray<char>(10);
- QArray<char> a3;
- char *ch;
-
- char c = 'a';
- for (int i = 0; i < 10; i++) {
- a0[i] = c + i;
- }
-
- a1 = a0;
- cout << "a0: " << a0 << endl;
- cout << "a1: " << a1 << endl;
- cout << "a2: " << a2 << endl;
- cout << "a3: " << a3 << endl;
-
- cout << "a0 == a1: " << (a0 == a1) << endl;
- cout << "a0 == a2: " << (a0 == a2) << endl;
- cout << "a0 != a1: " << (a0 != a1) << endl;
- cout << "a0 != a2: " << (a0 != a2) << endl;
-
- cout << "a2 is null: " << (a2.isNull()) << endl;
- cout << "a2 is empty: " << (a2.isEmpty()) << endl;
-
- cout << "a3 is null: " << (a3.isNull()) << endl;
- cout << "a3 is empty: " << (a3.isEmpty()) << endl;
-
- cout << "a0 count: " << (a0.count()) << endl;
-
- ch = a0.data();
- ch[10] = '\0';
- cout << "a0 data: " << ch << endl;
-
- a0.resize(15);
- for (int i = 10; i < 15; i++) {
- a0[i] = c + i;
- }
- cout << "a0 resize: " << a0 << endl;
-
- QArray<char> a4 = QArray<char>(10);
- a4.fill('c');
- cout << "a4 fill: " << a4 << endl;
-
- //cout << "a0 find 'j': " << a0.find('j') << endl;
-
- //cout << "a0 nrefs: " << a0.nrefs() << endl;
-
- //QArray<char> a5 = QArray<char>(10);
- //a5 = a0.copy();
- //cout << "a5 copy a0: " << a5 << endl;
-
- //QArray<char> a6 = QArray<char>(10);
- //a6 = a0.assign(a0); // hmm. Am I doing this right?
- //cout << "a6 assign a0: " << a6 << endl;
-
- //QArray<char> a7 = QArray<char>(10);
- //for (int i = 9; i >= 0; i--) {
- // a7[i] = 'j' - i;
- //}
-
- //cout << "a7 unsorted: " << a7 << endl;
- //a7.sort();
- //cout << "a7 sorted: " << a7 << endl;
-
-
- char ch2;
- ch2 = a0.at(4);
- cout << "a0 at 4: " << ch2 << endl;
-
- char *ch3;
- ch3 = a4.data();
- a0 = a0.duplicate(ch3, 10);
- cout << "a0 duplicate from a4: " << a0 << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qchar-test.chk b/WebCore/kwq/tests/qt/qchar-test.chk
deleted file mode 100644
index 0adb32a..0000000
Binary files a/WebCore/kwq/tests/qt/qchar-test.chk and /dev/null differ
diff --git a/WebCore/kwq/tests/qt/qchar-test.cpp b/WebCore/kwq/tests/qt/qchar-test.cpp
deleted file mode 100644
index 877aed1..0000000
--- a/WebCore/kwq/tests/qt/qchar-test.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-
-int main() {
- char c_char = 'a';
- uchar c_uchar = 'b';
- ushort c_ushort = 'D';
- short c_short = ' ';
- uint c_uint = '3';
- int c_int = '-';
-
- QChar q0 = QChar();
- QChar q1 = QChar(c_char);
- QChar q2 = QChar(c_uchar);
- //QChar q3 = QChar(c_uchar, 0);
- QChar q4 = QChar(q1);
- QChar q5 = QChar(c_ushort);
- QChar q6 = QChar(c_short);
- QChar q7 = QChar(c_uint);
- QChar q8 = QChar(c_int);
-
- cout << q1 << endl;
- cout << q2 << endl;
- //cout << q3 << endl;
- cout << q4 << endl;
- cout << q5 << endl;
- cout << q6 << endl;
- cout << q7 << endl;
- cout << q8 << endl;
-
- cout << q5.latin1() << endl;
- cout << q1.unicode() << endl;
- cout << q2.cell() << endl;
- cout << q2.row() << endl;
- cout << q2.operator char() << endl;
- //cout << q7.isNumber() << endl;
- //cout << q8.isNumber() << endl;
- cout << q8.isPunct() << endl;
- cout << q7.isPunct() << endl;
- cout << q6.isSpace() << endl;
- cout << q5.isSpace() << endl;
- cout << q0.isNull() << endl;
- cout << q1.isNull() << endl;
- //cout << q7.isNumber() << endl;
- //cout << q8.isNumber() << endl;
- cout << q7.isDigit() << endl;
- cout << q8.isDigit() << endl;
- cout << q7.isLetterOrNumber() << endl;
- cout << q8.isLetterOrNumber() << endl;
- //cout << q3.isPrint() << endl;
- //cout << q3.isMark() << endl;
- cout << q5.lower() << endl;
- cout << q1.upper() << endl;
-
- cout << (q2 <= c_char) << endl;
- cout << (q2 <= q1) << endl;
- cout << (c_char <= q2) << endl;
- cout << (q2 >= q1) << endl;
- cout << (q2 >= c_char) << endl;
- cout << (c_char >= q2) << endl;
- cout << (q2 != c_char) << endl;
- cout << (q2 != q1) << endl;
- cout << (c_char != q2) << endl;
- cout << (q2 < c_char) << endl;
- cout << (q2 < q1) << endl;
- cout << (c_char < q2) << endl;
- cout << (q2 > c_char) << endl;
- cout << (q2 > q1) << endl;
- cout << (c_char > q2) << endl;
- cout << (q2 == c_char) << endl;
- cout << (q2 == q1) << endl;
- cout << (c_char == q2) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qcstring-test.chk b/WebCore/kwq/tests/qt/qcstring-test.chk
deleted file mode 100644
index 1193931..0000000
--- a/WebCore/kwq/tests/qt/qcstring-test.chk
+++ /dev/null
@@ -1,28 +0,0 @@
-s0:
-s1:
-s2: this is a string
-s3: this is anothe
-s4: jazz hype loves two mugs for dire quixotic knobs
-s5:
-s6:
-s6 isEmpty: 1
-s4 isEmpty: 0
-s4 isNull: 0
-s0 isNull: 1
-s6 isNull: 0
-s7 lower: this was a sentence in all uppercase
-s8: I'm going to do a find on this sentence
-s8 find "this": 26
-s8 contains "o": 4
-s9: I'm going to get the length of this string
-s9 length: 42
-s10: I'm going to truncate this string to 15 characters
-s10 truncate 15: I'm going to tr
-s11: I'm going get 15 characters out of this string starting at position 10
-s11 mid 10-25: to tr
-s12: Have a good
-s12 +=: Have a good night
-s12 +=: Have a good night!
-s13: This is a sentence
-ch1: This is a sentence
-ch2: This is another sentence
diff --git a/WebCore/kwq/tests/qt/qcstring-test.cpp b/WebCore/kwq/tests/qt/qcstring-test.cpp
deleted file mode 100644
index 8ae25f7..0000000
--- a/WebCore/kwq/tests/qt/qcstring-test.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#include <iostream>
-
-#include <qcstring.h>
-
-int main() {
-
- QCString s0 = QCString();
- QCString s1 = QCString(10);
- QCString s2 = QCString("this is a string");
- QCString s3 = QCString("this is another string", 15);
- QCString s4 = "jazz hype loves two mugs for dire quixotic knobs";
- QCString s5 = s1;
- QCString s6 = "";
-
- cout << "s0: " << s6 << endl;
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3: " << s3 << endl;
- cout << "s4: " << s4 << endl;
- cout << "s5: " << s5 << endl;
- cout << "s6: " << s6 << endl;
-
- cout << "s6 isEmpty: " << s6.isEmpty() << endl;
- cout << "s4 isEmpty: " << s4.isEmpty() << endl;
-
- cout << "s4 isNull: " << s4.isNull() << endl;
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s6 isNull: " << s6.isNull() << endl;
-
- QCString s7 = "THIS WAS A SENTENCE IN ALL UPPERCASE";
- cout << "s7 lower: " << s7.lower() << endl;
-
- QCString s8 = "I'm going to do a find on this sentence";
- cout << "s8: " << s8 << endl;
- cout << "s8 find \"this\": " << s8.find("this", 0, TRUE) << endl;
- cout << "s8 contains \"o\": " << s8.contains('o', TRUE) << endl;
-
- QCString s9 = "I'm going to get the length of this string";
- cout << "s9: " << s9 << endl;
- cout << "s9 length: " << s9.length() << endl;
-
- QCString s10 = "I'm going to truncate this string to 15 characters";
- cout << "s10: " << s10 << endl;
- s10.truncate(15);
- cout << "s10 truncate 15: " << s10 << endl;
-
- QCString s11 = "I'm going get 15 characters out of this string starting at position 10";
- cout << "s11: " << s11 << endl;
- cout << "s11 mid 10-25: " << s10.mid(10, 15) << endl; // heh? Seems to return 10-15 instead of 10-25
-
- QCString s12 = "Have a good ";
- cout << "s12: " << s12 << endl;
- s12 += "night";
- cout << "s12 +=: " << s12 << endl;
- s12 += '!';
- cout << "s12 +=: " << s12 << endl;
-
- QCString s13 = "This is a sentence";
- char ch1[20], ch2[20];
- strcpy(ch1, "This is a sentence");
- strcpy(ch2, "This is another sentence");
- cout << "s13: " << s13 << endl;
- cout << "ch1: " << ch1 << endl;
- cout << "ch2: " << ch2 << endl;
-#if 0
- cout << "ch1 == s13: " << (ch1 == s13) << endl;
- cout << "s13 == ch1: " << (s13 == ch1) << endl;
- cout << "ch2 == s13: " << (ch2 == s13) << endl;
- cout << "s13 == ch2: " << (s13 == ch2) << endl;
- cout << "ch1 != s13: " << (ch1 != s13) << endl;
- cout << "s13 != ch1: " << (s13 != ch1) << endl;
- cout << "ch2 != s13: " << (ch2 != s13) << endl;
- cout << "s13 != ch2: " << (s13 != ch2) << endl;
-#endif
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qdate-test.chk b/WebCore/kwq/tests/qt/qdate-test.chk
deleted file mode 100644
index e9c79f1..0000000
--- a/WebCore/kwq/tests/qt/qdate-test.chk
+++ /dev/null
@@ -1,7 +0,0 @@
-d1: QDate: [yy/mm/dd: 1999/12/31]
-d2: QDate: [yy/mm/dd: 2001/10/23]
-d0 = d1: QDate: [yy/mm/dd: 1999/12/31]
-d0.year(): 1999
-d0.month(): 12
-d0.day(): 31
-d1.daysTo(d2): 662
diff --git a/WebCore/kwq/tests/qt/qdate-test.cpp b/WebCore/kwq/tests/qt/qdate-test.cpp
deleted file mode 100644
index 651e50b..0000000
--- a/WebCore/kwq/tests/qt/qdate-test.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QDate d0;
- QDate d1(1999, 12, 31);
- QDate d2(2001, 10, 23);
-
- cout << "d1: " << d1 << endl;
- cout << "d2: " << d2 << endl;
-
- d0 = d1;
- cout << "d0 = d1: " << d0 << endl;
-
- cout << "d0.year(): " << d0.year() << endl;
- cout << "d0.month(): " << d0.month() << endl;
- cout << "d0.day(): " << d0.day() << endl;
- cout << "d1.daysTo(d2): " << d1.daysTo(d2) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qdatetime-test.chk b/WebCore/kwq/tests/qt/qdatetime-test.chk
deleted file mode 100644
index 783834e..0000000
--- a/WebCore/kwq/tests/qt/qdatetime-test.chk
+++ /dev/null
@@ -1,6 +0,0 @@
-dt2: QDateTime: [yy/mm/dd hh:mm:ss:ms = 1999/12/31 23:59:0:0]
-dt3: QDateTime: [yy/mm/dd hh:mm:ss:ms = 2000/12/31 23:59:0:0]
-dt4: QDateTime: [yy/mm/dd hh:mm:ss:ms = 2000/12/31 23:59:0:0]
-dt0=dt2: QDateTime: [yy/mm/dd hh:mm:ss:ms = 1999/12/31 23:59:0:0]
-dt2 secsTo dt3: 31622400
-dt2 time: QTime: [hh:mm:ss:ms = 23:59:0:0]
diff --git a/WebCore/kwq/tests/qt/qdatetime-test.cpp b/WebCore/kwq/tests/qt/qdatetime-test.cpp
deleted file mode 100644
index beb11f9..0000000
--- a/WebCore/kwq/tests/qt/qdatetime-test.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QDate d1(1999, 12, 31);
- QDate d2(2000, 12, 31);
-
- QTime t1(23, 59);
- QTime t2(23, 59);
-
- QDateTime dt0;
- QDateTime dt2(d1, t1);
- QDateTime dt3(d2, t2);
- QDateTime dt4(dt3);
-
- cout << "dt2: " << dt2 << endl;
- cout << "dt3: " << dt3 << endl;
- cout << "dt4: " << dt4 << endl;
-
- dt0 = dt2;
- cout << "dt0=dt2: " << dt0 << endl;
-
- cout << "dt2 secsTo dt3: " << dt2.secsTo(dt3) << endl;
- cout << "dt2 time: " << dt2.time() << endl;
-
-
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qdict-test.chk b/WebCore/kwq/tests/qt/qdict-test.chk
deleted file mode 100644
index 3ac6e01..0000000
--- a/WebCore/kwq/tests/qt/qdict-test.chk
+++ /dev/null
@@ -1,5 +0,0 @@
-item keyed to 'one': 1
-remove item keyed to 'three': QDict: [size: 4; items: (two,2), (five,5), (four,4), (one,1)]
-d0 is empty: 1
-d1 is empty: 0
-d1 count: 4
diff --git a/WebCore/kwq/tests/qt/qdict-test.cpp b/WebCore/kwq/tests/qt/qdict-test.cpp
deleted file mode 100644
index 5358d0e..0000000
--- a/WebCore/kwq/tests/qt/qdict-test.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qdict.h>
-
-int main() {
-
- QDict<int> d0;
- QDict<int> d1;
- QDict<int> d2;
-
- int v1 = 1;
- int v2 = 2;
- int v3 = 3;
- int v4 = 4;
- int v5 = 5;
-
- d1.insert("one", &v1);
- d1.insert("two", &v2);
- d1.insert("three", &v3);
- d1.insert("four", &v4);
- d1.insert("five", &v5);
-
- //cout << d1 << endl;
-
- cout << "item keyed to 'one': " << *(d1.find("one")) << endl;
-
- d1.remove("three");
- cout << "remove item keyed to 'three': " << d1 << endl;
-
- cout << "d0 is empty: " << d0.isEmpty() << endl;
- cout << "d1 is empty: " << d1.isEmpty() << endl;
-
- cout << "d1 count: " << d1.count() << endl;
-
- d2 = d1;
- // cout << "d2 = d1: " << d2 << endl;
-
- d1.clear();
- // cout << "d1 cleared: " << d1 << endl;
-
-
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qlist-test.chk b/WebCore/kwq/tests/qt/qlist-test.chk
deleted file mode 100644
index c97616e..0000000
--- a/WebCore/kwq/tests/qt/qlist-test.chk
+++ /dev/null
@@ -1,30 +0,0 @@
-p0: QList: [size: 0; items: ]
-p1: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 1
-p1 isEmpty: 0
-p0 count: 0
-p1 count: 7
-p1 find index of 2: 2
-p1 removeFirst: QList: [size: 6; items: 1, 2, 3, 4, 5, 6]
-p1 removeLast: QList: [size: 5; items: 1, 2, 3, 4, 5]
-p1 take: 5 QList: [size: 4; items: 1, 2, 3, 4]
-p1 containsRef 3: 1
-p1 containsRef 0: 0
-p2 unsorted: QList: [size: 7; items: 6, 5, 4, 3, 2, 1, 0]
-p2 sorted: QList: [size: 7; items: 6, 0, 1, 2, 3, 5, 4]
-p1 at 2: 3
-p1 insert 7 in 1: QList: [size: 8; items: 1, 7, 8, 9, 10, 2, 3, 4]
-p1 remove: QList: [size: 7; items: 1, 7, 8, 9, 2, 3, 4]
-p1 remove 7: QList: [size: 6; items: 1, 8, 9, 2, 3, 4]
-p1 removeRef 8: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p2 getLast: 4
-p2 current: 4
-p2 first: 6
-p2 last: 4
-p2 prev: 5
-p2 next: 4
-p2 prepend 9: QList: [size: 8; items: 9, 6, 0, 1, 2, 3, 5, 4]
-p1: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p1 clear (autoDelete off): QList: [size: 0; items: ]
-p1 clear (autoDelete on): QList: [size: 0; items: ]
-p3 = p2: QList: [size: 8; items: 9, 6, 0, 1, 2, 3, 5, 4]
diff --git a/WebCore/kwq/tests/qt/qlist-test.cpp b/WebCore/kwq/tests/qt/qlist-test.cpp
deleted file mode 100644
index abe009b..0000000
--- a/WebCore/kwq/tests/qt/qlist-test.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-#include <iostream>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <qlist.h>
-
-int main() {
-
- QList<int> p0;
- QList<int> p1;
- QList<int> p2;
- QList<int> p3;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int p = 7;
- int q = 8;
- int r = 9;
- int s = 10;
-
- p1.append(&i);
- p1.append(&j);
- p1.append(&k);
- p1.append(&l);
- p1.append(&m);
- p1.append(&n);
- p1.append(&o);
-
- cout << "p0: " << p0 << endl;
- cout << "p1: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- cout << "p1 isEmpty: " << p1.isEmpty() << endl;
-
- cout << "p0 count: " << p0.count() << endl;
- cout << "p1 count: " << p1.count() << endl;
-
- cout << "p1 find index of 2: " << p1.find(&k) << endl;
-
- p1.removeFirst();
- cout << "p1 removeFirst: " << p1 << endl;
-
- p1.removeLast();
- cout << "p1 removeLast: " << p1 << endl;
-
- cout << "p1 take: " << *(p1.take()) << " " << p1 << endl;
-
- cout << "p1 containsRef 3: " << p1.containsRef(&l) << endl;
- cout << "p1 containsRef 0: " << p1.containsRef(&i) << endl;
-
- p2.append(&o);
- p2.append(&n);
- p2.append(&m);
- p2.append(&l);
- p2.append(&k);
- p2.append(&j);
- p2.append(&i);
- cout << "p2 unsorted: " << p2 << endl;
- p2.sort();
- cout << "p2 sorted: " << p2 << endl; //heh?
-
- int *n1;
- n1 = p1.at(2);
- cout << "p1 at 2: "<< *n1 << endl;
-
- p1.insert(1, &p);
- p1.insert(2, &q);
- p1.insert(3, &r);
- p1.insert(4, &s);
- cout << "p1 insert 7 in 1: " << p1 << endl;
-
- p1.remove();
- cout << "p1 remove: " << p1 << endl;
-
- p1.remove(&p);
- cout << "p1 remove 7: " << p1 << endl;
-
- p1.removeRef(&q);
- cout << "p1 removeRef 8: " << p1 << endl;
-
- int *n2;
- n2 = p2.getLast();
- cout << "p2 getLast: "<< *n2 << endl;
- n2 = p2.current();
- cout << "p2 current: "<< *n2 << endl;
- n2 = p2.first();
- cout << "p2 first: "<< *n2 << endl;
- n2 = p2.last();
- cout << "p2 last: "<< *n2 << endl;
- n2 = p2.prev();
- cout << "p2 prev: "<< *n2 << endl;
- n2 = p2.next();
- cout << "p2 next: "<< *n2 << endl;
-
- p2.prepend(&r);
- cout << "p2 prepend 9: "<< p2 << endl;
-
- cout << "p1: "<< p1 << endl;
- p1.setAutoDelete(FALSE);
- p1.clear();
- cout << "p1 clear (autoDelete off): "<< p1 << endl; // heh?
- p1.setAutoDelete(TRUE);
- p1.clear();
- cout << "p1 clear (autoDelete on): "<< p1 << endl;
-
- p3 = p2;
- cout << "p3 = p2: "<< p3 << endl;
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qmap-test.chk b/WebCore/kwq/tests/qt/qmap-test.chk
deleted file mode 100644
index fb99872..0000000
--- a/WebCore/kwq/tests/qt/qmap-test.chk
+++ /dev/null
@@ -1,9 +0,0 @@
-d1: QMap: [size: 5; items: (1,10), (2,20), (3,30), (4,40), (5,50)]
-d1 count: 5
-d1 find 1: 10
-d1 remove 3: QMap: [size: 4; items: (1,10), (2,20), (4,40), (5,50)]
-d0 isEmpty: 1
-d1 isEmpty: 0
-d2 = d1, d2: QMap: [size: 4; items: (1,10), (2,20), (4,40), (5,50)]
-d2[1]: 10
-d1 clear: QMap: [size: 0; items: ]
diff --git a/WebCore/kwq/tests/qt/qmap-test.cpp b/WebCore/kwq/tests/qt/qmap-test.cpp
deleted file mode 100644
index 2127153..0000000
--- a/WebCore/kwq/tests/qt/qmap-test.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qmap.h>
-
-int main() {
-
- QMap<int,int> d0;
- QMap<int,int> d1;
- QMap<int,int> d2;
-
- d1.insert(1, 10);
- d1.insert(2, 20);
- d1.insert(3, 30);
- d1.insert(4, 40);
- d1.insert(5, 50);
-
- cout << "d1: " << d1 << endl;
- cout << "d1 count: " << d1.count() << endl;
-
- cout << "d1 find 1: " << *(d1.find(1)) << endl;
-
- d1.remove(3);
- cout << "d1 remove 3: " << d1 << endl;
-
- cout << "d0 isEmpty: " << d0.isEmpty() << endl;
- cout << "d1 isEmpty: " << d1.isEmpty() << endl;
-
- d2 = d1;
- cout << "d2 = d1, d2: " << d2 << endl;
-
- cout << "d2[1]: " << d2[1] << endl;
-
- d1.clear();
- cout << "d1 clear: " << d1 << endl;
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qpoint-test.chk b/WebCore/kwq/tests/qt/qpoint-test.chk
deleted file mode 100644
index ea28460..0000000
--- a/WebCore/kwq/tests/qt/qpoint-test.chk
+++ /dev/null
@@ -1,29 +0,0 @@
-p1: QPoint: [x: 1; h: 1]
-p2: QPoint: [x: 3; h: 3]
-p3 = p1 + p2: QPoint: [x: 4; h: 4]
-p4 = p3: QPoint: [x: 4; h: 4]
-p5 = p3: QPoint: [x: 4; h: 4]
-p6 = p2 - p1: QPoint: [x: 2; h: 2]
-p5 setX(10): QPoint: [x: 10; h: 4]
-p5 setY(10): QPoint: [x: 10; h: 10]
-p5 += p1: QPoint: [x: 11; h: 11]
-p5 -= p2: QPoint: [x: 8; h: 8]
-p5 *= 3: QPoint: [x: 24; h: 24]
-p5 *= 3.333: QPoint: [x: 79; h: 79]
-p5 /= 2: QPoint: [x: 39; h: 39]
-p5 /= 2.222: QPoint: [x: 17; h: 17]
-p5 manhattanLength: 34
-p5 x: 17
-p5 y: 17
-p0 isNull: 1
-p1 isNull: 0
-p1 == p4: 0
-p3 == p4: 1
-p1 != p4: 1
-p3 != p4: 0
-p5 * 2: QPoint: [x: 34; h: 34]
-3 * p5: QPoint: [x: 51; h: 51]
-p5 / 2.222: QPoint: [x: 7; h: 7]
-p5 / 3: QPoint: [x: 5; h: 5]
-p5 * 2.222: QPoint: [x: 37; h: 37]
-3.333 * p5: QPoint: [x: 56; h: 56]
diff --git a/WebCore/kwq/tests/qt/qpoint-test.cpp b/WebCore/kwq/tests/qt/qpoint-test.cpp
deleted file mode 100644
index 2f6535c..0000000
--- a/WebCore/kwq/tests/qt/qpoint-test.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qpoint.h>
-
-int main() {
-
- QPoint p0;
- QPoint p1 = QPoint(1,1);
- QPoint p2 = QPoint(3,3);
- QPoint p3 = p1 + p2;
- QPoint p4 = p3;
- QPoint p5 = p3;
- QPoint p6 = p2 - p1;
-
- cout << "p1: " << p1 << endl;
- cout << "p2: " << p2 << endl;
- cout << "p3 = p1 + p2: " << p3 << endl;
- cout << "p4 = p3: " << p4 << endl;
- cout << "p5 = p3: " << p5 << endl;
- cout << "p6 = p2 - p1: " << p6 << endl;
-
- p5.setX(10);
- cout << "p5 setX(10): " << p5 << endl;
-
- p5.setY(10);
- cout << "p5 setY(10): " << p5 << endl;
-
- p5 += p1;
- cout << "p5 += p1: " << p5 << endl;
-
- p5 -= p2;
- cout << "p5 -= p2: " << p5 << endl;
-
- p5 *= 3;
- cout << "p5 *= 3: " << p5 << endl;
- p5 *= 3.333;
- cout << "p5 *= 3.333: " << p5 << endl;
-
- p5 /= 2;
- cout << "p5 /= 2: " << p5 << endl;
- p5 /= 2.222;
- cout << "p5 /= 2.222: " << p5 << endl;
-
- cout << "p5 manhattanLength: " << p5.manhattanLength() << endl;
-
- cout << "p5 x: " << p5.x() << endl;
- cout << "p5 y: " << p5.y() << endl;
-
-
- cout << "p0 isNull: " << p0.isNull() << endl;
- cout << "p1 isNull: " << p1.isNull() << endl;
-
- cout << "p1 == p4: " << (p1 == p4) << endl;
- cout << "p3 == p4: " << (p3 == p4) << endl;
-
- cout << "p1 != p4: " << (p1 != p4) << endl;
- cout << "p3 != p4: " << (p3 != p4) << endl;
-
- cout << "p5 * 2: " << (p5 * 2) << endl;
- cout << "3 * p5: " << (3 * p5) << endl;
- cout << "p5 / 2.222: " << (p5 / 2.222) << endl;
- cout << "p5 / 3: " << (p5 / 3) << endl;
- cout << "p5 * 2.222: " << (p5 * 2.222) << endl;
- cout << "3.333 * p5: " << (3.333 * p5) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qptrdict-test.chk b/WebCore/kwq/tests/qt/qptrdict-test.chk
deleted file mode 100644
index 79b7b9a..0000000
--- a/WebCore/kwq/tests/qt/qptrdict-test.chk
+++ /dev/null
@@ -1,10 +0,0 @@
-d1 find 1: 1
-d1 find 2: 2
-d1 find 3: 3
-d1 find 4: 4
-d1 find 5: 5
-d1 take 4: 4
-d1 find 2: 0x0
-d0 is empty: 1
-d1 is empty: 0
-d1 count: 3
diff --git a/WebCore/kwq/tests/qt/qptrdict-test.cpp b/WebCore/kwq/tests/qt/qptrdict-test.cpp
deleted file mode 100644
index 5329a08..0000000
--- a/WebCore/kwq/tests/qt/qptrdict-test.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <iostream>
-
-#include <qstring.h>
-#include <qptrdict.h>
-
-int main() {
-
- QPtrDict<int> d0;
- QPtrDict<int> d1;
- QPtrDict<int> d2;
-
- int v1 = 1;
- int v2 = 2;
- int v3 = 3;
- int v4 = 4;
- int v5 = 5;
-
- d1.insert(&v1, &v1);
- d1.insert(&v2, &v2);
- d1.insert(&v3, &v3);
- d1.insert(&v4, &v4);
- d1.insert(&v5, &v5);
-
-
- //cout << "d1: " << d1 << endl;
-
- cout << "d1 find 1: " << *(d1.find(&v1)) << endl;
- cout << "d1 find 2: " << *(d1.find(&v2)) << endl;
- cout << "d1 find 3: " << *(d1.find(&v3)) << endl;
- cout << "d1 find 4: " << *(d1.find(&v4)) << endl;
- cout << "d1 find 5: " << *(d1.find(&v5)) << endl;
-
- int *n2;
- n2 = d1.take(&v4);
- cout << "d1 take 4: " << *n2 << endl;
-
- d1.remove(&v2);
- //cout << "d1 remove 2: " << d1 << endl;
- cout << "d1 find 2: " << d1.find(&v2) << endl;
-
- cout << "d0 is empty: " << d0.isEmpty() << endl;
- cout << "d1 is empty: " << d1.isEmpty() << endl;
-
- cout << "d1 count: " << d1.count() << endl;
-
- d2 = d1;
- //cout << "d2 = d1: " << d2 << endl;
-
- d1.clear();
- //cout << "d1 clear: " << d1 << endl;
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qrect-test.chk b/WebCore/kwq/tests/qt/qrect-test.chk
deleted file mode 100644
index b73a306..0000000
--- a/WebCore/kwq/tests/qt/qrect-test.chk
+++ /dev/null
@@ -1,57 +0,0 @@
-r1: QRect: [left: 0; top: 0; right: 99; bottom: 99]
-r2: QRect: [left: 100; top: 100; right: 299; bottom: 299]
-r3 = r1.unite(r2): QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r4 = r3: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r5 = r3: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r6: QRect: [left: 100; top: 100; right: 99; bottom: 99]
-r5 setLeft(10): QRect: [left: 10; top: 0; right: 299; bottom: 299]
-r5 setTop(10): QRect: [left: 10; top: 10; right: 299; bottom: 299]
-r5 setRight(20): QRect: [left: 10; top: 10; right: 20; bottom: 299]
-r5 setBottom(20): QRect: [left: 10; top: 10; right: 20; bottom: 20]
-r5 left: 10
-r5 top: 10
-r5 right: 20
-r5 bottom: 20
-r5 width: 11
-r5 height: 11
-r5 size: QSize: [w: 11; h: 11]
-r0 isNull: 0
-r1 isNull: 0
-r6 isNull: 1
-r0 isValid: 1
-r1 isValid: 1
-r6 isValid: 0
-r0 isEmpty: 0
-r1 isEmpty: 0
-r6 isEmpty: 1
-r6 normalize: QRect: [left: 99; top: 99; right: 100; bottom: 100]
-r5 setX(10): QRect: [left: 5; top: 10; right: 20; bottom: 20]
-r5 setY(10): QRect: [left: 5; top: 5; right: 20; bottom: 20]
-r5 topLeft: QPoint: [x: 5; h: 5]
-r5 bottomRight: QPoint: [x: 20; h: 20]
-r5 topRight: QPoint: [x: 20; h: 5]
-r5 bottomLeft: QPoint: [x: 5; h: 20]
-r5 center: QPoint: [x: 12; h: 12]
-r5 rect: x=5 y=5 w=16 h=16
-r5 coords: xp1=5 yp1=5 xp2=20 yp2=20
-r5 setSize 12,12: QRect: [left: 5; top: 5; right: 16; bottom: 16]
-r5 setRect 4,4,18,18: QRect: [left: 4; top: 4; right: 21; bottom: 21]
-r5 setCoords 5,5,20,20: QRect: [left: 5; top: 5; right: 20; bottom: 20]
-r5 moveTopLeft 4,4: QRect: [left: 4; top: 4; right: 19; bottom: 19]
-r5 moveBottomRight 22,22: QRect: [left: 7; top: 7; right: 22; bottom: 22]
-r5 moveTopRight 22,4: QRect: [left: 7; top: 4; right: 22; bottom: 19]
-r5 moveCenter 15,10: QRect: [left: 8; top: 3; right: 23; bottom: 18]
-r5 moveBy 5,5: QRect: [left: 13; top: 8; right: 28; bottom: 23]
-r5 contains 15,10: 1
-r5 contains 30,20: 0
-r5 contains 15,10: 1
-r5 contains 30,20: 0
-r5 contains 14,9,5,5: 1
-r5 contains 14,9,20,20: 0
-r5 & (14,9,5,5): QRect: [left: 14; top: 9; right: 18; bottom: 13]
-r1 |= r2: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r5 &= (14,9,5,5): QRect: [left: 14; top: 9; right: 18; bottom: 13]
-r1 == r4: 1
-r3 == r4: 1
-r1 != r4: 0
-r3 != r4: 0
diff --git a/WebCore/kwq/tests/qt/qrect-test.cpp b/WebCore/kwq/tests/qt/qrect-test.cpp
deleted file mode 100644
index ebb8b96..0000000
--- a/WebCore/kwq/tests/qt/qrect-test.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qrect.h>
-
-int main() {
-
- QRect r0;
- QRect r1 = QRect(0,0,100,100);
- QRect r2 = QRect(100,100,200,200);
- QRect r3 = r1.unite(r2);
- QRect r4 = r3;
- QRect r5 = r3;
- QRect r6 = QRect(100,100,0,0); //purposely an invalid rect
- QRect r7;
- int x,y,w,h, xp1, xp2, yp1, yp2;
-
- cout << "r1: " << r1 << endl;
- cout << "r2: " << r2 << endl;
- cout << "r3 = r1.unite(r2): " << r3 << endl;
- cout << "r4 = r3: " << r4 << endl;
- cout << "r5 = r3: " << r5 << endl;
- cout << "r6: " << r6 << endl;
-
- r5.setLeft(10);
- cout << "r5 setLeft(10): " << r5 << endl;
- r5.setTop(10);
- cout << "r5 setTop(10): " << r5 << endl;
- r5.setRight(20);
- cout << "r5 setRight(20): " << r5 << endl;
- r5.setBottom(20);
- cout << "r5 setBottom(20): " << r5 << endl;
-
- cout << "r5 left: " << r5.left() << endl;
- cout << "r5 top: " << r5.top() << endl;
- cout << "r5 right: " << r5.right() << endl;
- cout << "r5 bottom: " << r5.bottom() << endl;
- cout << "r5 width: " << r5.width() << endl;
- cout << "r5 height: " << r5.height() << endl;
- cout << "r5 size: " << r5.size() << endl;
-
- cout << "r0 isNull: " << r0.isNull() << endl;
- cout << "r1 isNull: " << r1.isNull() << endl;
- cout << "r6 isNull: " << r6.isNull() << endl;
- cout << "r0 isValid: " << r0.isValid() << endl;
- cout << "r1 isValid: " << r1.isValid() << endl;
- cout << "r6 isValid: " << r6.isValid() << endl;
- cout << "r0 isEmpty: " << r0.isEmpty() << endl;
- cout << "r1 isEmpty: " << r1.isEmpty() << endl;
- cout << "r6 isEmpty: " << r6.isEmpty() << endl;
-
- cout << "r6 normalize: " << r6.normalize() << endl;
-
- r5.setX(5);
- cout << "r5 setX(10): " << r5 << endl;
- r5.setY(5);
- cout << "r5 setY(10): " << r5 << endl;
-
- cout << "r5 topLeft: " << r5.topLeft() << endl;
- cout << "r5 bottomRight: " << r5.bottomRight() << endl;
- cout << "r5 topRight: " << r5.topRight() << endl;
- cout << "r5 bottomLeft: " << r5.bottomLeft() << endl;
- cout << "r5 center: " << r5.center() << endl;
- r5.rect(&x,&y,&w,&h);
- cout << "r5 rect: " << "x=" << x << " y=" << y << " w=" << w << " h=" << h << endl;
- r5.coords(&xp1,&yp1,&xp2,&yp2);
- cout << "r5 coords: " << "xp1=" << xp1 << " yp1=" << yp1 << " xp2=" << xp2 << " yp2=" << yp2 << endl;
-
- r5.setSize(QSize(12, 12));
- cout << "r5 setSize 12,12: " << r5 << endl;
- r5.setRect(4,4,18,18);
- cout << "r5 setRect 4,4,18,18: " << r5 << endl;
- r5.setCoords(5,5,20,20);
- cout << "r5 setCoords 5,5,20,20: " << r5 << endl;
-
- r5.moveTopLeft(QPoint(4,4));
- cout << "r5 moveTopLeft 4,4: " << r5 << endl;
- r5.moveBottomRight(QPoint(22,22));
- cout << "r5 moveBottomRight 22,22: " << r5 << endl;
- r5.moveTopRight(QPoint(22,4));
- cout << "r5 moveTopRight 22,4: " << r5 << endl;
- r5.moveCenter(QPoint(15,10));
- cout << "r5 moveCenter 15,10: " << r5 << endl;
- r5.moveBy(5,5);
- cout << "r5 moveBy 5,5: " << r5 << endl;
-
- cout << "r5 contains 15,10: " << r5.contains(15,10) << endl;
- cout << "r5 contains 30,20: " << r5.contains(30,20) << endl;
- cout << "r5 contains 15,10: " << r5.contains(QPoint(15,10)) << endl;
- cout << "r5 contains 30,20: " << r5.contains(QPoint(30,20)) << endl;
- cout << "r5 contains 14,9,5,5: " << r5.contains(QRect(14,9,5,5)) << endl;
- cout << "r5 contains 14,9,20,20: " << r5.contains(QRect(14,9,20,20)) << endl;
-
- cout << "r5 & (14,9,5,5): " << (QRect(14,9,5,5)) << endl;
- cout << "r1 |= r2: " << (r1|=r2) << endl;
- cout << "r5 &= (14,9,5,5): " << (r5 & QRect(14,9,5,5)) << endl;
- cout << "r1 == r4: "<< (r1 == r4) << endl;
- cout << "r3 == r4: "<< (r3 == r4) << endl;
- cout << "r1 != r4: "<< (r1 != r4) << endl;
- cout << "r3 != r4: "<< (r3 != r4) << endl;
-
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qregexp-test.chk b/WebCore/kwq/tests/qt/qregexp-test.chk
deleted file mode 100644
index 00bf9ed..0000000
--- a/WebCore/kwq/tests/qt/qregexp-test.chk
+++ /dev/null
@@ -1,8 +0,0 @@
-abcdefghijklmnopqrstuvwxyz =~ ^ab: 0
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ ^ab: -1
-abcdefghijklmnopqrstuvwxyz =~ def: 3
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ def: -1
-abcdefghijklmnopqrstuvwxyz =~ [A-Z]: -1
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ [A-Z]: 0
-AAABBBCCC =~ [A-Z]: 0
-AAABBBCCC =~ B+C: 3
diff --git a/WebCore/kwq/tests/qt/qregexp-test.cpp b/WebCore/kwq/tests/qt/qregexp-test.cpp
deleted file mode 100644
index b03c492..0000000
--- a/WebCore/kwq/tests/qt/qregexp-test.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qregexp.h>
-
-int main() {
-
- QString s1 = "abcdefghijklmnopqrstuvwxyz";
- QString s2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- QString s3 = "AAABBBCCC";
-
- QRegExp r1 = QRegExp("^ab");
- QRegExp r2 = QRegExp("def");
- QRegExp r3 = QRegExp("[A-Z]");
- QRegExp r4 = QRegExp("B+C");
-
- cout << s1 << " =~ " << r1.pattern() << ": "
- << r1.match(s1) << endl;
-
- cout << s2 << " =~ " << r1.pattern() << ": "
- << r1.match(s2) << endl;
-
- cout << s1 << " =~ " << r2.pattern() << ": "
- << r2.match(s1) << endl;
-
- cout << s2 << " =~ " << r2.pattern() << ": "
- << r2.match(s2) << endl;
-
- cout << s1 << " =~ " << r3.pattern() << ": "
- << r3.match(s1) << endl;
-
- cout << s2 << " =~ " << r3.pattern() << ": "
- << r3.match(s2) << endl;
-
- cout << s3 << " =~ " << r3.pattern() << ": "
- << r3.match(s3) << endl;
-
- cout << s3 << " =~ " << r4.pattern() << ": "
- << r4.match(s3) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qsize-test.chk b/WebCore/kwq/tests/qt/qsize-test.chk
deleted file mode 100644
index 893dfe3..0000000
--- a/WebCore/kwq/tests/qt/qsize-test.chk
+++ /dev/null
@@ -1,39 +0,0 @@
-s1: QSize: [w: 1; h: 1]
-s2: QSize: [w: 3; h: 3]
-s3 = s1+s2: QSize: [w: 4; h: 4]
-s4 = s3: QSize: [w: 4; h: 4]
-s5 = s3: QSize: [w: 4; h: 4]
-s6: QSize: [w: 0; h: 0]
-s7: QSize: [w: 20; h: 20]
-s5 setWidth(10): QSize: [w: 10; h: 4]
-s5 setHeight(10): QSize: [w: 10; h: 10]
-s5 += s1: QSize: [w: 11; h: 11]
-s5 -= s2: QSize: [w: 8; h: 8]
-s5 *= 3: QSize: [w: 24; h: 24]
-s5 /= 2: QSize: [w: 12; h: 12]
-s7 *= 3.33: QSize: [w: 66; h: 66]
-s7 /= 3.33: QSize: [w: 19; h: 19]
-s5 width: 12
-s5 height: 12
-s5 expandedTo 10,15: QSize: [w: 12; h: 15]
-s5 boundedTo 10,15: QSize: [w: 10; h: 15]
-s5 transpose: QSize: [w: 15; h: 10]
-s0 isNull: 0
-s1 isNull: 0
-s6 isNull: 1
-s0 isValid: 0
-s1 isValid: 1
-s6 isValid: 1
-s0 isEmpty: 1
-s1 isEmpty: 0
-s6 isEmpty: 1
-s1 == s4: 0
-s3 == s4: 1
-s1 != s4: 1
-s3 != s4: 0
-s3 * 3.33: QSize: [w: 13; h: 13]
-3.33 * s3: QSize: [w: 13; h: 13]
-2 * s4: QSize: [w: 8; h: 8]
-s4 * 2: QSize: [w: 8; h: 8]
-s4 / 2: QSize: [w: 2; h: 2]
-s4 / 2.22: QSize: [w: 1; h: 1]
diff --git a/WebCore/kwq/tests/qt/qsize-test.cpp b/WebCore/kwq/tests/qt/qsize-test.cpp
deleted file mode 100644
index f11c1d7..0000000
--- a/WebCore/kwq/tests/qt/qsize-test.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qsize.h>
-
-int main() {
-
- QSize s0;
- QSize s1 = QSize(1,1);
- QSize s2 = QSize(3,3);
- QSize s3 = s1 + s2;
- QSize s4 = s3;
- QSize s5 = s3;
- QSize s6 = QSize(0,0);
- QSize s7 = QSize(20,20);
-
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3 = s1+s2: " << s3 << endl;
- cout << "s4 = s3: " << s4 << endl;
- cout << "s5 = s3: " << s5 << endl;
- cout << "s6: " << s6 << endl;
- cout << "s7: " << s7 << endl;
-
- s5.setWidth(10);
- cout << "s5 setWidth(10): " << s5 << endl;
- s5.setHeight(10);
- cout << "s5 setHeight(10): " << s5 << endl;
- s5 += s1;
- cout << "s5 += s1: " << s5 << endl;
- s5 -= s2;
- cout << "s5 -= s2: " << s5 << endl;
- s5 *= 3;
- cout << "s5 *= 3: " << s5 << endl;
- s5 /= 2;
- cout << "s5 /= 2: " << s5 << endl;
- s7 *= 3.33;
- cout << "s7 *= 3.33: " << s7 << endl;
- s7 /= 3.33;
- cout << "s7 /= 3.33: " << s7 << endl;
-
- cout << "s5 width: " << s5.width() << endl;
- cout << "s5 height: " << s5.height() << endl;
-
- s5 = s5.expandedTo(QSize(10,15));
- cout << "s5 expandedTo 10,15: " << s5 << endl;
-
- s5 = s5.boundedTo(QSize(10,15));
- cout << "s5 boundedTo 10,15: " << s5 << endl;
-
- s5.transpose();
- cout << "s5 transpose: " << s5 << endl;
-
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s1 isNull: " << s1.isNull() << endl;
- cout << "s6 isNull: " << s6.isNull() << endl;
- cout << "s0 isValid: " << s0.isValid() << endl;
- cout << "s1 isValid: " << s1.isValid() << endl;
- cout << "s6 isValid: " << s6.isValid() << endl;
- cout << "s0 isEmpty: " << s0.isEmpty() << endl;
- cout << "s1 isEmpty: " << s1.isEmpty() << endl;
- cout << "s6 isEmpty: " << s6.isEmpty() << endl;
- cout << "s1 == s4: " << (s1 == s4) << endl;
- cout << "s3 == s4: " << (s3 == s4) << endl;
- cout << "s1 != s4: " << (s1 != s4) << endl;
- cout << "s3 != s4: " << (s3 != s4) << endl;
-
- cout << "s3 * 3.33: " << (s3 * 3.33) << endl;
- cout << "3.33 * s3: " << (3.33 * s3) << endl;
- cout << "2 * s4: " << (2 * s4) << endl;
- cout << "s4 * 2: " << (s4 * 2) << endl;
- cout << "s4 / 2: " << (s4 / 2) << endl;
- cout << "s4 / 2.22: " << (s4 / 2.22) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qsortedlist-test.chk b/WebCore/kwq/tests/qt/qsortedlist-test.chk
deleted file mode 100644
index 8e295ed..0000000
--- a/WebCore/kwq/tests/qt/qsortedlist-test.chk
+++ /dev/null
@@ -1,30 +0,0 @@
-p0: QList: [size: 0; items: ]
-p1: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 1
-p1 isEmpty: 0
-p0 count: 0
-p1 count: 7
-p1 find index of 2: 2
-p1 removeFirst: QList: [size: 6; items: 1, 2, 3, 4, 5, 6]
-p1 removeLast: QList: [size: 5; items: 1, 2, 3, 4, 5]
-p1 take: 5 QList: [size: 4; items: 1, 2, 3, 4]
-p1 containsRef 3: 1
-p1 containsRef 0: 0
-p2 unsorted: QList: [size: 7; items: 6, 5, 4, 3, 2, 1, 0]
-p2 sorted: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p1 at 2: 3
-p1 insert 7 in 1: QList: [size: 8; items: 1, 7, 8, 9, 10, 2, 3, 4]
-p1 remove: QList: [size: 7; items: 1, 7, 8, 9, 2, 3, 4]
-p1 remove 7: QList: [size: 6; items: 1, 8, 9, 2, 3, 4]
-p1 removeRef 8: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p2 getLast: 6
-p2 current: 6
-p2 first: 0
-p2 last: 6
-p2 prev: 5
-p2 next: 6
-p2 prepend 9: QList: [size: 8; items: 9, 0, 1, 2, 3, 4, 5, 6]
-p1: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p1 clear (autoDelete off): QList: [size: 0; items: ]
-p1 clear (autoDelete on): QList: [size: 0; items: ]
-p3 = p2: QList: [size: 8; items: 9, 0, 1, 2, 3, 4, 5, 6]
diff --git a/WebCore/kwq/tests/qt/qsortedlist-test.cpp b/WebCore/kwq/tests/qt/qsortedlist-test.cpp
deleted file mode 100644
index 67a77ed..0000000
--- a/WebCore/kwq/tests/qt/qsortedlist-test.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-#include <iostream>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <qsortedlist.h>
-
-int main() {
-
- QSortedList<int> p0;
- QSortedList<int> p1;
- QSortedList<int> p2;
- QSortedList<int> p3;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int p = 7;
- int q = 8;
- int r = 9;
- int s = 10;
-
- p1.append(&i);
- p1.append(&j);
- p1.append(&k);
- p1.append(&l);
- p1.append(&m);
- p1.append(&n);
- p1.append(&o);
-
- cout << "p0: " << p0 << endl;
- cout << "p1: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- cout << "p1 isEmpty: " << p1.isEmpty() << endl;
-
- cout << "p0 count: " << p0.count() << endl;
- cout << "p1 count: " << p1.count() << endl;
-
- cout << "p1 find index of 2: " << p1.find(&k) << endl;
-
- p1.removeFirst();
- cout << "p1 removeFirst: " << p1 << endl;
-
- p1.removeLast();
- cout << "p1 removeLast: " << p1 << endl;
-
- cout << "p1 take: " << *(p1.take()) << " " << p1 << endl;
-
- cout << "p1 containsRef 3: " << p1.containsRef(&l) << endl;
- cout << "p1 containsRef 0: " << p1.containsRef(&i) << endl;
-
- p2.append(&o);
- p2.append(&n);
- p2.append(&m);
- p2.append(&l);
- p2.append(&k);
- p2.append(&j);
- p2.append(&i);
- cout << "p2 unsorted: " << p2 << endl;
- p2.sort();
- cout << "p2 sorted: " << p2 << endl; //heh?
-
- int *n1;
- n1 = p1.at(2);
- cout << "p1 at 2: "<< *n1 << endl;
-
- p1.insert(1, &p);
- p1.insert(2, &q);
- p1.insert(3, &r);
- p1.insert(4, &s);
- cout << "p1 insert 7 in 1: " << p1 << endl;
-
- p1.remove();
- cout << "p1 remove: " << p1 << endl;
-
- p1.remove(&p);
- cout << "p1 remove 7: " << p1 << endl;
-
- p1.removeRef(&q);
- cout << "p1 removeRef 8: " << p1 << endl;
-
- int *n2;
- n2 = p2.getLast();
- cout << "p2 getLast: "<< *n2 << endl;
- n2 = p2.current();
- cout << "p2 current: "<< *n2 << endl;
- n2 = p2.first();
- cout << "p2 first: "<< *n2 << endl;
- n2 = p2.last();
- cout << "p2 last: "<< *n2 << endl;
- n2 = p2.prev();
- cout << "p2 prev: "<< *n2 << endl;
- n2 = p2.next();
- cout << "p2 next: "<< *n2 << endl;
-
- p2.prepend(&r);
- cout << "p2 prepend 9: "<< p2 << endl;
-
- cout << "p1: "<< p1 << endl;
- p1.setAutoDelete(FALSE);
- p1.clear();
- cout << "p1 clear (autoDelete off): "<< p1 << endl; // heh?
- p1.setAutoDelete(TRUE);
- p1.clear();
- cout << "p1 clear (autoDelete on): "<< p1 << endl;
-
- p3 = p2;
- cout << "p3 = p2: "<< p3 << endl;
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qstack-test.chk b/WebCore/kwq/tests/qt/qstack-test.chk
deleted file mode 100644
index dd0bbc1..0000000
--- a/WebCore/kwq/tests/qt/qstack-test.chk
+++ /dev/null
@@ -1,13 +0,0 @@
-s0: QStack: [size: 0; items: ]
-s0 push: QStack: [size: 5; items: 4, 3, 2, 1, 0]
-s1 = s0: QStack: [size: 5; items: 4, 3, 2, 1, 0]
-s1 count: 5
-s1 pop: 4
-s1 pop: 3
-s1 pop: 2
-s1 pop: 1
-s1 pop: 0
-s1: QStack: [size: 0; items: ]
-s0 isEmpty: 0
-s1 isEmpty: 1
-s0 clear: QStack: [size: 0; items: ]
diff --git a/WebCore/kwq/tests/qt/qstack-test.cpp b/WebCore/kwq/tests/qt/qstack-test.cpp
deleted file mode 100644
index c200770..0000000
--- a/WebCore/kwq/tests/qt/qstack-test.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstack.h>
-
-int main() {
-
- QStack<int> s0;
- QStack<int> s1 = QStack<int>();
- QStack<int> s2;
-
- int i0 = 0;
- int i1 = 1;
- int i2 = 2;
- int i3 = 3;
- int i4 = 4;
-
- cout << "s0: " << s0 << endl;
-
- s0.push(&i0);
- s0.push(&i1);
- s0.push(&i2);
- s0.push(&i3);
- s0.push(&i4);
- cout << "s0 push: " << s0 << endl;
-
- s1 = s0;
- cout << "s1 = s0: " << s1 << endl;
- cout << "s1 count: " << s1.count() << endl;
-
- int count = s1.count();
- for (int i = 0; i < count; i++) {
- cout << "s1 pop: "<< *(s1.pop()) << endl;
- }
- cout << "s1: " << s1 << endl;
-
- cout << "s0 isEmpty: " << s0.isEmpty() << endl;
- cout << "s1 isEmpty: " << s1.isEmpty() << endl;
-
- s0.clear(); // not needed for KWQ?
- cout << "s0 clear: "<< s0 << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qstring-test.chk b/WebCore/kwq/tests/qt/qstring-test.chk
deleted file mode 100644
index 8132fbe..0000000
--- a/WebCore/kwq/tests/qt/qstring-test.chk
+++ /dev/null
@@ -1,101 +0,0 @@
-s1: t
-s2: t
-s3: eeeee
-s4: test
-s5: this is a string
-s6: test
-s7: yet another string
-s8: hello there
-s9: e
-s0 isNull: 1
-s5 isNull: 0
-s11 isEmpty: 1
-s5 isEmpty: 0
-s7 length: 18
-s5 truncate 8: this is
-s0 fill: ccccc
-s12: string
-s7 find RegExp "t": 2
-s7 find s12: 12
-s7 find "string": 12
-s7 find "string": 12
-s7 findRev "t": 13
-s7 findRev "string": 12
-s13: blah blah blah
-s13 contains "b": 3
-s13 contains "blah": 3
-s13 left 4: blah
-s13 right 4: blah
-s13 mid 5-8: blah
-s15: Hello blah. How has your blah been?
-s15: Hello blah. How has your blah been?
-s15: Hello Gramps. How has your morning been?
-s15: Hello 22.45. How has your 22.45 been?
-s15: Hello 356. How has your 23390082 been?
-s15: Hello 3456. How has your 234234224 been?
-s15: Hello 23409283. How has your 43242 been?
-s16 lower: this was a string in uppercase
-s18 stripWhiteSpace: This was a string with a lot of spaces
-s18 simplifyWhiteSpace: This was a string with a lot of spaces
-s19: 221545
-s19: 221545
-s19: 221545
-s19: 221545
-221545
-24937
-221545
-24937
-s20: This is a test. 44, 56.780000
-s21: Apple Computer Inc.
-s22: Apple
-s23: MS
-s21 startsWith s22: 1
-s21 startsWith s23: 0
-s24: The answer is:
-c2: 2
-s24 insert c2 at 15: The answer is: 2
-s24 append c2: The answer is: 22
-s24 append s22: The answer is: 22Apple
-s24 prepend c2: 2The answer is: 22Apple
-s24 prepend s22: Apple2The answer is: 22Apple
-s24 remove 0-7: he answer is: 22Apple
-he answer is: 2Apple2Apple
-he answer is: 2cApple2Apple
-s25 replace RegExp "a" with "e": There ere e lot of e's in e sentence such es this one
-s27: 22.45
-s27: 356
-s27: 356
-s27: 23390082
-s27: 3456
-s27: 234234224
-s27: 23409283
-s27: 43242
-s27: 223.234
-s28 !: 1
-s29 !: 0
-s30: abcde
-c3: f
-ch2: g
-s31: hijk
-s30 += c3: abcdef
-s30 += ch2: abcdefg
-s30 += s31: abcdefghijk
-s33: This is a string
-s34: This is a longer string
-ch3: This is an even longer string
-c4: T
-s33 == ch3: 0
-c3 == s33: 0
-s33 == s34: 0
-s33 == c4: 0
-s33 != ch3: 1
-c3 != s33: 1
-s33 != s34: 1
-s33 != c4: 1
-ch3 + s33: This is an even longer stringThis is a string
-c4 + s33: TThis is a string
-'a' + s33: aThis is a string
-0
-1
-0
-1
diff --git a/WebCore/kwq/tests/qt/qstring-test.cpp b/WebCore/kwq/tests/qt/qstring-test.cpp
deleted file mode 100644
index 98e264a..0000000
--- a/WebCore/kwq/tests/qt/qstring-test.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-#include <qstring.h>
-#include <qregexp.h>
-
-int main() {
-
- QChar c[4];
- QByteArray ba = QByteArray(5);
- ba.fill('e', -1);
- QCString qcs = QCString("hello there");
- //char ch='a';
-
- c[0] = QChar('t');
- c[1] = QChar('e');
- c[2] = QChar('s');
- c[3] = QChar('t');
-
- QString s0 = QString();
- QString s1 = QString(c[0]);
- QString s2 = QString(s1);
- QString s3 = QString(ba);
- QString s4 = QString(c, 4);
- QString s5 = QString("this is a string");
- QString s6 = s4;
- QString s7 = "yet another string";
- QString s8 = qcs;
- QString s9 = c[1];
- //QString s10 = ch;
-
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3: " << s3 << endl;
- cout << "s4: " << s4 << endl;
- cout << "s5: " << s5 << endl;
- cout << "s6: " << s6 << endl;
- cout << "s7: " << s7 << endl;
- cout << "s8: " << s8 << endl;
- cout << "s9: " << s9 << endl;
- //cout << "s10: " << s10 << endl;
-
- QString s11 = QString(""); // make an empty string
-
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s5 isNull: " << s5.isNull() << endl;
- cout << "s11 isEmpty: " << s11.isEmpty() << endl;
- cout << "s5 isEmpty: " << s5.isEmpty() << endl;
- cout << "s7 length: " << s7.length() << endl;
-
- s5.truncate(8);
- cout << "s5 truncate 8: " << s5 << endl;
-
- s0.fill('c', 5);
- cout << "s0 fill: " << s0 << endl;
-
- QRegExp qre = QRegExp(s1, TRUE, FALSE);
- QString s12 = QString("string");
- cout << "s12: " << s12 << endl;
- //cout << "s7 find \"s\": " << s7.find('s', 0, FALSE) << endl; // find functions
- cout << "s7 find RegExp \"t\": " << s7.find(qre, 0) << endl;
- cout << "s7 find s12: " << s7.find(s12, 0, TRUE) << endl;
- cout << "s7 find \"string\": " << s7.find("string", 0) << endl;
- cout << "s7 find \"string\": " << s7.find("string", 0, TRUE) << endl;
- cout << "s7 findRev \"t\": " << s7.findRev('t', s7.length()) << endl;
- cout << "s7 findRev \"string\": " << s7.findRev("string", s7.length()) << endl;
- //cout << s7.findRev(qre, 10) << endl;
- //cout << s7.findRev(s12, -1, TRUE) << endl;
- //cout << s7.findRev('t', 10, TRUE) << endl;
-
- QString s13 = QString("blah blah blah");
- cout << "s13: " << s13 << endl;
- cout << "s13 contains \"b\": " << s13.contains('b') << endl;
- cout << "s13 contains \"blah\": " << s13.contains("blah", TRUE) << endl;
- //cout << s7.contains(c[0], TRUE) << endl;
- //cout << s7.contains(qre) << endl;
- //cout << s13.contains('b', TRUE) << endl;
-
- cout << "s13 left 4: " << s13.left(4) << endl;
- cout << "s13 right 4: " << s13.right(4) << endl;
- cout << "s13 mid 5-8: " << s13.mid(5,4) << endl;
-
-
- double my_double =22.45;
- int my_int = 356;
- long my_long = 23390082;
- short my_short = 3456;
- uint my_unit = 234234224;
- ulong my_ulong = 23409283;
- ushort my_ushort = 43242;
- float my_float = 223.2342;
- QString s14 = QString("blah");
- QString s15 = "Hello %1. How has your %2 been?";
- cout << "s15: " << s15.arg(s14).arg(s14) << endl;
- cout << "s15: " << s15.arg(s14, 5).arg(s14, 5) << endl; // fieldwidth only add one extra space. hmmmm.
- cout << "s15: " << s15.arg("Gramps").arg("morning") << endl;
- cout << "s15: " << s15.arg(my_double).arg(my_double) << endl;
- cout << "s15: " << s15.arg(my_int).arg(my_long) << endl;
- cout << "s15: " << s15.arg(my_short).arg(my_unit) << endl;
- cout << "s15: " << s15.arg(my_ulong).arg(my_ushort) << endl;
- //cout << "s15: " << s15.arg(c[2]).arg(c[2]) << endl;
-
- QString s16 = "THIS WAS A STRING IN UPPERCASE";
- QString s17 = "this was a string in lowercase";
- cout << "s16 lower: " << s16.lower() << endl;
- //cout << "s17 upper: " << s17.upper() << endl;
-
- QString s18 =" This was a string with a lot of spaces ";
- cout << "s18 stripWhiteSpace: " << s18.stripWhiteSpace() << endl;
- cout << "s18 simplifyWhiteSpace: " << s18.simplifyWhiteSpace() << endl;
-
- QString s19 = "221545";
- cout << "s19: " << s19.toFloat() << endl;
- cout << "s19: " << s19.toInt() << endl;
- cout << "s19: " << s19.toLong() << endl;
- cout << "s19: " << s19.toUInt() << endl;
- cout << s19.toDouble() << endl; //Am I properly testing this?
- cout << s19.toShort() << endl;
- cout << s19.toULong() << endl;
- cout << s19.toUShort() << endl;
-
- QString s20;
- cout << "s20: " << s20.sprintf("This is a %s. %d, %f", "test", 44, 56.78) << endl;
-
- QString s21 = "Apple Computer Inc.";
- QString s22 = "Apple";
- QString s23 = "MS";
- cout << "s21: " << s21 << endl;
- cout << "s22: " << s22 << endl;
- cout << "s23: " << s23 << endl;
- cout << "s21 startsWith s22: " << s21.startsWith(s22) << endl;
- cout << "s21 startsWith s23: " << s21.startsWith(s23) << endl;
-
- QString s24 = "The answer is: ";
- QChar c2 = '2';
- cout << "s24: " << s24 << endl;
- cout << "c2: " << c2 << endl;
- cout << "s24 insert c2 at 15: " << s24.insert(15, c2) << endl;
- cout << "s24 append c2: " << s24.append(c2) << endl;
- cout << "s24 append s22: " << s24.append(s22) << endl;
- cout << "s24 prepend c2: " << s24.prepend(c2) << endl;
- cout << "s24 prepend s22: " << s24.prepend(s22) << endl;
- cout << "s24 remove 0-7: " << s24.remove(0, 7) << endl;
- //cout << s24.insert(15, c, 4) << endl;
- cout << s24.insert(15, s22) << endl;
- cout << s24.insert(15, 'c') << endl;
- //cout << s24.append('c') << endl;
- //cout << s24.prepend('c') << endl;
-
- QString s25 = "There are a lot of a's in a sentence such as this one";
- cout << "s25 replace RegExp \"a\" with \"e\": " << s25.replace( QRegExp("a"), "e" ) << endl;
- //cout << s25.replace(1, 4, c, 4) << endl;
-
-
- QString s27;
- cout << "s27: " << s27.setNum(my_double) << endl;
- cout << "s27: " << s27.setNum(my_int) << endl;
- cout << "s27: " << s27.setNum(my_int) << endl;
- cout << "s27: " << s27.setNum(my_long) << endl;
- cout << "s27: " << s27.setNum(my_short) << endl;
- cout << "s27: " << s27.setNum(my_unit) << endl;
- cout << "s27: " << s27.setNum(my_ulong) << endl;
- cout << "s27: " << s27.setNum(my_ushort) << endl;
- cout << "s27: " << s27.setNum(my_float) << endl;
-
- QString s28;
- QString s29 = "a string that is a little long";
- cout << "s28 !: " << !s28 << endl;
- cout << "s29 !: " << !s29 << endl;
-
- QString s30 = "abcde";
- QChar c3='f';
- char ch2='g';
- QString s31 = "hijk";
- cout << "s30: " << s30 << endl;
- cout << "c3: " << c3 << endl;
- cout << "ch2: " << ch2 << endl;
- cout << "s31: " << s31 << endl;
- cout << "s30 += c3: " << (s30 += c3) << endl;
- cout << "s30 += ch2: " << (s30 += ch2) << endl;
- cout << "s30 += s31: " << (s30 += s31) << endl;
-
-
- // test operators
-
- QString s33 = "This is a string";
- QString s34 = "This is a longer string";
- char ch3[30];
- strcpy(ch3, "This is an even longer string");
- QChar c4 ='T';
- cout << "s33: " << s33 << endl;
- cout << "s34: " << s34 << endl;
- cout << "ch3: " << ch3 << endl;
- cout << "c4: " << c4 << endl;
- cout << "s33 == ch3: " << (s33 == ch3) << endl; // I should test strings that are equal as well
- cout << "c3 == s33: "<< (c4 == s33) << endl;
- cout << "s33 == s34: "<< (s33 == s34) << endl;
- cout << "s33 == c4: "<< (s33 == c4) << endl;
- cout << "s33 != ch3: " << (s33 != ch3) << endl;
- cout << "c3 != s33: "<< (c4 != s33) << endl;
- cout << "s33 != s34: "<< (s33 != s34) << endl;
- cout << "s33 != c4: "<< (s33 != c4) << endl;
- cout << "ch3 + s33: " << (ch3 + s33) << endl;
- cout << "c4 + s33: " << (c4 + s33) << endl;
- cout << "\'a\' + s33: " << ('a' + s33) << endl;
-
- //cout << (s33 < c4) << endl;
- //cout << (c4 < s33) << endl;
- cout << (s33 < s34) << endl;
- //cout << (s33 > c4) << endl;
- //cout << (c4 > s33) << endl;
- cout << (s33 > s34) << endl;
- //cout << (s33 <= c4) << endl;
- //cout << (c4 <= s33) << endl;
- cout << (s33 <= s34) << endl;
- //cout << (s33 >= c4) << endl;
- //cout << (c4 >= s33) << endl;
- cout << (s33 >= s34) << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qstringlist-test.chk b/WebCore/kwq/tests/qt/qstringlist-test.chk
deleted file mode 100644
index aea2e7c..0000000
--- a/WebCore/kwq/tests/qt/qstringlist-test.chk
+++ /dev/null
@@ -1,5 +0,0 @@
-QValueList: [size: 6; items: zero, one, two, three, four, five]
-three
-QValueList: [size: 8; items: zero, one, two, three, four, five, six, seven]
-three, four, five, six, seven
-QValueList: [size: 8; items: five, four, one, seven, six, three, two, zero]
diff --git a/WebCore/kwq/tests/qt/qstringlist-test.cpp b/WebCore/kwq/tests/qt/qstringlist-test.cpp
deleted file mode 100644
index c234072..0000000
--- a/WebCore/kwq/tests/qt/qstringlist-test.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qstringlist.h>
-
-int main() {
-
- QStringList p0;
-
- p0.append("zero");
- p0.append("one");
- p0.append("two");
- p0.append("three");
- p0.append("four");
- p0.append("five");
-
- cout << p0 << endl;
- cout << p0[3] << endl;
- p0 += "six";
- p0 += "seven";
- cout << p0 << endl;
-
- QValueListIterator<QString> it = p0.find("three");
- while (it != p0.end()) {
- cout << *it;
- if (++it != p0.end()) {
- cout << ", ";
- }
- }
- cout << endl;
-
- p0.sort();
- cout << p0 << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qtime-test.chk b/WebCore/kwq/tests/qt/qtime-test.chk
deleted file mode 100644
index 8d0a9c2..0000000
--- a/WebCore/kwq/tests/qt/qtime-test.chk
+++ /dev/null
@@ -1,11 +0,0 @@
-d1: QTime: [hh:mm:ss:ms = 23:59:0:0]
-d2: QTime: [hh:mm:ss:ms = 1:8:0:0]
-d0 isNull: 1
-d1 isNull: 0
-d0 = d1: QTime: [hh:mm:ss:ms = 23:59:0:0]
-d1 msec: 0
-d2 msec: 0
-d2 hour: 1
-d2 minute: 8
-d2 second: 0
-d2 secsTo d1: 82260
diff --git a/WebCore/kwq/tests/qt/qtime-test.cpp b/WebCore/kwq/tests/qt/qtime-test.cpp
deleted file mode 100644
index ef22ac3..0000000
--- a/WebCore/kwq/tests/qt/qtime-test.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QTime d0;
- QTime d1(23, 59);
- QTime d2(1, 8);
- QTime d3;
- int elapsedTime;
-
- d3.start();
- cout << "d1: " << d1 << endl;
- cout << "d2: " << d2 << endl;
-
- cout << "d0 isNull: " << d0.isNull() << endl;
- cout << "d1 isNull: " << d1.isNull() << endl;
-
- d0 = d1;
- cout << "d0 = d1: " << d0 << endl;
-
- cout << "d1 msec: " << d1.msec() << endl;
- cout << "d2 msec: " << d2.msec() << endl;
- cout << "d2 hour: " << d2.hour() << endl;
- cout << "d2 minute: " << d2.minute() << endl;
- cout << "d2 second: " << d2.second() << endl;
-
- cout << "d2 secsTo d1: " << d2.secsTo(d1) << endl;
-
- elapsedTime = d3.elapsed(); // nothing is printed because output will never match .chk file
- elapsedTime = d3.restart();
-
-
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qvaluelist-test.chk b/WebCore/kwq/tests/qt/qvaluelist-test.chk
deleted file mode 100644
index 572669c..0000000
--- a/WebCore/kwq/tests/qt/qvaluelist-test.chk
+++ /dev/null
@@ -1,14 +0,0 @@
-p0: QValueList: [size: 6; items: 0, 1, 2, 3, 4, 5]
-p0[3]: 3
-p0 += 6,7: QValueList: [size: 8; items: 0, 1, 2, 3, 4, 5, 6, 7]
-p0 iterator: 4, 5, 6, 7
-p0 count: 8
-p0 remove 7: QValueList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 contains 7: 0
-p0 remove 6: 1
-p0 first 6: 0
-p0 last 6: 6
-p1 = p0: QValueList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 0
-p0 clear: QValueList: [size: 0; items: ]
-p0 isEmpty: 1
diff --git a/WebCore/kwq/tests/qt/qvaluelist-test.cpp b/WebCore/kwq/tests/qt/qvaluelist-test.cpp
deleted file mode 100644
index 5e13474..0000000
--- a/WebCore/kwq/tests/qt/qvaluelist-test.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qvaluelist.h>
-
-int main() {
-
- QValueList<int> p0;
- QValueList<int> p1;
-
- p0.append(0);
- p0.append(1);
- p0.append(2);
- p0.append(3);
- p0.append(4);
- p0.append(5);
-
- cout << "p0: " << p0 << endl;
- cout << "p0[3]: " << p0[3] << endl;
- p0 += 6;
- p0 += 7;
- cout << "p0 += 6,7: " << p0 << endl;
-
- cout << "p0 iterator: ";
- QValueListIterator<int> it = p0.find(4);
- while (it != p0.end()) {
- cout << *it;
- if (++it != p0.end()) {
- cout << ", ";
- }
- }
- cout << endl;
-
- cout << "p0 count: " << p0.count() << endl;
-
- p0.remove(7);
- cout << "p0 remove 7: " << p0 << endl;
-
- cout << "p0 contains 7: " << p0.contains(7) << endl;
- cout << "p0 remove 6: " << p0.contains(6) << endl;
-
- cout << "p0 first 6: " << p0.first() << endl;
- cout << "p0 last 6: " << p0.last() << endl;
-
- p1 = p0;
- cout << "p1 = p0: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- p0.clear();
- cout << "p0 clear: " << p0 << endl;
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
-
-
-
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/qt/qvector-test.chk b/WebCore/kwq/tests/qt/qvector-test.chk
deleted file mode 100644
index f942571..0000000
--- a/WebCore/kwq/tests/qt/qvector-test.chk
+++ /dev/null
@@ -1,15 +0,0 @@
-v1: QVector: [size: 7; items: 0, 1, 2, 3, 4, 5, 6, ]
-v2 = v1: QVector: [size: 0; items: ]
-v1 find 2: 2
-v1 contains 3: 1
-v1 contains 0: 1
-v1 count: 7
-v1 size: 10
-v1 remove 6: QVector: [size: 6; items: 0, 1, 2, 3, 4, 5, ]
-v1 resize 15: 15
-v1 at 2: 2
-v1[3]: 3
-v2 clear: QVector: [size: 0; items: ]
-v0: 1
-v1: 0
-v2: 1
diff --git a/WebCore/kwq/tests/qt/qvector-test.cpp b/WebCore/kwq/tests/qt/qvector-test.cpp
deleted file mode 100644
index f6cbd37..0000000
--- a/WebCore/kwq/tests/qt/qvector-test.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qvector.h>
-
-int main() {
-
- QVector<int> v0;
- QVector<int> v1 = QVector<int>(10);
- QVector<int> v2 = v1;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int *x;
-
- v1.insert(0,&i);
- v1.insert(1,&j);
- v1.insert(2,&k);
- v1.insert(3,&l);
- v1.insert(4,&m);
- v1.insert(5,&n);
- v1.insert(6,&o);
-
- cout << "v1: " << v1 << endl;
- cout << "v2 = v1: " << v2 << endl;
-
- cout << "v1 find 2: " << v1.find(&k) << endl;
-
- cout << "v1 contains 3: " << v1.containsRef(&l) << endl;
- cout << "v1 contains 0: " << v1.containsRef(&i) << endl;
-
- cout << "v1 count: " << v1.count() << endl;
- cout << "v1 size: " << v1.size() << endl;
-
- v1.remove(6);
- cout << "v1 remove 6: " << v1 << endl;
-
- v1.resize(15);
- cout << "v1 resize 15: " << v1.size() << endl;
-
- x = v1.at(2);
- cout << "v1 at 2: " << *x << endl;
-
- x = v1[3];
- cout << "v1[3]: " << *x << endl;
-
- v2.clear();
- cout << "v2 clear: " << v2 << endl;
-
- cout << "v0: " << v0.isEmpty() << endl;
- cout << "v1: " << v1.isEmpty() << endl;
- cout << "v2: " << v2.isEmpty() << endl;
-
- return 0;
-}
diff --git a/WebCore/kwq/tests/test.list b/WebCore/kwq/tests/test.list
deleted file mode 100644
index 5fd6fcb..0000000
--- a/WebCore/kwq/tests/test.list
+++ /dev/null
@@ -1,21 +0,0 @@
-# Qt suite
-qt/qpoint-test
-qt/qsize-test
-qt/qcstring-test
-qt/qrect-test
-qt/qarray-test
-qt/qmap-test
-qt/qdict-test
-qt/qptrdict-test
-qt/qstack-test
-qt/qvaluelist-test
-qt/qstringlist-test
-qt/qlist-test
-qt/qregexp-test
-qt/qchar-test
-qt/qdate-test
-qt/qtime-test
-qt/qdatetime-test
-qt/qstring-test
-qt/qvector-test
-qt/qsortedlist-test
diff --git a/WebCore/src/kwq/tests/.cvsignore b/WebCore/src/kwq/tests/.cvsignore
deleted file mode 100644
index a486a70..0000000
--- a/WebCore/src/kwq/tests/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-harness
diff --git a/WebCore/src/kwq/tests/Makefile.in b/WebCore/src/kwq/tests/Makefile.in
deleted file mode 100644
index 5daaf3a..0000000
--- a/WebCore/src/kwq/tests/Makefile.in
+++ /dev/null
@@ -1,56 +0,0 @@
-#======================================================================
-#
-# Makefile
-#
-# $RCSfile$
-#
-#======================================================================
-# set top source dir relative to this directory
-# include make vars boilerplate
-#
-
-TOPSRCDIR = ../../..
-include $(TOPSRCDIR)/Makefile.vars
-
-#----------------------------------------------------------------------
-# Set variables for this directory
-
-CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
-
-PROGRAM = harness
-
-CLEAN_FILES = *.o \
- $(PROGRAM) \
- $(NULL)
-
-#----------------------------------------------------------------------
-# Set flags for this directory
-
-CFLAGS = $(BASECFLAGS) \
- -Wall \
- -O2 \
- $(NULL)
-
-DEPFLAGS = $(CFLAGS)
-
-#----------------------------------------------------------------------
-# Set targets for this directory
-
-all: $(OBJECTS) $(PROGRAM)
-
-$(PROGRAM): harness.o
- $(CC) -o $@ $< $(LDFLAGS)
-
-test:
- $(MAKE) && ./harness
-
-depend:
-
-#----------------------------------------------------------------------
-# include make rules boilerplate
-
-include $(TOPSRCDIR)/Makefile.rules
-
-#======================================================================
-# end
-#======================================================================
diff --git a/WebCore/src/kwq/tests/draw/Makefile b/WebCore/src/kwq/tests/draw/Makefile
deleted file mode 100644
index b3f2ef2..0000000
--- a/WebCore/src/kwq/tests/draw/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-
-qdraw.o: draw.mm
- cc -c -I$(QTDIR)/include -fno-exceptions -pipe -g -o qdraw.o draw.mm
-
-qdraw: qdraw.o
- cc -L$(QTDIR)/lib -o ./qdraw qdraw.o -lqt -L/usr/X11R6/lib -lz -ljpeg -lXext -lX11 -framework Cocoa
-
-#kwqdraw.o: draw.mm
-# cc -c -DQT_NO_DATASTREAM -D_KWQ_COMPLETE_ -D_KWQ_ -I../.. -I../../qt -fno-exceptions -pipe -g -o kwqdraw.o draw.mm
-
-#kwqdraw: kwqdraw.o
-# cc -L$(QTDIR)/lib -o ./kwqdraw kwqdraw.o -L../.. -L../../qt -lkwq -l_qt -lstdc++ -framework Cocoa
-
-#clean:
-# rm *.o qdraw kwqdraw
-clean:
-
- rm *.o qdraw
-#all: qdraw kwqdraw
-all: qdraw
diff --git a/WebCore/src/kwq/tests/draw/draw.mm b/WebCore/src/kwq/tests/draw/draw.mm
deleted file mode 100644
index 69091e2..0000000
--- a/WebCore/src/kwq/tests/draw/draw.mm
+++ /dev/null
@@ -1,367 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * This program tests the subset of the Qt drawing API implemented in the
- * KWQ emulation package. Only the API in the emulation package should
- * be used.
- *
- * Classes tested (and needed to link):
- * QApplication
- * QBrush
- * QByteArray
- * QColor
- * QFont
- * QFontMetrics
- * QPainter
- * QPen
- * QPixmap
- * QPoint
- * QRect
- * QSize
- * QString
- * QWidget
- * QWMatrix
- */
-
-#include <qwidget.h>
-#include <qpainter.h>
-#include <qpixmap.h>
-#include <qapplication.h>
-#include <qpoint.h>
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-// Voodoo required to get compiler to compile correctly.
-#undef DEBUG
-#import <Cocoa/Cocoa.h>
-
-//
-// This function draws a color wheel.
-// The coordinate system x=(0..500), y=(0..500) spans the paint device.
-//
-
-#define SLICE_WIDTH 68
-#define SLICE_HEIGHT 10
-
-void drawColors( QPainter *p )
-{
- int x = 0, y = 0, height, r = 0, g = 255, b = 125;
- p->save();
-
- QFont f;
- f.setFamily( "helvetica" );
- f.setPixelSizeFloat ((float) 10);
- f.setWeight ( QFont::Bold );
- p->setFont( f );
- p->setPen( QPen(Qt::black) );
-
- QFontMetrics fm = p->fontMetrics();
- height = fm.height();
-
- for ( int i=0; i<36; i++ ) { // draws 36 rotated rectangles
- QColor c;
- c.setRgb( r, g, b );
- r += 255/36;
- g -= 255/36;
- p->setBrush( c ); // solid fill with color c
- x += SLICE_WIDTH + 5;
- if (i % 6 == 0) {
- y += SLICE_HEIGHT + height + 2;
- x = 10;
- }
- p->drawRect( x, y, SLICE_WIDTH, SLICE_HEIGHT ); // draw the rectangle
-
- QString n;
- n.sprintf( "%d,%d,%d", r,g,b );
- p->drawText( x, y + SLICE_HEIGHT + height, n ); // draw the hue number
- }
- p->restore();
-}
-
-
-void drawImages( QPainter *p)
-{
- QByteArray *byteArray[3];
- QPixmap *pixmap[3];
- NSString *files[3] = { @"qt.png", @"powermac.jpg", @"yahoo.gif" }, *filename;
- NSData *data[3];
- int i;
- QPoint *point;
-
- for (i = 0; i < 3; i++){
- point = new QPoint (10 + 60 * i, 200);
-#ifdef _KWQ_
- filename = [NSString stringWithFormat: @"%@/%@", [[NSBundle mainBundle] resourcePath], files[i], nil];
- data[i] = [[NSData alloc] initWithContentsOfFile: filename];
-#else
- data[i] = [[NSData alloc] initWithContentsOfFile: files[i]];
-#endif
- byteArray[i] = new QByteArray();
- byteArray[i]->setRawData ((const char *)[data[i] bytes], (unsigned int)[data[i] length]);
- pixmap[i] = new QPixmap (*byteArray[i]);
- if (i == 1)
- p->setRasterOp(Qt::XorROP);
- else
- p->setRasterOp(Qt::CopyROP);
- if (i == 2){
- QWMatrix matrix;
- matrix.scale((double)0.5, (double)0.5);
- QPixmap rp = pixmap[i]->xForm (matrix);
- p->drawPixmap (*point,rp);
- }
- else
- p->drawPixmap (*point,*pixmap[i]);
- delete point;
- }
-
- for (i = 0; i < 3; i++){
- point = new QPoint (10 + 60 * i, 200);
-
- QSize imageSize = pixmap[i]->size();
-
- // This should draw an empty rect, as brush isn't set to any color.
- p->setPen( QPen(Qt::yellow) );
- p->drawRect (point->x(), point->y(), imageSize.width(), imageSize.height());
-
- p->setPen( Qt::blue );
- p->drawLine (point->x(), point->y(), point->x() + imageSize.width(), point->y() + imageSize.height());
- p->drawLine (point->x(), point->y() + imageSize.height(), point->x() + imageSize.width(), point->y());
- delete point;
- }
-
- int x = 480, y = 20, w = 400, h = 300;
- p->drawTiledPixmap (x, y, w, h, *pixmap[0], 0, 0);
- p->drawLine (x, y, x + w, y + h);
- p->drawLine (x, y + h, x + w, y);
-
- x = 530; y = 70; w = 380, h = 325;
- p->drawTiledPixmap (x, y, w, h, *pixmap[0], 0, 0);
- p->drawLine (x, y, x + w, y + h);
- p->drawLine (x, y + h, x + w, y);
-
- for (i = 0; i < 3; i++){
- // Problematic, as QByteArray expects ownership. It will free() the bytes set from setRawData.
- //delete byteArray[i];
- delete pixmap[i];
- //[data[i] release];
- }
-}
-
-
-//
-// This function draws a few lines of text using different fonts.
-//
-
-#define DRAW_FONT_OFFSET 360.0F
-
-void drawFonts( QPainter *p )
-{
- static const char *fonts[] = { "Helvetica", "Courier", "Times", 0 };
- static int sizes[] = { 10, 12, 18, 24, 36, 0 };
- int f = 0;
- int y = 0;
-
- p->save();
-
-#ifdef USE_TRANSLATION
- QWMatrix matrix;
- matrix.translate( 0.0F, DRAW_FONT_OFFSET ); // move to center
- p->setWorldMatrix( matrix ); // use this world matrix
-#else
- y += (int)DRAW_FONT_OFFSET;
-#endif
-
- p->setPen( Qt::black );
- while ( fonts[f] ) {
- int s = 0;
- while ( sizes[s] ) {
- QFont font;
- font.setFamily ( fonts[f] );
- font.setPixelSizeFloat ( (float)sizes[s] );
- p->setFont( font );
- QFontMetrics fm = p->fontMetrics();
- y += fm.ascent();
- p->drawText( 10, y, fonts[f] );
- QString n;
- n.sprintf( " size = %d, h = %d, a = %d, d = %d ", sizes[s], fm.height(),fm.ascent(),fm.descent() );
- p->drawText( 10 + p->fontMetrics().width(fonts[f]), y, n );
- p->drawText( 10 + p->fontMetrics().width(n) + p->fontMetrics().width(fonts[f]) , y, "pqX-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhijklmnopqrstuvwxyz" );
- y += fm.descent();
- s++;
- }
- f++;
- }
-
- QFont font;
- font.setFamily ("Helvetica");
- font.setPixelSizeFloat ((float)12);
- p->setFont( font );
- p->setBrush ( Qt::white );
- p->drawRect(700, 600, 150, 60);
- p->drawText(700, 600, 150, 60 , Qt::WordBreak, "Some text in a box that should word break." );
- p->drawRect(700, 670, 150, 60);
- p->drawText(700, 670, 150, 60 , Qt::AlignLeft, "Some text in a box that should align left." );
- p->drawRect(700, 740, 150, 60);
- p->drawText(700, 740, 150, 60 , Qt::AlignRight, "Some text in a box that should align right." );
- p->drawRect(700, 810, 100, 60);
- p->drawText(700, 810, 100, 60 , Qt::AlignLeft|Qt::WordBreak, "Some text in a box that should align left and word break." );
- p->drawRect(700, 880, 100, 60);
- p->drawText(700, 880, 100, 60 , Qt::AlignRight|Qt::WordBreak, "Some text in a box that should align right and word break." );
-
- p->restore();
-}
-
-
-//
-// This function draws some shapes
-//
-
-#define DRAW_SHAPES_OFFSET 690.0F
-
-void drawShapes( QPainter *p )
-{
- QBrush b1( Qt::blue );
- QBrush b2( Qt::green); // green
- QBrush b3( Qt::lightGray ); //
- QBrush b4( Qt::red ); // red
-
- int y = 10;
-
- p->save();
-
-#ifdef USE_TRANSLATION
- QWMatrix matrix;
- matrix.translate( 0.0F, DRAW_SHAPES_OFFSET ); // move to center
- p->setWorldMatrix( matrix ); // use this world matrix
-#else
- y += (int)DRAW_SHAPES_OFFSET;
-#endif
- p->setPen( Qt::red );
- p->setBrush( b1 );
- p->drawRect( 10, y, 200, 100 );
- p->setBrush( b3 );
- p->drawEllipse( 250, y, 200, 100 );
-
- p->drawArc( 500, y, 200, 200, 0*16, 360*16 );
- p->drawArc( 500, y + 20, 100, 100, 0*16, 360*16 );
- p->setPen( Qt::white );
- p->drawArc( 500, y, 200, 200, 45*16, 90*16 );
- p->drawArc( 500, y + 20, 100, 100, 180*16, 45*16 );
-
- int x = 10, offset = 40;
- y += 110;
- QCOORD points1[] = { x,y, x+offset,y, x+offset,y+offset, x,y+offset, x,y };
- QPointArray a1( 5, points1 );
-
- p->setPen( Qt::green );
- p->drawPolyline( a1 );
-
- x = 200, offset = 40;
- QCOORD points2[] = { x,y, x+offset,y, x+offset*2,y+offset, x,y+offset, x-10,y };
- QPointArray a2( 5, points2 );
-
- p->setBrush( Qt::lightGray );
- p->setPen( Qt::darkRed );
- p->drawPolygon( a2 );
-
-
- p->restore();
-}
-
-
-class DrawView : public QWidget
-{
-public:
- DrawView();
- ~DrawView();
-protected:
-
-#ifdef _KWQ_
- void paint( void * );
-#else
- void paintEvent( QPaintEvent * );
-#endif
-private:
-};
-
-
-//
-// Construct the DrawView with buttons.
-//
-
-DrawView::DrawView()
-{
- resize( 980,980 );
-}
-
-//
-// Clean up
-//
-DrawView::~DrawView()
-{
-}
-
-//
-// Called when the widget needs to be updated.
-//
-
-#ifdef _KWQ_
-void DrawView::paint( void *arg )
-{
- QPainter paint( this );
-
- drawColors (&paint);
- drawImages (&paint);
- drawFonts (&paint);
- drawShapes (&paint);
-}
-#else
-void DrawView::paintEvent( QPaintEvent * )
-{
- QPainter paint( this );
-
- drawColors (&paint);
- drawImages (&paint);
- drawFonts (&paint);
- drawShapes (&paint);
-}
-#endif
-
-
-//
-// Create and display our widget.
-//
-
-int main( int argc, char **argv )
-{
- QApplication app( argc, argv );
- DrawView draw;
- app.setMainWidget( &draw );
- draw.show();
- return app.exec();
-}
diff --git a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings b/WebCore/src/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings
deleted file mode 100644
index c9c7ca4..0000000
Binary files a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/InfoPlist.strings and /dev/null differ
diff --git a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib b/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib
deleted file mode 100644
index 0fd7917..0000000
--- a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/classes.nib
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- CLASS = _KWQOwner;
- LANGUAGE = ObjC;
- OUTLETS = {window = id; };
- SUPERCLASS = NSApplication;
- }
- );
- IBVersion = 1;
-}
\ No newline at end of file
diff --git a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib b/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib
deleted file mode 100644
index ba73594..0000000
--- a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/info.nib
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>IBFramework Version</key>
- <string>219.0</string>
- <key>IBMainMenuLocation</key>
- <string>69 252 318 44 0 0 1600 1002 </string>
- <key>IBSystem Version</key>
- <string>5G64</string>
- <key>IBUserGuides</key>
- <dict>
- <key>Window</key>
- <dict>
- <key>guideLocations</key>
- <array/>
- <key>guidesLocked</key>
- <string>NO</string>
- </dict>
- </dict>
-</dict>
-</plist>
diff --git a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib b/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib
deleted file mode 100644
index 5f2f293..0000000
Binary files a/WebCore/src/kwq/tests/draw/drawApp/English.lproj/MainMenu.nib/objects.nib and /dev/null differ
diff --git a/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore b/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore
deleted file mode 100644
index 0857ac3..0000000
--- a/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pbxuser
diff --git a/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj b/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj
deleted file mode 100644
index 1e521e1..0000000
--- a/WebCore/src/kwq/tests/draw/drawApp/drawApp.pbproj/project.pbxproj
+++ /dev/null
@@ -1,395 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 34;
- objects = {
- 080E96DCFE201CFB7F000001 = {
- fileRef = 29B97318FDCFA39411CA2CEA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 080E96DDFE201D6D7F000001 = {
- children = (
- );
- isa = PBXGroup;
- name = Classes;
- refType = 4;
- };
- 089C165CFE840E0CC02AAC07 = {
- children = (
- 089C165DFE840E0CC02AAC07,
- );
- isa = PBXVariantGroup;
- name = InfoPlist.strings;
- refType = 4;
- };
- 089C165DFE840E0CC02AAC07 = {
- fileEncoding = 10;
- isa = PBXFileReference;
- name = English;
- path = English.lproj/InfoPlist.strings;
- refType = 4;
- };
- 089C165EFE840E0CC02AAC07 = {
- fileRef = 089C165CFE840E0CC02AAC07;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//080
-//081
-//082
-//083
-//084
-//100
-//101
-//102
-//103
-//104
- 1058C7A0FEA54F0111CA2CBB = {
- children = (
- 1058C7A1FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = "Linked Frameworks";
- refType = 4;
- };
- 1058C7A1FEA54F0111CA2CBB = {
- isa = PBXFrameworkReference;
- name = Cocoa.framework;
- path = /System/Library/Frameworks/Cocoa.framework;
- refType = 0;
- };
- 1058C7A2FEA54F0111CA2CBB = {
- children = (
- 29B97325FDCFA39411CA2CEA,
- 29B97324FDCFA39411CA2CEA,
- );
- isa = PBXGroup;
- name = "Other Frameworks";
- refType = 4;
- };
- 1058C7A3FEA54F0111CA2CBB = {
- fileRef = 1058C7A1FEA54F0111CA2CBB;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//100
-//101
-//102
-//103
-//104
-//170
-//171
-//172
-//173
-//174
- 17587328FF379C6511CA2CBB = {
- isa = PBXApplicationReference;
- path = drawApp.app;
- refType = 3;
- };
-//170
-//171
-//172
-//173
-//174
-//190
-//191
-//192
-//193
-//194
- 19C28FACFE9D520D11CA2CBB = {
- children = (
- 17587328FF379C6511CA2CBB,
- );
- isa = PBXGroup;
- name = Products;
- refType = 4;
- };
-//190
-//191
-//192
-//193
-//194
-//250
-//251
-//252
-//253
-//254
- 251C98EA017CDDA10ECA149E = {
- isa = PBXFileReference;
- name = draw.mm;
- path = ../draw.mm;
- refType = 2;
- };
- 251C98EB017CDDA10ECA149E = {
- fileRef = 251C98EA017CDDA10ECA149E;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//250
-//251
-//252
-//253
-//254
-//290
-//291
-//292
-//293
-//294
- 29B97313FDCFA39411CA2CEA = {
- buildStyles = (
- 4A9504CCFFE6A4B311CA0CBA,
- 4A9504CDFFE6A4B311CA0CBA,
- );
- isa = PBXProject;
- mainGroup = 29B97314FDCFA39411CA2CEA;
- projectDirPath = "";
- targets = (
- 29B97326FDCFA39411CA2CEA,
- );
- };
- 29B97314FDCFA39411CA2CEA = {
- children = (
- 080E96DDFE201D6D7F000001,
- 29B97315FDCFA39411CA2CEA,
- 29B97317FDCFA39411CA2CEA,
- 29B97323FDCFA39411CA2CEA,
- 19C28FACFE9D520D11CA2CBB,
- );
- isa = PBXGroup;
- name = drawApp;
- path = "";
- refType = 4;
- };
- 29B97315FDCFA39411CA2CEA = {
- children = (
- 251C98EA017CDDA10ECA149E,
- );
- isa = PBXGroup;
- name = "Other Sources";
- path = "";
- refType = 4;
- };
- 29B97317FDCFA39411CA2CEA = {
- children = (
- 29B97318FDCFA39411CA2CEA,
- 089C165CFE840E0CC02AAC07,
- 9C05E999017653110ECA16EA,
- 9C05E99A017653110ECA16EA,
- 9C05E99B017653110ECA16EA,
- );
- isa = PBXGroup;
- name = Resources;
- path = "";
- refType = 4;
- };
- 29B97318FDCFA39411CA2CEA = {
- children = (
- 29B97319FDCFA39411CA2CEA,
- );
- isa = PBXVariantGroup;
- name = MainMenu.nib;
- path = "";
- refType = 4;
- };
- 29B97319FDCFA39411CA2CEA = {
- isa = PBXFileReference;
- name = English;
- path = English.lproj/MainMenu.nib;
- refType = 4;
- };
- 29B97323FDCFA39411CA2CEA = {
- children = (
- 1058C7A0FEA54F0111CA2CBB,
- 1058C7A2FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = Frameworks;
- path = "";
- refType = 4;
- };
- 29B97324FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = AppKit.framework;
- path = /System/Library/Frameworks/AppKit.framework;
- refType = 0;
- };
- 29B97325FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = Foundation.framework;
- path = /System/Library/Frameworks/Foundation.framework;
- refType = 0;
- };
- 29B97326FDCFA39411CA2CEA = {
- buildPhases = (
- 29B97327FDCFA39411CA2CEA,
- 29B97328FDCFA39411CA2CEA,
- 29B9732BFDCFA39411CA2CEA,
- 29B9732DFDCFA39411CA2CEA,
- );
- buildSettings = {
- FRAMEWORK_SEARCH_PATHS = "";
- HEADER_SEARCH_PATHS = "";
- INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = ../../../../../lib;
- OTHER_CFLAGS = "-DHAVE_CONFIG_H -DQT_NO_DATASTREAM -D_KWQ_ -I../../../qt -I../../.. -I../../../../..";
- OTHER_LDFLAGS = "-lwebcore -framework Webkit";
- PRODUCT_NAME = drawApp;
- SECTORDER_FLAGS = "";
- WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
- WRAPPER_EXTENSION = app;
- };
- dependencies = (
- );
- isa = PBXApplicationTarget;
- name = drawApp;
- productInstallPath = "$(HOME)/Applications";
- productName = drawApp;
- productReference = 17587328FF379C6511CA2CBB;
- productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
-<plist version=\"0.9\">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>drawApp</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.1</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>_KWQOwner</string>
-</dict>
-</plist>
-";
- shouldUseHeadermap = 1;
- };
- 29B97327FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- );
- isa = PBXHeadersBuildPhase;
- name = Headers;
- };
- 29B97328FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 080E96DCFE201CFB7F000001,
- 089C165EFE840E0CC02AAC07,
- 9C05E99C017653110ECA16EA,
- 9C05E99D017653110ECA16EA,
- 9C05E99E017653110ECA16EA,
- );
- isa = PBXResourcesBuildPhase;
- name = "Bundle Resources";
- };
- 29B9732BFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 251C98EB017CDDA10ECA149E,
- );
- isa = PBXSourcesBuildPhase;
- name = Sources;
- };
- 29B9732DFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 1058C7A3FEA54F0111CA2CBB,
- );
- isa = PBXFrameworksBuildPhase;
- name = "Frameworks & Libraries";
- };
-//290
-//291
-//292
-//293
-//294
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
- 4A9504CCFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- OPTIMIZATION_CFLAGS = "-O0";
- };
- isa = PBXBuildStyle;
- name = Development;
- };
- 4A9504CDFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- isa = PBXBuildStyle;
- name = Deployment;
- };
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
-//9C0
-//9C1
-//9C2
-//9C3
-//9C4
- 9C05E999017653110ECA16EA = {
- isa = PBXFileReference;
- name = powermac.jpg;
- path = ../powermac.jpg;
- refType = 2;
- };
- 9C05E99A017653110ECA16EA = {
- isa = PBXFileReference;
- name = qt.png;
- path = ../qt.png;
- refType = 2;
- };
- 9C05E99B017653110ECA16EA = {
- isa = PBXFileReference;
- name = yahoo.gif;
- path = ../yahoo.gif;
- refType = 2;
- };
- 9C05E99C017653110ECA16EA = {
- fileRef = 9C05E999017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 9C05E99D017653110ECA16EA = {
- fileRef = 9C05E99A017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 9C05E99E017653110ECA16EA = {
- fileRef = 9C05E99B017653110ECA16EA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- };
- rootObject = 29B97313FDCFA39411CA2CEA;
-}
diff --git a/WebCore/src/kwq/tests/draw/powermac.jpg b/WebCore/src/kwq/tests/draw/powermac.jpg
deleted file mode 100644
index e9d1995..0000000
Binary files a/WebCore/src/kwq/tests/draw/powermac.jpg and /dev/null differ
diff --git a/WebCore/src/kwq/tests/draw/qt.png b/WebCore/src/kwq/tests/draw/qt.png
deleted file mode 100644
index 1f619c1..0000000
Binary files a/WebCore/src/kwq/tests/draw/qt.png and /dev/null differ
diff --git a/WebCore/src/kwq/tests/draw/yahoo.gif b/WebCore/src/kwq/tests/draw/yahoo.gif
deleted file mode 100644
index 7a79228..0000000
Binary files a/WebCore/src/kwq/tests/draw/yahoo.gif and /dev/null differ
diff --git a/WebCore/src/kwq/tests/harness.c b/WebCore/src/kwq/tests/harness.c
deleted file mode 100644
index af99fd0..0000000
--- a/WebCore/src/kwq/tests/harness.c
+++ /dev/null
@@ -1,300 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-
-#define LIST "test.list"
-#define BUFSIZE 1024
-#define MAX_NAME_LEN 40
-#define TEST_ERR_LEN 29
-#define CHK_ERR_LEN 28
-
-int ok = 0;
-int no = 0;
-
-void ppad(int pad) {
- if (pad > 0) {
- while (--pad) {
- printf(".");
- }
- }
-}
-
-void *emalloc(size_t size) {
- void *p;
-
- p = malloc(size);
-
- if (!p) {
- fprintf(stderr, "memory allocation failure\n");
- exit(1);
- }
-
- return p;
-}
-
-int getfile(const char *filename, char **text) {
- FILE *file = NULL;
- int total_read = 0;
-
- file = fopen(filename, "r");
- if (file == NULL) {
- fprintf(stderr, "%s:%d: %s: %s\n", __FILE__, __LINE__, strerror(errno), filename);
- return -1;
- }
- else {
- int char_size = sizeof(char);
- int index = 0;
- int cap = BUFSIZE;
- char *buf;
-
- *text = emalloc(cap);
- buf = emalloc(BUFSIZE);
-
- do {
- int read;
- read = fread(buf, char_size, BUFSIZE, file);
- if (ferror(file) != 0) {
- free(buf);
- free(*text);
- fclose(file);
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- total_read += read;
- if (total_read > cap) {
- char *newmem = realloc(*text, (cap * 2));
- if(newmem == NULL) {
- free(buf);
- free(*text);
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- *text = newmem;
- cap = total_read;
- }
- memcpy((*text) + index, buf, read);
- index = total_read;
- }
- while (feof(file) == 0);
- free(buf);
- (*text)[total_read] = '\0';
- /* close file */
- if (fclose(file) != 0) {
- fprintf(stderr, "io error: %d\n", __LINE__);
- exit(1);
- }
- }
- return total_read;
-}
-
-int runtest(const char *test) {
- int pid;
- int fd;
- char chkname[64];
- char outname[64];
- char *out;
- char *chk;
- int outlen;
- int chklen;
- struct stat buf;
- int pad;
- int status;
-
- status = 0;
-
- strcpy(chkname, test);
- strcat(chkname, ".chk");
-
- strcpy(outname, test);
- strcat(outname, ".out");
-
- printf("%s", test);
-
- if(stat(test, &buf)) {
- pad = TEST_ERR_LEN - strlen(test);
- ppad(pad);
- printf("test file not found\n");
- return -1;
- }
-
- if(stat(chkname, &buf)) {
- pad = CHK_ERR_LEN - strlen(test);
- ppad(pad);
- printf("check file not found\n");
- return -1;
- }
-
- /* pad with dots */
- pad = MAX_NAME_LEN - strlen(test);
- ppad(pad);
-
- /* Fork a child to run the test */
- pid = fork();
- if (pid == 0) { /* child */
-
- /* Create a temporary file to catch output of test program */
- fd = open(outname, O_CREAT | O_WRONLY, S_IRWXU);
- if (fd == -1) {
- fprintf(stderr, "open of outfile failed\n");
- }
- else {
- /* Redirect stdout to a temporary file */
- close(1);
- dup(fd);
- close(fd);
-
- /* exec test file */
- execl(test, test, NULL);
-
- fprintf(stderr, "exec of %s failed\n", test);
- exit(1);
- }
- }
- else if (pid == -1) {
- fprintf(stderr, "fork failed\n");
- exit(1);
- }
-
- /* Wait for child to complete before returning */
- while (wait(&status) != pid) {} /* empty loop */
- if (WIFEXITED(status)) {
- status = WEXITSTATUS(status);
- }
- else {
- status = -1;
- }
-
- /* collect result and check output from files */
- outlen = getfile(outname, &out);
- chklen = getfile(chkname, &chk);
-
- /* compare output with expected result */
- if (status != 0) {
- no++;
- printf("fail [exit code]\n");
- }
- else if (outlen != chklen) {
- no++;
- printf("fail [!= lengths]\n");
- }
- else if (memcmp(out, chk, chklen) != 0) {
- no++;
- printf("fail [!= output]\n");
- }
- else {
- ok++;
- printf(".ok\n");
- }
-
- free(out);
- free(chk);
-
- /* clean up the temporary file */
- remove(outname);
-
- return 0;
-}
-
-int main(int argc, char **argv) {
-
- char **suites;
- char *list;
- char *line;
- int num;
- int t;
- int i;
- int head;
-
- printf("harness begin\n");
- printf("=========================================================\n");
-
- if (argc < 2) {
- suites = emalloc(sizeof(char *));
- suites[0] = LIST;
- num = 1;
- }
- else {
- num = argc - 1;
- suites = emalloc(num * sizeof(char *));
- for (i = 0; i < num; i++) {
- suites[i] = argv[i + 1];
- }
- }
-
- head = 1;
- for (i = 0; i < num; i++) {
- if (getfile(suites[i], &list) == -1) {
- continue;
- }
- line = strtok(list, "\n");
- while (line != NULL) {
- if (line[0] == '#') {
- head = 0;
- printf("%s\n", line);
- }
- else {
- if (head == 0) {
- printf("Test Name Output\n");
- printf("---------------------------------------------------------\n");
- }
- head = 1;
- runtest(line);
- }
- line = strtok(NULL, "\n");
- }
- free(list);
- }
- free(suites);
-
- t = ok + no;
- printf("---------------------------------------------------------\n");
- printf("Total Tests Run: %4d\n", t);
- printf("---------------------------------------------------------\n");
- printf("Summary Output\n");
- printf("Passed: %4d (%6.2f%%)\n",
- ok, ((float)ok / (float)t * 100)
- );
- printf("Failed: %4d (%6.2f%%)\n",
- no, ((float)no / (float)t * 100)
- );
- printf("=========================================================\n");
- printf("harness done\n");
-
- return no;
-
-}
-
-/*=============================================================================
-// end of file: $RCSfile$
-==============================================================================*/
-
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings b/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings
deleted file mode 100644
index 5414960..0000000
Binary files a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/InfoPlist.strings and /dev/null differ
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib b/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib
deleted file mode 100644
index 7ab970d..0000000
--- a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/classes.nib
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- IBClasses = (
- {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; },
- {
- ACTIONS = {changeURL = id; };
- CLASS = _KWQOwner;
- LANGUAGE = ObjC;
- OUTLETS = {containerView = id; window = id; };
- SUPERCLASS = NSApplication;
- }
- );
- IBVersion = 1;
-}
\ No newline at end of file
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib b/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib
deleted file mode 100644
index ba73594..0000000
--- a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/info.nib
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>IBFramework Version</key>
- <string>219.0</string>
- <key>IBMainMenuLocation</key>
- <string>69 252 318 44 0 0 1600 1002 </string>
- <key>IBSystem Version</key>
- <string>5G64</string>
- <key>IBUserGuides</key>
- <dict>
- <key>Window</key>
- <dict>
- <key>guideLocations</key>
- <array/>
- <key>guidesLocked</key>
- <string>NO</string>
- </dict>
- </dict>
-</dict>
-</plist>
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib b/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib
deleted file mode 100644
index addb7d4..0000000
Binary files a/WebCore/src/kwq/tests/khtmlview/WebViewTest/English.lproj/MainMenu.nib/objects.nib and /dev/null differ
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore b/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore
deleted file mode 100644
index 0857ac3..0000000
--- a/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/.cvsignore
+++ /dev/null
@@ -1 +0,0 @@
-*.pbxuser
diff --git a/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj b/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj
deleted file mode 100644
index 677bddb..0000000
--- a/WebCore/src/kwq/tests/khtmlview/WebViewTest/WebViewTest.pbproj/project.pbxproj
+++ /dev/null
@@ -1,343 +0,0 @@
-// !$*UTF8*$!
-{
- archiveVersion = 1;
- classes = {
- };
- objectVersion = 34;
- objects = {
- 080E96DCFE201CFB7F000001 = {
- fileRef = 29B97318FDCFA39411CA2CEA;
- isa = PBXBuildFile;
- settings = {
- };
- };
- 080E96DDFE201D6D7F000001 = {
- children = (
- );
- isa = PBXGroup;
- name = Classes;
- refType = 4;
- };
- 089C165CFE840E0CC02AAC07 = {
- children = (
- 089C165DFE840E0CC02AAC07,
- );
- isa = PBXVariantGroup;
- name = InfoPlist.strings;
- refType = 4;
- };
- 089C165DFE840E0CC02AAC07 = {
- fileEncoding = 10;
- isa = PBXFileReference;
- name = English;
- path = English.lproj/InfoPlist.strings;
- refType = 4;
- };
- 089C165EFE840E0CC02AAC07 = {
- fileRef = 089C165CFE840E0CC02AAC07;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//080
-//081
-//082
-//083
-//084
-//100
-//101
-//102
-//103
-//104
- 1058C7A0FEA54F0111CA2CBB = {
- children = (
- 1058C7A1FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = "Linked Frameworks";
- refType = 4;
- };
- 1058C7A1FEA54F0111CA2CBB = {
- isa = PBXFrameworkReference;
- name = Cocoa.framework;
- path = /System/Library/Frameworks/Cocoa.framework;
- refType = 0;
- };
- 1058C7A2FEA54F0111CA2CBB = {
- children = (
- 29B97325FDCFA39411CA2CEA,
- 29B97324FDCFA39411CA2CEA,
- );
- isa = PBXGroup;
- name = "Other Frameworks";
- refType = 4;
- };
- 1058C7A3FEA54F0111CA2CBB = {
- fileRef = 1058C7A1FEA54F0111CA2CBB;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//100
-//101
-//102
-//103
-//104
-//170
-//171
-//172
-//173
-//174
- 17587328FF379C6511CA2CBB = {
- isa = PBXApplicationReference;
- path = WebViewTest.app;
- refType = 3;
- };
-//170
-//171
-//172
-//173
-//174
-//190
-//191
-//192
-//193
-//194
- 19C28FACFE9D520D11CA2CBB = {
- children = (
- 17587328FF379C6511CA2CBB,
- );
- isa = PBXGroup;
- name = Products;
- refType = 4;
- };
-//190
-//191
-//192
-//193
-//194
-//250
-//251
-//252
-//253
-//254
- 25FB9CE1017B6FDB0ECA149E = {
- isa = PBXFileReference;
- name = draw.mm;
- path = ../draw.mm;
- refType = 2;
- };
- 25FB9CE2017B6FDB0ECA149E = {
- fileRef = 25FB9CE1017B6FDB0ECA149E;
- isa = PBXBuildFile;
- settings = {
- };
- };
-//250
-//251
-//252
-//253
-//254
-//290
-//291
-//292
-//293
-//294
- 29B97313FDCFA39411CA2CEA = {
- buildStyles = (
- 4A9504CCFFE6A4B311CA0CBA,
- 4A9504CDFFE6A4B311CA0CBA,
- );
- isa = PBXProject;
- mainGroup = 29B97314FDCFA39411CA2CEA;
- projectDirPath = "";
- targets = (
- 29B97326FDCFA39411CA2CEA,
- );
- };
- 29B97314FDCFA39411CA2CEA = {
- children = (
- 080E96DDFE201D6D7F000001,
- 29B97315FDCFA39411CA2CEA,
- 29B97317FDCFA39411CA2CEA,
- 29B97323FDCFA39411CA2CEA,
- 19C28FACFE9D520D11CA2CBB,
- );
- isa = PBXGroup;
- name = WebViewTest;
- path = "";
- refType = 4;
- };
- 29B97315FDCFA39411CA2CEA = {
- children = (
- 25FB9CE1017B6FDB0ECA149E,
- );
- isa = PBXGroup;
- name = "Other Sources";
- path = "";
- refType = 4;
- };
- 29B97317FDCFA39411CA2CEA = {
- children = (
- 29B97318FDCFA39411CA2CEA,
- 089C165CFE840E0CC02AAC07,
- );
- isa = PBXGroup;
- name = Resources;
- path = "";
- refType = 4;
- };
- 29B97318FDCFA39411CA2CEA = {
- children = (
- 29B97319FDCFA39411CA2CEA,
- );
- isa = PBXVariantGroup;
- name = MainMenu.nib;
- path = "";
- refType = 4;
- };
- 29B97319FDCFA39411CA2CEA = {
- isa = PBXFileReference;
- name = English;
- path = English.lproj/MainMenu.nib;
- refType = 4;
- };
- 29B97323FDCFA39411CA2CEA = {
- children = (
- 1058C7A0FEA54F0111CA2CBB,
- 1058C7A2FEA54F0111CA2CBB,
- );
- isa = PBXGroup;
- name = Frameworks;
- path = "";
- refType = 4;
- };
- 29B97324FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = AppKit.framework;
- path = /System/Library/Frameworks/AppKit.framework;
- refType = 0;
- };
- 29B97325FDCFA39411CA2CEA = {
- isa = PBXFrameworkReference;
- name = Foundation.framework;
- path = /System/Library/Frameworks/Foundation.framework;
- refType = 0;
- };
- 29B97326FDCFA39411CA2CEA = {
- buildPhases = (
- 29B97327FDCFA39411CA2CEA,
- 29B97328FDCFA39411CA2CEA,
- 29B9732BFDCFA39411CA2CEA,
- 29B9732DFDCFA39411CA2CEA,
- );
- buildSettings = {
- FRAMEWORK_SEARCH_PATHS = /symroots;
- HEADER_SEARCH_PATHS = "";
- INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = ../../../../../lib;
- OTHER_CFLAGS = "-DHAVE_CONFIG_H -DQT_NO_DATASTREAM -D_KWQ_ -I../../../qt -I../../.. -I../../../../.. -I../../../../kdelibs/khtml -I../../../../kwq/kdecore -I../../../../kwq/kde -I../../../../kwq -I../../../../../include";
- OTHER_LDFLAGS = "-lwebcore -framework WebKit";
- PRODUCT_NAME = WebViewTest;
- SECTORDER_FLAGS = "";
- WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
- WRAPPER_EXTENSION = app;
- };
- dependencies = (
- );
- isa = PBXApplicationTarget;
- name = WebViewTest;
- productInstallPath = "$(HOME)/Applications";
- productName = WebViewTest;
- productReference = 17587328FF379C6511CA2CBB;
- productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
-<!DOCTYPE plist SYSTEM \"file://localhost/System/Library/DTDs/PropertyList.dtd\">
-<plist version=\"0.9\">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>WebViewTest</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>0.1</string>
- <key>NSMainNibFile</key>
- <string>MainMenu</string>
- <key>NSPrincipalClass</key>
- <string>_KWQOwner</string>
-</dict>
-</plist>
-";
- shouldUseHeadermap = 1;
- };
- 29B97327FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- );
- isa = PBXHeadersBuildPhase;
- name = Headers;
- };
- 29B97328FDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 080E96DCFE201CFB7F000001,
- 089C165EFE840E0CC02AAC07,
- );
- isa = PBXResourcesBuildPhase;
- name = "Bundle Resources";
- };
- 29B9732BFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 25FB9CE2017B6FDB0ECA149E,
- );
- isa = PBXSourcesBuildPhase;
- name = Sources;
- };
- 29B9732DFDCFA39411CA2CEA = {
- buildActionMask = 2147483647;
- files = (
- 1058C7A3FEA54F0111CA2CBB,
- );
- isa = PBXFrameworksBuildPhase;
- name = "Frameworks & Libraries";
- };
-//290
-//291
-//292
-//293
-//294
-//4A0
-//4A1
-//4A2
-//4A3
-//4A4
- 4A9504CCFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = NO;
- OPTIMIZATION_CFLAGS = "-O0";
- };
- isa = PBXBuildStyle;
- name = Development;
- };
- 4A9504CDFFE6A4B311CA0CBA = {
- buildRules = (
- );
- buildSettings = {
- COPY_PHASE_STRIP = YES;
- };
- isa = PBXBuildStyle;
- name = Deployment;
- };
- };
- rootObject = 29B97313FDCFA39411CA2CEA;
-}
diff --git a/WebCore/src/kwq/tests/khtmlview/draw.mm b/WebCore/src/kwq/tests/khtmlview/draw.mm
deleted file mode 100644
index bdb22bb..0000000
--- a/WebCore/src/kwq/tests/khtmlview/draw.mm
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (C) 2001 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <qapplication.h>
-#include <khtmlview.h>
-
-#include <KWQView.h>
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-// Voodoo required to get compiler to compile correctly.
-#undef DEBUG
-#import <Cocoa/Cocoa.h>
-
-//
-// Create and display our widget.
-//
-
-/*
- This program illustrates the canonical method for
- creating a WebPageView. It currently use kde and Qt
- API to create a web page view. Eventually it will
- use WebPageView and WebKit API.
-
- The following methods will eventually create a
- web page view.
-
- url = [NSURL URLWithString: @"http://www.apple.com"];
- wpd = [[NSWebPageDocument alloc] initWithURL: url];
- wpv = [[NSWebPageView alloc] initWithFrame: NSMakeRect (0,0,500,500) document: wpd]
-
-*/
-
-int main( int argc, char **argv )
-{
- QApplication app( argc, argv );
-
- // This will eventually be replaced with a NSURL.
- KURL url = "http://kocike.apple.com/foo.html";
-
- // Use KHTMLPart as the model for the view. This will eventually be covered
- // by WebPageDocument.
- // [[WebPageDocument alloc] initWithURL: (NSURL *)url];
- KHTMLPart *w = new KHTMLPart();
-
- // Create the KHTMLView. This will eventually be covered by the
- // WebPageView.
- // [[WebPageView alloc] initWithFrame: (NSRect)rect document: (WebPageDocument *)doc]
- KHTMLView *htmlView = new KHTMLView (w, 0);
- htmlView->resize (800,800);
- KWQHTMLView *kwqHTMLView = [[[KWQHTMLView alloc] initWithFrame: NSMakeRect (0,0,0,0) widget: htmlView] autorelease];
- kwqHTMLView->part = w;
-
- w->setView (htmlView);
-
- w->openURL (url);
-
- htmlView->setView (kwqHTMLView);
-
- htmlView->resize(800, 800);
-
- app.setMainWidget( htmlView );
- htmlView->show();
-
- return app.exec();
-}
diff --git a/WebCore/src/kwq/tests/qt/.cvsignore b/WebCore/src/kwq/tests/qt/.cvsignore
deleted file mode 100644
index 69e99b1..0000000
--- a/WebCore/src/kwq/tests/qt/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-test
-Makefile
-*-test
diff --git a/WebCore/src/kwq/tests/qt/Makefile.in b/WebCore/src/kwq/tests/qt/Makefile.in
deleted file mode 100644
index 24206e8..0000000
--- a/WebCore/src/kwq/tests/qt/Makefile.in
+++ /dev/null
@@ -1,151 +0,0 @@
-#======================================================================
-#
-# Makefile
-#
-# $RCSfile$
-#
-#======================================================================
-# set top source dir relative to this directory
-# include make vars boilerplate
-#
-
-TOPSRCDIR = ../../../..
-include $(TOPSRCDIR)/Makefile.vars
-
-#----------------------------------------------------------------------
-# Set variables for this directory
-
-CXXOBJECTS = $(patsubst %.cpp,%.o,$(wildcard *.cpp))
-CMMOBJECTS = objc-dummy.o
-
-OBJECTS = $(CMMOBJECTS) $(CXXOBJECTS)
-
-PROGRAMS = \
- qpoint-test \
- qsize-test \
- qrect-test \
- qcstring-test \
- qarray-test \
- qmap-test \
- qvaluelist-test \
- qstringlist-test \
- qlist-test \
- qvector-test \
- qdict-test \
- qptrdict-test \
- qstack-test \
- qregexp-test \
- qchar-test \
- qstring-test \
- qdate-test \
- qtime-test \
- qdatetime-test \
- qsortedlist-test \
- $(NULL)
-
-CLEAN_FILES = *.o \
- $(PROGRAMS) \
- $(NULL)
-
-#----------------------------------------------------------------------
-# Set flags for this directory
-
-CXXFLAGS = $(BASECXXFLAGS) \
- -Wall \
- -I$(TOPSRCDIR) \
- -I../../qt \
- -I../.. \
- -I. \
- $(NULL)
-
-CMMFLAGS = $(BASECMMFLAGS)
-
-LIBS = objc-dummy.o \
- -framework Cocoa \
- -F/symroots \
- -framework WebKit \
- -lwebcore \
- $(NULL)
-
-LDFLAGS = $(BASELDFLAGS) \
- -L$(TOPSRCDIR)/lib \
- $(NULL)
-
-DEPFLAGS = $(CXXFLAGS)
-
-#----------------------------------------------------------------------
-# Set targets for this directory
-
-all: $(OBJECTS) $(PROGRAMS)
-
-qpoint-test: qpoint-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qsize-test: qsize-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qrect-test: qrect-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qcstring-test: qcstring-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qarray-test: qarray-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qmap-test: qmap-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qvaluelist-test: qvaluelist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstringlist-test: qstringlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qlist-test: qlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qvector-test: qvector-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdict-test: qdict-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qptrdict-test: qptrdict-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstack-test: qstack-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qregexp-test: qregexp-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qchar-test: qchar-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qstring-test: qstring-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdate-test: qdate-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qtime-test: qtime-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qdatetime-test: qdatetime-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-qsortedlist-test: qsortedlist-test.o
- $(CXX) -o $@ $< $(LDFLAGS) $(LIBS)
-
-
-depend:
-
-#----------------------------------------------------------------------
-# include make rules boilerplate
-
-include $(TOPSRCDIR)/Makefile.rules
-
-#======================================================================
-# end
-#======================================================================
diff --git a/WebCore/src/kwq/tests/qt/objc-dummy.mm b/WebCore/src/kwq/tests/qt/objc-dummy.mm
deleted file mode 100644
index 531a44a..0000000
--- a/WebCore/src/kwq/tests/qt/objc-dummy.mm
+++ /dev/null
@@ -1,6 +0,0 @@
-#import <Cocoa/Cocoa.h>
-
-void objective_c_hack()
-{
- NSObject *o = [NSObject alloc];
-}
diff --git a/WebCore/src/kwq/tests/qt/qarray-test.chk b/WebCore/src/kwq/tests/qt/qarray-test.chk
deleted file mode 100644
index 8c4cdbb..0000000
Binary files a/WebCore/src/kwq/tests/qt/qarray-test.chk and /dev/null differ
diff --git a/WebCore/src/kwq/tests/qt/qarray-test.cpp b/WebCore/src/kwq/tests/qt/qarray-test.cpp
deleted file mode 100644
index fd348f2..0000000
--- a/WebCore/src/kwq/tests/qt/qarray-test.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-#include <iostream>
-
-#include <qarray.h>
-
-int main() {
-
- QArray<char> a0 = QArray<char>(10);
- QArray<char> a1 = QArray<char>(10);
- QArray<char> a2 = QArray<char>(10);
- QArray<char> a3;
- char *ch;
-
- char c = 'a';
- for (int i = 0; i < 10; i++) {
- a0[i] = c + i;
- }
-
- a1 = a0;
- cout << "a0: " << a0 << endl;
- cout << "a1: " << a1 << endl;
- cout << "a2: " << a2 << endl;
- cout << "a3: " << a3 << endl;
-
- cout << "a0 == a1: " << (a0 == a1) << endl;
- cout << "a0 == a2: " << (a0 == a2) << endl;
- cout << "a0 != a1: " << (a0 != a1) << endl;
- cout << "a0 != a2: " << (a0 != a2) << endl;
-
- cout << "a2 is null: " << (a2.isNull()) << endl;
- cout << "a2 is empty: " << (a2.isEmpty()) << endl;
-
- cout << "a3 is null: " << (a3.isNull()) << endl;
- cout << "a3 is empty: " << (a3.isEmpty()) << endl;
-
- cout << "a0 count: " << (a0.count()) << endl;
-
- ch = a0.data();
- ch[10] = '\0';
- cout << "a0 data: " << ch << endl;
-
- a0.resize(15);
- for (int i = 10; i < 15; i++) {
- a0[i] = c + i;
- }
- cout << "a0 resize: " << a0 << endl;
-
- QArray<char> a4 = QArray<char>(10);
- a4.fill('c');
- cout << "a4 fill: " << a4 << endl;
-
- //cout << "a0 find 'j': " << a0.find('j') << endl;
-
- //cout << "a0 nrefs: " << a0.nrefs() << endl;
-
- //QArray<char> a5 = QArray<char>(10);
- //a5 = a0.copy();
- //cout << "a5 copy a0: " << a5 << endl;
-
- //QArray<char> a6 = QArray<char>(10);
- //a6 = a0.assign(a0); // hmm. Am I doing this right?
- //cout << "a6 assign a0: " << a6 << endl;
-
- //QArray<char> a7 = QArray<char>(10);
- //for (int i = 9; i >= 0; i--) {
- // a7[i] = 'j' - i;
- //}
-
- //cout << "a7 unsorted: " << a7 << endl;
- //a7.sort();
- //cout << "a7 sorted: " << a7 << endl;
-
-
- char ch2;
- ch2 = a0.at(4);
- cout << "a0 at 4: " << ch2 << endl;
-
- char *ch3;
- ch3 = a4.data();
- a0 = a0.duplicate(ch3, 10);
- cout << "a0 duplicate from a4: " << a0 << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qchar-test.chk b/WebCore/src/kwq/tests/qt/qchar-test.chk
deleted file mode 100644
index 0adb32a..0000000
Binary files a/WebCore/src/kwq/tests/qt/qchar-test.chk and /dev/null differ
diff --git a/WebCore/src/kwq/tests/qt/qchar-test.cpp b/WebCore/src/kwq/tests/qt/qchar-test.cpp
deleted file mode 100644
index 877aed1..0000000
--- a/WebCore/src/kwq/tests/qt/qchar-test.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-
-int main() {
- char c_char = 'a';
- uchar c_uchar = 'b';
- ushort c_ushort = 'D';
- short c_short = ' ';
- uint c_uint = '3';
- int c_int = '-';
-
- QChar q0 = QChar();
- QChar q1 = QChar(c_char);
- QChar q2 = QChar(c_uchar);
- //QChar q3 = QChar(c_uchar, 0);
- QChar q4 = QChar(q1);
- QChar q5 = QChar(c_ushort);
- QChar q6 = QChar(c_short);
- QChar q7 = QChar(c_uint);
- QChar q8 = QChar(c_int);
-
- cout << q1 << endl;
- cout << q2 << endl;
- //cout << q3 << endl;
- cout << q4 << endl;
- cout << q5 << endl;
- cout << q6 << endl;
- cout << q7 << endl;
- cout << q8 << endl;
-
- cout << q5.latin1() << endl;
- cout << q1.unicode() << endl;
- cout << q2.cell() << endl;
- cout << q2.row() << endl;
- cout << q2.operator char() << endl;
- //cout << q7.isNumber() << endl;
- //cout << q8.isNumber() << endl;
- cout << q8.isPunct() << endl;
- cout << q7.isPunct() << endl;
- cout << q6.isSpace() << endl;
- cout << q5.isSpace() << endl;
- cout << q0.isNull() << endl;
- cout << q1.isNull() << endl;
- //cout << q7.isNumber() << endl;
- //cout << q8.isNumber() << endl;
- cout << q7.isDigit() << endl;
- cout << q8.isDigit() << endl;
- cout << q7.isLetterOrNumber() << endl;
- cout << q8.isLetterOrNumber() << endl;
- //cout << q3.isPrint() << endl;
- //cout << q3.isMark() << endl;
- cout << q5.lower() << endl;
- cout << q1.upper() << endl;
-
- cout << (q2 <= c_char) << endl;
- cout << (q2 <= q1) << endl;
- cout << (c_char <= q2) << endl;
- cout << (q2 >= q1) << endl;
- cout << (q2 >= c_char) << endl;
- cout << (c_char >= q2) << endl;
- cout << (q2 != c_char) << endl;
- cout << (q2 != q1) << endl;
- cout << (c_char != q2) << endl;
- cout << (q2 < c_char) << endl;
- cout << (q2 < q1) << endl;
- cout << (c_char < q2) << endl;
- cout << (q2 > c_char) << endl;
- cout << (q2 > q1) << endl;
- cout << (c_char > q2) << endl;
- cout << (q2 == c_char) << endl;
- cout << (q2 == q1) << endl;
- cout << (c_char == q2) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qcstring-test.chk b/WebCore/src/kwq/tests/qt/qcstring-test.chk
deleted file mode 100644
index 1193931..0000000
--- a/WebCore/src/kwq/tests/qt/qcstring-test.chk
+++ /dev/null
@@ -1,28 +0,0 @@
-s0:
-s1:
-s2: this is a string
-s3: this is anothe
-s4: jazz hype loves two mugs for dire quixotic knobs
-s5:
-s6:
-s6 isEmpty: 1
-s4 isEmpty: 0
-s4 isNull: 0
-s0 isNull: 1
-s6 isNull: 0
-s7 lower: this was a sentence in all uppercase
-s8: I'm going to do a find on this sentence
-s8 find "this": 26
-s8 contains "o": 4
-s9: I'm going to get the length of this string
-s9 length: 42
-s10: I'm going to truncate this string to 15 characters
-s10 truncate 15: I'm going to tr
-s11: I'm going get 15 characters out of this string starting at position 10
-s11 mid 10-25: to tr
-s12: Have a good
-s12 +=: Have a good night
-s12 +=: Have a good night!
-s13: This is a sentence
-ch1: This is a sentence
-ch2: This is another sentence
diff --git a/WebCore/src/kwq/tests/qt/qcstring-test.cpp b/WebCore/src/kwq/tests/qt/qcstring-test.cpp
deleted file mode 100644
index 8ae25f7..0000000
--- a/WebCore/src/kwq/tests/qt/qcstring-test.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-#include <iostream>
-
-#include <qcstring.h>
-
-int main() {
-
- QCString s0 = QCString();
- QCString s1 = QCString(10);
- QCString s2 = QCString("this is a string");
- QCString s3 = QCString("this is another string", 15);
- QCString s4 = "jazz hype loves two mugs for dire quixotic knobs";
- QCString s5 = s1;
- QCString s6 = "";
-
- cout << "s0: " << s6 << endl;
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3: " << s3 << endl;
- cout << "s4: " << s4 << endl;
- cout << "s5: " << s5 << endl;
- cout << "s6: " << s6 << endl;
-
- cout << "s6 isEmpty: " << s6.isEmpty() << endl;
- cout << "s4 isEmpty: " << s4.isEmpty() << endl;
-
- cout << "s4 isNull: " << s4.isNull() << endl;
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s6 isNull: " << s6.isNull() << endl;
-
- QCString s7 = "THIS WAS A SENTENCE IN ALL UPPERCASE";
- cout << "s7 lower: " << s7.lower() << endl;
-
- QCString s8 = "I'm going to do a find on this sentence";
- cout << "s8: " << s8 << endl;
- cout << "s8 find \"this\": " << s8.find("this", 0, TRUE) << endl;
- cout << "s8 contains \"o\": " << s8.contains('o', TRUE) << endl;
-
- QCString s9 = "I'm going to get the length of this string";
- cout << "s9: " << s9 << endl;
- cout << "s9 length: " << s9.length() << endl;
-
- QCString s10 = "I'm going to truncate this string to 15 characters";
- cout << "s10: " << s10 << endl;
- s10.truncate(15);
- cout << "s10 truncate 15: " << s10 << endl;
-
- QCString s11 = "I'm going get 15 characters out of this string starting at position 10";
- cout << "s11: " << s11 << endl;
- cout << "s11 mid 10-25: " << s10.mid(10, 15) << endl; // heh? Seems to return 10-15 instead of 10-25
-
- QCString s12 = "Have a good ";
- cout << "s12: " << s12 << endl;
- s12 += "night";
- cout << "s12 +=: " << s12 << endl;
- s12 += '!';
- cout << "s12 +=: " << s12 << endl;
-
- QCString s13 = "This is a sentence";
- char ch1[20], ch2[20];
- strcpy(ch1, "This is a sentence");
- strcpy(ch2, "This is another sentence");
- cout << "s13: " << s13 << endl;
- cout << "ch1: " << ch1 << endl;
- cout << "ch2: " << ch2 << endl;
-#if 0
- cout << "ch1 == s13: " << (ch1 == s13) << endl;
- cout << "s13 == ch1: " << (s13 == ch1) << endl;
- cout << "ch2 == s13: " << (ch2 == s13) << endl;
- cout << "s13 == ch2: " << (s13 == ch2) << endl;
- cout << "ch1 != s13: " << (ch1 != s13) << endl;
- cout << "s13 != ch1: " << (s13 != ch1) << endl;
- cout << "ch2 != s13: " << (ch2 != s13) << endl;
- cout << "s13 != ch2: " << (s13 != ch2) << endl;
-#endif
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qdate-test.chk b/WebCore/src/kwq/tests/qt/qdate-test.chk
deleted file mode 100644
index e9c79f1..0000000
--- a/WebCore/src/kwq/tests/qt/qdate-test.chk
+++ /dev/null
@@ -1,7 +0,0 @@
-d1: QDate: [yy/mm/dd: 1999/12/31]
-d2: QDate: [yy/mm/dd: 2001/10/23]
-d0 = d1: QDate: [yy/mm/dd: 1999/12/31]
-d0.year(): 1999
-d0.month(): 12
-d0.day(): 31
-d1.daysTo(d2): 662
diff --git a/WebCore/src/kwq/tests/qt/qdate-test.cpp b/WebCore/src/kwq/tests/qt/qdate-test.cpp
deleted file mode 100644
index 651e50b..0000000
--- a/WebCore/src/kwq/tests/qt/qdate-test.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QDate d0;
- QDate d1(1999, 12, 31);
- QDate d2(2001, 10, 23);
-
- cout << "d1: " << d1 << endl;
- cout << "d2: " << d2 << endl;
-
- d0 = d1;
- cout << "d0 = d1: " << d0 << endl;
-
- cout << "d0.year(): " << d0.year() << endl;
- cout << "d0.month(): " << d0.month() << endl;
- cout << "d0.day(): " << d0.day() << endl;
- cout << "d1.daysTo(d2): " << d1.daysTo(d2) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qdatetime-test.chk b/WebCore/src/kwq/tests/qt/qdatetime-test.chk
deleted file mode 100644
index 783834e..0000000
--- a/WebCore/src/kwq/tests/qt/qdatetime-test.chk
+++ /dev/null
@@ -1,6 +0,0 @@
-dt2: QDateTime: [yy/mm/dd hh:mm:ss:ms = 1999/12/31 23:59:0:0]
-dt3: QDateTime: [yy/mm/dd hh:mm:ss:ms = 2000/12/31 23:59:0:0]
-dt4: QDateTime: [yy/mm/dd hh:mm:ss:ms = 2000/12/31 23:59:0:0]
-dt0=dt2: QDateTime: [yy/mm/dd hh:mm:ss:ms = 1999/12/31 23:59:0:0]
-dt2 secsTo dt3: 31622400
-dt2 time: QTime: [hh:mm:ss:ms = 23:59:0:0]
diff --git a/WebCore/src/kwq/tests/qt/qdatetime-test.cpp b/WebCore/src/kwq/tests/qt/qdatetime-test.cpp
deleted file mode 100644
index beb11f9..0000000
--- a/WebCore/src/kwq/tests/qt/qdatetime-test.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QDate d1(1999, 12, 31);
- QDate d2(2000, 12, 31);
-
- QTime t1(23, 59);
- QTime t2(23, 59);
-
- QDateTime dt0;
- QDateTime dt2(d1, t1);
- QDateTime dt3(d2, t2);
- QDateTime dt4(dt3);
-
- cout << "dt2: " << dt2 << endl;
- cout << "dt3: " << dt3 << endl;
- cout << "dt4: " << dt4 << endl;
-
- dt0 = dt2;
- cout << "dt0=dt2: " << dt0 << endl;
-
- cout << "dt2 secsTo dt3: " << dt2.secsTo(dt3) << endl;
- cout << "dt2 time: " << dt2.time() << endl;
-
-
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qdict-test.chk b/WebCore/src/kwq/tests/qt/qdict-test.chk
deleted file mode 100644
index 3ac6e01..0000000
--- a/WebCore/src/kwq/tests/qt/qdict-test.chk
+++ /dev/null
@@ -1,5 +0,0 @@
-item keyed to 'one': 1
-remove item keyed to 'three': QDict: [size: 4; items: (two,2), (five,5), (four,4), (one,1)]
-d0 is empty: 1
-d1 is empty: 0
-d1 count: 4
diff --git a/WebCore/src/kwq/tests/qt/qdict-test.cpp b/WebCore/src/kwq/tests/qt/qdict-test.cpp
deleted file mode 100644
index 5358d0e..0000000
--- a/WebCore/src/kwq/tests/qt/qdict-test.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qdict.h>
-
-int main() {
-
- QDict<int> d0;
- QDict<int> d1;
- QDict<int> d2;
-
- int v1 = 1;
- int v2 = 2;
- int v3 = 3;
- int v4 = 4;
- int v5 = 5;
-
- d1.insert("one", &v1);
- d1.insert("two", &v2);
- d1.insert("three", &v3);
- d1.insert("four", &v4);
- d1.insert("five", &v5);
-
- //cout << d1 << endl;
-
- cout << "item keyed to 'one': " << *(d1.find("one")) << endl;
-
- d1.remove("three");
- cout << "remove item keyed to 'three': " << d1 << endl;
-
- cout << "d0 is empty: " << d0.isEmpty() << endl;
- cout << "d1 is empty: " << d1.isEmpty() << endl;
-
- cout << "d1 count: " << d1.count() << endl;
-
- d2 = d1;
- // cout << "d2 = d1: " << d2 << endl;
-
- d1.clear();
- // cout << "d1 cleared: " << d1 << endl;
-
-
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qlist-test.chk b/WebCore/src/kwq/tests/qt/qlist-test.chk
deleted file mode 100644
index c97616e..0000000
--- a/WebCore/src/kwq/tests/qt/qlist-test.chk
+++ /dev/null
@@ -1,30 +0,0 @@
-p0: QList: [size: 0; items: ]
-p1: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 1
-p1 isEmpty: 0
-p0 count: 0
-p1 count: 7
-p1 find index of 2: 2
-p1 removeFirst: QList: [size: 6; items: 1, 2, 3, 4, 5, 6]
-p1 removeLast: QList: [size: 5; items: 1, 2, 3, 4, 5]
-p1 take: 5 QList: [size: 4; items: 1, 2, 3, 4]
-p1 containsRef 3: 1
-p1 containsRef 0: 0
-p2 unsorted: QList: [size: 7; items: 6, 5, 4, 3, 2, 1, 0]
-p2 sorted: QList: [size: 7; items: 6, 0, 1, 2, 3, 5, 4]
-p1 at 2: 3
-p1 insert 7 in 1: QList: [size: 8; items: 1, 7, 8, 9, 10, 2, 3, 4]
-p1 remove: QList: [size: 7; items: 1, 7, 8, 9, 2, 3, 4]
-p1 remove 7: QList: [size: 6; items: 1, 8, 9, 2, 3, 4]
-p1 removeRef 8: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p2 getLast: 4
-p2 current: 4
-p2 first: 6
-p2 last: 4
-p2 prev: 5
-p2 next: 4
-p2 prepend 9: QList: [size: 8; items: 9, 6, 0, 1, 2, 3, 5, 4]
-p1: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p1 clear (autoDelete off): QList: [size: 0; items: ]
-p1 clear (autoDelete on): QList: [size: 0; items: ]
-p3 = p2: QList: [size: 8; items: 9, 6, 0, 1, 2, 3, 5, 4]
diff --git a/WebCore/src/kwq/tests/qt/qlist-test.cpp b/WebCore/src/kwq/tests/qt/qlist-test.cpp
deleted file mode 100644
index abe009b..0000000
--- a/WebCore/src/kwq/tests/qt/qlist-test.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-#include <iostream>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <qlist.h>
-
-int main() {
-
- QList<int> p0;
- QList<int> p1;
- QList<int> p2;
- QList<int> p3;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int p = 7;
- int q = 8;
- int r = 9;
- int s = 10;
-
- p1.append(&i);
- p1.append(&j);
- p1.append(&k);
- p1.append(&l);
- p1.append(&m);
- p1.append(&n);
- p1.append(&o);
-
- cout << "p0: " << p0 << endl;
- cout << "p1: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- cout << "p1 isEmpty: " << p1.isEmpty() << endl;
-
- cout << "p0 count: " << p0.count() << endl;
- cout << "p1 count: " << p1.count() << endl;
-
- cout << "p1 find index of 2: " << p1.find(&k) << endl;
-
- p1.removeFirst();
- cout << "p1 removeFirst: " << p1 << endl;
-
- p1.removeLast();
- cout << "p1 removeLast: " << p1 << endl;
-
- cout << "p1 take: " << *(p1.take()) << " " << p1 << endl;
-
- cout << "p1 containsRef 3: " << p1.containsRef(&l) << endl;
- cout << "p1 containsRef 0: " << p1.containsRef(&i) << endl;
-
- p2.append(&o);
- p2.append(&n);
- p2.append(&m);
- p2.append(&l);
- p2.append(&k);
- p2.append(&j);
- p2.append(&i);
- cout << "p2 unsorted: " << p2 << endl;
- p2.sort();
- cout << "p2 sorted: " << p2 << endl; //heh?
-
- int *n1;
- n1 = p1.at(2);
- cout << "p1 at 2: "<< *n1 << endl;
-
- p1.insert(1, &p);
- p1.insert(2, &q);
- p1.insert(3, &r);
- p1.insert(4, &s);
- cout << "p1 insert 7 in 1: " << p1 << endl;
-
- p1.remove();
- cout << "p1 remove: " << p1 << endl;
-
- p1.remove(&p);
- cout << "p1 remove 7: " << p1 << endl;
-
- p1.removeRef(&q);
- cout << "p1 removeRef 8: " << p1 << endl;
-
- int *n2;
- n2 = p2.getLast();
- cout << "p2 getLast: "<< *n2 << endl;
- n2 = p2.current();
- cout << "p2 current: "<< *n2 << endl;
- n2 = p2.first();
- cout << "p2 first: "<< *n2 << endl;
- n2 = p2.last();
- cout << "p2 last: "<< *n2 << endl;
- n2 = p2.prev();
- cout << "p2 prev: "<< *n2 << endl;
- n2 = p2.next();
- cout << "p2 next: "<< *n2 << endl;
-
- p2.prepend(&r);
- cout << "p2 prepend 9: "<< p2 << endl;
-
- cout << "p1: "<< p1 << endl;
- p1.setAutoDelete(FALSE);
- p1.clear();
- cout << "p1 clear (autoDelete off): "<< p1 << endl; // heh?
- p1.setAutoDelete(TRUE);
- p1.clear();
- cout << "p1 clear (autoDelete on): "<< p1 << endl;
-
- p3 = p2;
- cout << "p3 = p2: "<< p3 << endl;
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qmap-test.chk b/WebCore/src/kwq/tests/qt/qmap-test.chk
deleted file mode 100644
index fb99872..0000000
--- a/WebCore/src/kwq/tests/qt/qmap-test.chk
+++ /dev/null
@@ -1,9 +0,0 @@
-d1: QMap: [size: 5; items: (1,10), (2,20), (3,30), (4,40), (5,50)]
-d1 count: 5
-d1 find 1: 10
-d1 remove 3: QMap: [size: 4; items: (1,10), (2,20), (4,40), (5,50)]
-d0 isEmpty: 1
-d1 isEmpty: 0
-d2 = d1, d2: QMap: [size: 4; items: (1,10), (2,20), (4,40), (5,50)]
-d2[1]: 10
-d1 clear: QMap: [size: 0; items: ]
diff --git a/WebCore/src/kwq/tests/qt/qmap-test.cpp b/WebCore/src/kwq/tests/qt/qmap-test.cpp
deleted file mode 100644
index 2127153..0000000
--- a/WebCore/src/kwq/tests/qt/qmap-test.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qmap.h>
-
-int main() {
-
- QMap<int,int> d0;
- QMap<int,int> d1;
- QMap<int,int> d2;
-
- d1.insert(1, 10);
- d1.insert(2, 20);
- d1.insert(3, 30);
- d1.insert(4, 40);
- d1.insert(5, 50);
-
- cout << "d1: " << d1 << endl;
- cout << "d1 count: " << d1.count() << endl;
-
- cout << "d1 find 1: " << *(d1.find(1)) << endl;
-
- d1.remove(3);
- cout << "d1 remove 3: " << d1 << endl;
-
- cout << "d0 isEmpty: " << d0.isEmpty() << endl;
- cout << "d1 isEmpty: " << d1.isEmpty() << endl;
-
- d2 = d1;
- cout << "d2 = d1, d2: " << d2 << endl;
-
- cout << "d2[1]: " << d2[1] << endl;
-
- d1.clear();
- cout << "d1 clear: " << d1 << endl;
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qpoint-test.chk b/WebCore/src/kwq/tests/qt/qpoint-test.chk
deleted file mode 100644
index ea28460..0000000
--- a/WebCore/src/kwq/tests/qt/qpoint-test.chk
+++ /dev/null
@@ -1,29 +0,0 @@
-p1: QPoint: [x: 1; h: 1]
-p2: QPoint: [x: 3; h: 3]
-p3 = p1 + p2: QPoint: [x: 4; h: 4]
-p4 = p3: QPoint: [x: 4; h: 4]
-p5 = p3: QPoint: [x: 4; h: 4]
-p6 = p2 - p1: QPoint: [x: 2; h: 2]
-p5 setX(10): QPoint: [x: 10; h: 4]
-p5 setY(10): QPoint: [x: 10; h: 10]
-p5 += p1: QPoint: [x: 11; h: 11]
-p5 -= p2: QPoint: [x: 8; h: 8]
-p5 *= 3: QPoint: [x: 24; h: 24]
-p5 *= 3.333: QPoint: [x: 79; h: 79]
-p5 /= 2: QPoint: [x: 39; h: 39]
-p5 /= 2.222: QPoint: [x: 17; h: 17]
-p5 manhattanLength: 34
-p5 x: 17
-p5 y: 17
-p0 isNull: 1
-p1 isNull: 0
-p1 == p4: 0
-p3 == p4: 1
-p1 != p4: 1
-p3 != p4: 0
-p5 * 2: QPoint: [x: 34; h: 34]
-3 * p5: QPoint: [x: 51; h: 51]
-p5 / 2.222: QPoint: [x: 7; h: 7]
-p5 / 3: QPoint: [x: 5; h: 5]
-p5 * 2.222: QPoint: [x: 37; h: 37]
-3.333 * p5: QPoint: [x: 56; h: 56]
diff --git a/WebCore/src/kwq/tests/qt/qpoint-test.cpp b/WebCore/src/kwq/tests/qt/qpoint-test.cpp
deleted file mode 100644
index 2f6535c..0000000
--- a/WebCore/src/kwq/tests/qt/qpoint-test.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qpoint.h>
-
-int main() {
-
- QPoint p0;
- QPoint p1 = QPoint(1,1);
- QPoint p2 = QPoint(3,3);
- QPoint p3 = p1 + p2;
- QPoint p4 = p3;
- QPoint p5 = p3;
- QPoint p6 = p2 - p1;
-
- cout << "p1: " << p1 << endl;
- cout << "p2: " << p2 << endl;
- cout << "p3 = p1 + p2: " << p3 << endl;
- cout << "p4 = p3: " << p4 << endl;
- cout << "p5 = p3: " << p5 << endl;
- cout << "p6 = p2 - p1: " << p6 << endl;
-
- p5.setX(10);
- cout << "p5 setX(10): " << p5 << endl;
-
- p5.setY(10);
- cout << "p5 setY(10): " << p5 << endl;
-
- p5 += p1;
- cout << "p5 += p1: " << p5 << endl;
-
- p5 -= p2;
- cout << "p5 -= p2: " << p5 << endl;
-
- p5 *= 3;
- cout << "p5 *= 3: " << p5 << endl;
- p5 *= 3.333;
- cout << "p5 *= 3.333: " << p5 << endl;
-
- p5 /= 2;
- cout << "p5 /= 2: " << p5 << endl;
- p5 /= 2.222;
- cout << "p5 /= 2.222: " << p5 << endl;
-
- cout << "p5 manhattanLength: " << p5.manhattanLength() << endl;
-
- cout << "p5 x: " << p5.x() << endl;
- cout << "p5 y: " << p5.y() << endl;
-
-
- cout << "p0 isNull: " << p0.isNull() << endl;
- cout << "p1 isNull: " << p1.isNull() << endl;
-
- cout << "p1 == p4: " << (p1 == p4) << endl;
- cout << "p3 == p4: " << (p3 == p4) << endl;
-
- cout << "p1 != p4: " << (p1 != p4) << endl;
- cout << "p3 != p4: " << (p3 != p4) << endl;
-
- cout << "p5 * 2: " << (p5 * 2) << endl;
- cout << "3 * p5: " << (3 * p5) << endl;
- cout << "p5 / 2.222: " << (p5 / 2.222) << endl;
- cout << "p5 / 3: " << (p5 / 3) << endl;
- cout << "p5 * 2.222: " << (p5 * 2.222) << endl;
- cout << "3.333 * p5: " << (3.333 * p5) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qptrdict-test.chk b/WebCore/src/kwq/tests/qt/qptrdict-test.chk
deleted file mode 100644
index 79b7b9a..0000000
--- a/WebCore/src/kwq/tests/qt/qptrdict-test.chk
+++ /dev/null
@@ -1,10 +0,0 @@
-d1 find 1: 1
-d1 find 2: 2
-d1 find 3: 3
-d1 find 4: 4
-d1 find 5: 5
-d1 take 4: 4
-d1 find 2: 0x0
-d0 is empty: 1
-d1 is empty: 0
-d1 count: 3
diff --git a/WebCore/src/kwq/tests/qt/qptrdict-test.cpp b/WebCore/src/kwq/tests/qt/qptrdict-test.cpp
deleted file mode 100644
index 5329a08..0000000
--- a/WebCore/src/kwq/tests/qt/qptrdict-test.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <iostream>
-
-#include <qstring.h>
-#include <qptrdict.h>
-
-int main() {
-
- QPtrDict<int> d0;
- QPtrDict<int> d1;
- QPtrDict<int> d2;
-
- int v1 = 1;
- int v2 = 2;
- int v3 = 3;
- int v4 = 4;
- int v5 = 5;
-
- d1.insert(&v1, &v1);
- d1.insert(&v2, &v2);
- d1.insert(&v3, &v3);
- d1.insert(&v4, &v4);
- d1.insert(&v5, &v5);
-
-
- //cout << "d1: " << d1 << endl;
-
- cout << "d1 find 1: " << *(d1.find(&v1)) << endl;
- cout << "d1 find 2: " << *(d1.find(&v2)) << endl;
- cout << "d1 find 3: " << *(d1.find(&v3)) << endl;
- cout << "d1 find 4: " << *(d1.find(&v4)) << endl;
- cout << "d1 find 5: " << *(d1.find(&v5)) << endl;
-
- int *n2;
- n2 = d1.take(&v4);
- cout << "d1 take 4: " << *n2 << endl;
-
- d1.remove(&v2);
- //cout << "d1 remove 2: " << d1 << endl;
- cout << "d1 find 2: " << d1.find(&v2) << endl;
-
- cout << "d0 is empty: " << d0.isEmpty() << endl;
- cout << "d1 is empty: " << d1.isEmpty() << endl;
-
- cout << "d1 count: " << d1.count() << endl;
-
- d2 = d1;
- //cout << "d2 = d1: " << d2 << endl;
-
- d1.clear();
- //cout << "d1 clear: " << d1 << endl;
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qrect-test.chk b/WebCore/src/kwq/tests/qt/qrect-test.chk
deleted file mode 100644
index b73a306..0000000
--- a/WebCore/src/kwq/tests/qt/qrect-test.chk
+++ /dev/null
@@ -1,57 +0,0 @@
-r1: QRect: [left: 0; top: 0; right: 99; bottom: 99]
-r2: QRect: [left: 100; top: 100; right: 299; bottom: 299]
-r3 = r1.unite(r2): QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r4 = r3: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r5 = r3: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r6: QRect: [left: 100; top: 100; right: 99; bottom: 99]
-r5 setLeft(10): QRect: [left: 10; top: 0; right: 299; bottom: 299]
-r5 setTop(10): QRect: [left: 10; top: 10; right: 299; bottom: 299]
-r5 setRight(20): QRect: [left: 10; top: 10; right: 20; bottom: 299]
-r5 setBottom(20): QRect: [left: 10; top: 10; right: 20; bottom: 20]
-r5 left: 10
-r5 top: 10
-r5 right: 20
-r5 bottom: 20
-r5 width: 11
-r5 height: 11
-r5 size: QSize: [w: 11; h: 11]
-r0 isNull: 0
-r1 isNull: 0
-r6 isNull: 1
-r0 isValid: 1
-r1 isValid: 1
-r6 isValid: 0
-r0 isEmpty: 0
-r1 isEmpty: 0
-r6 isEmpty: 1
-r6 normalize: QRect: [left: 99; top: 99; right: 100; bottom: 100]
-r5 setX(10): QRect: [left: 5; top: 10; right: 20; bottom: 20]
-r5 setY(10): QRect: [left: 5; top: 5; right: 20; bottom: 20]
-r5 topLeft: QPoint: [x: 5; h: 5]
-r5 bottomRight: QPoint: [x: 20; h: 20]
-r5 topRight: QPoint: [x: 20; h: 5]
-r5 bottomLeft: QPoint: [x: 5; h: 20]
-r5 center: QPoint: [x: 12; h: 12]
-r5 rect: x=5 y=5 w=16 h=16
-r5 coords: xp1=5 yp1=5 xp2=20 yp2=20
-r5 setSize 12,12: QRect: [left: 5; top: 5; right: 16; bottom: 16]
-r5 setRect 4,4,18,18: QRect: [left: 4; top: 4; right: 21; bottom: 21]
-r5 setCoords 5,5,20,20: QRect: [left: 5; top: 5; right: 20; bottom: 20]
-r5 moveTopLeft 4,4: QRect: [left: 4; top: 4; right: 19; bottom: 19]
-r5 moveBottomRight 22,22: QRect: [left: 7; top: 7; right: 22; bottom: 22]
-r5 moveTopRight 22,4: QRect: [left: 7; top: 4; right: 22; bottom: 19]
-r5 moveCenter 15,10: QRect: [left: 8; top: 3; right: 23; bottom: 18]
-r5 moveBy 5,5: QRect: [left: 13; top: 8; right: 28; bottom: 23]
-r5 contains 15,10: 1
-r5 contains 30,20: 0
-r5 contains 15,10: 1
-r5 contains 30,20: 0
-r5 contains 14,9,5,5: 1
-r5 contains 14,9,20,20: 0
-r5 & (14,9,5,5): QRect: [left: 14; top: 9; right: 18; bottom: 13]
-r1 |= r2: QRect: [left: 0; top: 0; right: 299; bottom: 299]
-r5 &= (14,9,5,5): QRect: [left: 14; top: 9; right: 18; bottom: 13]
-r1 == r4: 1
-r3 == r4: 1
-r1 != r4: 0
-r3 != r4: 0
diff --git a/WebCore/src/kwq/tests/qt/qrect-test.cpp b/WebCore/src/kwq/tests/qt/qrect-test.cpp
deleted file mode 100644
index ebb8b96..0000000
--- a/WebCore/src/kwq/tests/qt/qrect-test.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qrect.h>
-
-int main() {
-
- QRect r0;
- QRect r1 = QRect(0,0,100,100);
- QRect r2 = QRect(100,100,200,200);
- QRect r3 = r1.unite(r2);
- QRect r4 = r3;
- QRect r5 = r3;
- QRect r6 = QRect(100,100,0,0); //purposely an invalid rect
- QRect r7;
- int x,y,w,h, xp1, xp2, yp1, yp2;
-
- cout << "r1: " << r1 << endl;
- cout << "r2: " << r2 << endl;
- cout << "r3 = r1.unite(r2): " << r3 << endl;
- cout << "r4 = r3: " << r4 << endl;
- cout << "r5 = r3: " << r5 << endl;
- cout << "r6: " << r6 << endl;
-
- r5.setLeft(10);
- cout << "r5 setLeft(10): " << r5 << endl;
- r5.setTop(10);
- cout << "r5 setTop(10): " << r5 << endl;
- r5.setRight(20);
- cout << "r5 setRight(20): " << r5 << endl;
- r5.setBottom(20);
- cout << "r5 setBottom(20): " << r5 << endl;
-
- cout << "r5 left: " << r5.left() << endl;
- cout << "r5 top: " << r5.top() << endl;
- cout << "r5 right: " << r5.right() << endl;
- cout << "r5 bottom: " << r5.bottom() << endl;
- cout << "r5 width: " << r5.width() << endl;
- cout << "r5 height: " << r5.height() << endl;
- cout << "r5 size: " << r5.size() << endl;
-
- cout << "r0 isNull: " << r0.isNull() << endl;
- cout << "r1 isNull: " << r1.isNull() << endl;
- cout << "r6 isNull: " << r6.isNull() << endl;
- cout << "r0 isValid: " << r0.isValid() << endl;
- cout << "r1 isValid: " << r1.isValid() << endl;
- cout << "r6 isValid: " << r6.isValid() << endl;
- cout << "r0 isEmpty: " << r0.isEmpty() << endl;
- cout << "r1 isEmpty: " << r1.isEmpty() << endl;
- cout << "r6 isEmpty: " << r6.isEmpty() << endl;
-
- cout << "r6 normalize: " << r6.normalize() << endl;
-
- r5.setX(5);
- cout << "r5 setX(10): " << r5 << endl;
- r5.setY(5);
- cout << "r5 setY(10): " << r5 << endl;
-
- cout << "r5 topLeft: " << r5.topLeft() << endl;
- cout << "r5 bottomRight: " << r5.bottomRight() << endl;
- cout << "r5 topRight: " << r5.topRight() << endl;
- cout << "r5 bottomLeft: " << r5.bottomLeft() << endl;
- cout << "r5 center: " << r5.center() << endl;
- r5.rect(&x,&y,&w,&h);
- cout << "r5 rect: " << "x=" << x << " y=" << y << " w=" << w << " h=" << h << endl;
- r5.coords(&xp1,&yp1,&xp2,&yp2);
- cout << "r5 coords: " << "xp1=" << xp1 << " yp1=" << yp1 << " xp2=" << xp2 << " yp2=" << yp2 << endl;
-
- r5.setSize(QSize(12, 12));
- cout << "r5 setSize 12,12: " << r5 << endl;
- r5.setRect(4,4,18,18);
- cout << "r5 setRect 4,4,18,18: " << r5 << endl;
- r5.setCoords(5,5,20,20);
- cout << "r5 setCoords 5,5,20,20: " << r5 << endl;
-
- r5.moveTopLeft(QPoint(4,4));
- cout << "r5 moveTopLeft 4,4: " << r5 << endl;
- r5.moveBottomRight(QPoint(22,22));
- cout << "r5 moveBottomRight 22,22: " << r5 << endl;
- r5.moveTopRight(QPoint(22,4));
- cout << "r5 moveTopRight 22,4: " << r5 << endl;
- r5.moveCenter(QPoint(15,10));
- cout << "r5 moveCenter 15,10: " << r5 << endl;
- r5.moveBy(5,5);
- cout << "r5 moveBy 5,5: " << r5 << endl;
-
- cout << "r5 contains 15,10: " << r5.contains(15,10) << endl;
- cout << "r5 contains 30,20: " << r5.contains(30,20) << endl;
- cout << "r5 contains 15,10: " << r5.contains(QPoint(15,10)) << endl;
- cout << "r5 contains 30,20: " << r5.contains(QPoint(30,20)) << endl;
- cout << "r5 contains 14,9,5,5: " << r5.contains(QRect(14,9,5,5)) << endl;
- cout << "r5 contains 14,9,20,20: " << r5.contains(QRect(14,9,20,20)) << endl;
-
- cout << "r5 & (14,9,5,5): " << (QRect(14,9,5,5)) << endl;
- cout << "r1 |= r2: " << (r1|=r2) << endl;
- cout << "r5 &= (14,9,5,5): " << (r5 & QRect(14,9,5,5)) << endl;
- cout << "r1 == r4: "<< (r1 == r4) << endl;
- cout << "r3 == r4: "<< (r3 == r4) << endl;
- cout << "r1 != r4: "<< (r1 != r4) << endl;
- cout << "r3 != r4: "<< (r3 != r4) << endl;
-
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qregexp-test.chk b/WebCore/src/kwq/tests/qt/qregexp-test.chk
deleted file mode 100644
index 00bf9ed..0000000
--- a/WebCore/src/kwq/tests/qt/qregexp-test.chk
+++ /dev/null
@@ -1,8 +0,0 @@
-abcdefghijklmnopqrstuvwxyz =~ ^ab: 0
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ ^ab: -1
-abcdefghijklmnopqrstuvwxyz =~ def: 3
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ def: -1
-abcdefghijklmnopqrstuvwxyz =~ [A-Z]: -1
-ABCDEFGHIJKLMNOPQRSTUVWXYZ =~ [A-Z]: 0
-AAABBBCCC =~ [A-Z]: 0
-AAABBBCCC =~ B+C: 3
diff --git a/WebCore/src/kwq/tests/qt/qregexp-test.cpp b/WebCore/src/kwq/tests/qt/qregexp-test.cpp
deleted file mode 100644
index b03c492..0000000
--- a/WebCore/src/kwq/tests/qt/qregexp-test.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qregexp.h>
-
-int main() {
-
- QString s1 = "abcdefghijklmnopqrstuvwxyz";
- QString s2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
- QString s3 = "AAABBBCCC";
-
- QRegExp r1 = QRegExp("^ab");
- QRegExp r2 = QRegExp("def");
- QRegExp r3 = QRegExp("[A-Z]");
- QRegExp r4 = QRegExp("B+C");
-
- cout << s1 << " =~ " << r1.pattern() << ": "
- << r1.match(s1) << endl;
-
- cout << s2 << " =~ " << r1.pattern() << ": "
- << r1.match(s2) << endl;
-
- cout << s1 << " =~ " << r2.pattern() << ": "
- << r2.match(s1) << endl;
-
- cout << s2 << " =~ " << r2.pattern() << ": "
- << r2.match(s2) << endl;
-
- cout << s1 << " =~ " << r3.pattern() << ": "
- << r3.match(s1) << endl;
-
- cout << s2 << " =~ " << r3.pattern() << ": "
- << r3.match(s2) << endl;
-
- cout << s3 << " =~ " << r3.pattern() << ": "
- << r3.match(s3) << endl;
-
- cout << s3 << " =~ " << r4.pattern() << ": "
- << r4.match(s3) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qsize-test.chk b/WebCore/src/kwq/tests/qt/qsize-test.chk
deleted file mode 100644
index 893dfe3..0000000
--- a/WebCore/src/kwq/tests/qt/qsize-test.chk
+++ /dev/null
@@ -1,39 +0,0 @@
-s1: QSize: [w: 1; h: 1]
-s2: QSize: [w: 3; h: 3]
-s3 = s1+s2: QSize: [w: 4; h: 4]
-s4 = s3: QSize: [w: 4; h: 4]
-s5 = s3: QSize: [w: 4; h: 4]
-s6: QSize: [w: 0; h: 0]
-s7: QSize: [w: 20; h: 20]
-s5 setWidth(10): QSize: [w: 10; h: 4]
-s5 setHeight(10): QSize: [w: 10; h: 10]
-s5 += s1: QSize: [w: 11; h: 11]
-s5 -= s2: QSize: [w: 8; h: 8]
-s5 *= 3: QSize: [w: 24; h: 24]
-s5 /= 2: QSize: [w: 12; h: 12]
-s7 *= 3.33: QSize: [w: 66; h: 66]
-s7 /= 3.33: QSize: [w: 19; h: 19]
-s5 width: 12
-s5 height: 12
-s5 expandedTo 10,15: QSize: [w: 12; h: 15]
-s5 boundedTo 10,15: QSize: [w: 10; h: 15]
-s5 transpose: QSize: [w: 15; h: 10]
-s0 isNull: 0
-s1 isNull: 0
-s6 isNull: 1
-s0 isValid: 0
-s1 isValid: 1
-s6 isValid: 1
-s0 isEmpty: 1
-s1 isEmpty: 0
-s6 isEmpty: 1
-s1 == s4: 0
-s3 == s4: 1
-s1 != s4: 1
-s3 != s4: 0
-s3 * 3.33: QSize: [w: 13; h: 13]
-3.33 * s3: QSize: [w: 13; h: 13]
-2 * s4: QSize: [w: 8; h: 8]
-s4 * 2: QSize: [w: 8; h: 8]
-s4 / 2: QSize: [w: 2; h: 2]
-s4 / 2.22: QSize: [w: 1; h: 1]
diff --git a/WebCore/src/kwq/tests/qt/qsize-test.cpp b/WebCore/src/kwq/tests/qt/qsize-test.cpp
deleted file mode 100644
index f11c1d7..0000000
--- a/WebCore/src/kwq/tests/qt/qsize-test.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qsize.h>
-
-int main() {
-
- QSize s0;
- QSize s1 = QSize(1,1);
- QSize s2 = QSize(3,3);
- QSize s3 = s1 + s2;
- QSize s4 = s3;
- QSize s5 = s3;
- QSize s6 = QSize(0,0);
- QSize s7 = QSize(20,20);
-
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3 = s1+s2: " << s3 << endl;
- cout << "s4 = s3: " << s4 << endl;
- cout << "s5 = s3: " << s5 << endl;
- cout << "s6: " << s6 << endl;
- cout << "s7: " << s7 << endl;
-
- s5.setWidth(10);
- cout << "s5 setWidth(10): " << s5 << endl;
- s5.setHeight(10);
- cout << "s5 setHeight(10): " << s5 << endl;
- s5 += s1;
- cout << "s5 += s1: " << s5 << endl;
- s5 -= s2;
- cout << "s5 -= s2: " << s5 << endl;
- s5 *= 3;
- cout << "s5 *= 3: " << s5 << endl;
- s5 /= 2;
- cout << "s5 /= 2: " << s5 << endl;
- s7 *= 3.33;
- cout << "s7 *= 3.33: " << s7 << endl;
- s7 /= 3.33;
- cout << "s7 /= 3.33: " << s7 << endl;
-
- cout << "s5 width: " << s5.width() << endl;
- cout << "s5 height: " << s5.height() << endl;
-
- s5 = s5.expandedTo(QSize(10,15));
- cout << "s5 expandedTo 10,15: " << s5 << endl;
-
- s5 = s5.boundedTo(QSize(10,15));
- cout << "s5 boundedTo 10,15: " << s5 << endl;
-
- s5.transpose();
- cout << "s5 transpose: " << s5 << endl;
-
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s1 isNull: " << s1.isNull() << endl;
- cout << "s6 isNull: " << s6.isNull() << endl;
- cout << "s0 isValid: " << s0.isValid() << endl;
- cout << "s1 isValid: " << s1.isValid() << endl;
- cout << "s6 isValid: " << s6.isValid() << endl;
- cout << "s0 isEmpty: " << s0.isEmpty() << endl;
- cout << "s1 isEmpty: " << s1.isEmpty() << endl;
- cout << "s6 isEmpty: " << s6.isEmpty() << endl;
- cout << "s1 == s4: " << (s1 == s4) << endl;
- cout << "s3 == s4: " << (s3 == s4) << endl;
- cout << "s1 != s4: " << (s1 != s4) << endl;
- cout << "s3 != s4: " << (s3 != s4) << endl;
-
- cout << "s3 * 3.33: " << (s3 * 3.33) << endl;
- cout << "3.33 * s3: " << (3.33 * s3) << endl;
- cout << "2 * s4: " << (2 * s4) << endl;
- cout << "s4 * 2: " << (s4 * 2) << endl;
- cout << "s4 / 2: " << (s4 / 2) << endl;
- cout << "s4 / 2.22: " << (s4 / 2.22) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qsortedlist-test.chk b/WebCore/src/kwq/tests/qt/qsortedlist-test.chk
deleted file mode 100644
index 8e295ed..0000000
--- a/WebCore/src/kwq/tests/qt/qsortedlist-test.chk
+++ /dev/null
@@ -1,30 +0,0 @@
-p0: QList: [size: 0; items: ]
-p1: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 1
-p1 isEmpty: 0
-p0 count: 0
-p1 count: 7
-p1 find index of 2: 2
-p1 removeFirst: QList: [size: 6; items: 1, 2, 3, 4, 5, 6]
-p1 removeLast: QList: [size: 5; items: 1, 2, 3, 4, 5]
-p1 take: 5 QList: [size: 4; items: 1, 2, 3, 4]
-p1 containsRef 3: 1
-p1 containsRef 0: 0
-p2 unsorted: QList: [size: 7; items: 6, 5, 4, 3, 2, 1, 0]
-p2 sorted: QList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p1 at 2: 3
-p1 insert 7 in 1: QList: [size: 8; items: 1, 7, 8, 9, 10, 2, 3, 4]
-p1 remove: QList: [size: 7; items: 1, 7, 8, 9, 2, 3, 4]
-p1 remove 7: QList: [size: 6; items: 1, 8, 9, 2, 3, 4]
-p1 removeRef 8: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p2 getLast: 6
-p2 current: 6
-p2 first: 0
-p2 last: 6
-p2 prev: 5
-p2 next: 6
-p2 prepend 9: QList: [size: 8; items: 9, 0, 1, 2, 3, 4, 5, 6]
-p1: QList: [size: 5; items: 1, 9, 2, 3, 4]
-p1 clear (autoDelete off): QList: [size: 0; items: ]
-p1 clear (autoDelete on): QList: [size: 0; items: ]
-p3 = p2: QList: [size: 8; items: 9, 0, 1, 2, 3, 4, 5, 6]
diff --git a/WebCore/src/kwq/tests/qt/qsortedlist-test.cpp b/WebCore/src/kwq/tests/qt/qsortedlist-test.cpp
deleted file mode 100644
index 67a77ed..0000000
--- a/WebCore/src/kwq/tests/qt/qsortedlist-test.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-#include <iostream>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <qsortedlist.h>
-
-int main() {
-
- QSortedList<int> p0;
- QSortedList<int> p1;
- QSortedList<int> p2;
- QSortedList<int> p3;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int p = 7;
- int q = 8;
- int r = 9;
- int s = 10;
-
- p1.append(&i);
- p1.append(&j);
- p1.append(&k);
- p1.append(&l);
- p1.append(&m);
- p1.append(&n);
- p1.append(&o);
-
- cout << "p0: " << p0 << endl;
- cout << "p1: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- cout << "p1 isEmpty: " << p1.isEmpty() << endl;
-
- cout << "p0 count: " << p0.count() << endl;
- cout << "p1 count: " << p1.count() << endl;
-
- cout << "p1 find index of 2: " << p1.find(&k) << endl;
-
- p1.removeFirst();
- cout << "p1 removeFirst: " << p1 << endl;
-
- p1.removeLast();
- cout << "p1 removeLast: " << p1 << endl;
-
- cout << "p1 take: " << *(p1.take()) << " " << p1 << endl;
-
- cout << "p1 containsRef 3: " << p1.containsRef(&l) << endl;
- cout << "p1 containsRef 0: " << p1.containsRef(&i) << endl;
-
- p2.append(&o);
- p2.append(&n);
- p2.append(&m);
- p2.append(&l);
- p2.append(&k);
- p2.append(&j);
- p2.append(&i);
- cout << "p2 unsorted: " << p2 << endl;
- p2.sort();
- cout << "p2 sorted: " << p2 << endl; //heh?
-
- int *n1;
- n1 = p1.at(2);
- cout << "p1 at 2: "<< *n1 << endl;
-
- p1.insert(1, &p);
- p1.insert(2, &q);
- p1.insert(3, &r);
- p1.insert(4, &s);
- cout << "p1 insert 7 in 1: " << p1 << endl;
-
- p1.remove();
- cout << "p1 remove: " << p1 << endl;
-
- p1.remove(&p);
- cout << "p1 remove 7: " << p1 << endl;
-
- p1.removeRef(&q);
- cout << "p1 removeRef 8: " << p1 << endl;
-
- int *n2;
- n2 = p2.getLast();
- cout << "p2 getLast: "<< *n2 << endl;
- n2 = p2.current();
- cout << "p2 current: "<< *n2 << endl;
- n2 = p2.first();
- cout << "p2 first: "<< *n2 << endl;
- n2 = p2.last();
- cout << "p2 last: "<< *n2 << endl;
- n2 = p2.prev();
- cout << "p2 prev: "<< *n2 << endl;
- n2 = p2.next();
- cout << "p2 next: "<< *n2 << endl;
-
- p2.prepend(&r);
- cout << "p2 prepend 9: "<< p2 << endl;
-
- cout << "p1: "<< p1 << endl;
- p1.setAutoDelete(FALSE);
- p1.clear();
- cout << "p1 clear (autoDelete off): "<< p1 << endl; // heh?
- p1.setAutoDelete(TRUE);
- p1.clear();
- cout << "p1 clear (autoDelete on): "<< p1 << endl;
-
- p3 = p2;
- cout << "p3 = p2: "<< p3 << endl;
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qstack-test.chk b/WebCore/src/kwq/tests/qt/qstack-test.chk
deleted file mode 100644
index dd0bbc1..0000000
--- a/WebCore/src/kwq/tests/qt/qstack-test.chk
+++ /dev/null
@@ -1,13 +0,0 @@
-s0: QStack: [size: 0; items: ]
-s0 push: QStack: [size: 5; items: 4, 3, 2, 1, 0]
-s1 = s0: QStack: [size: 5; items: 4, 3, 2, 1, 0]
-s1 count: 5
-s1 pop: 4
-s1 pop: 3
-s1 pop: 2
-s1 pop: 1
-s1 pop: 0
-s1: QStack: [size: 0; items: ]
-s0 isEmpty: 0
-s1 isEmpty: 1
-s0 clear: QStack: [size: 0; items: ]
diff --git a/WebCore/src/kwq/tests/qt/qstack-test.cpp b/WebCore/src/kwq/tests/qt/qstack-test.cpp
deleted file mode 100644
index c200770..0000000
--- a/WebCore/src/kwq/tests/qt/qstack-test.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstack.h>
-
-int main() {
-
- QStack<int> s0;
- QStack<int> s1 = QStack<int>();
- QStack<int> s2;
-
- int i0 = 0;
- int i1 = 1;
- int i2 = 2;
- int i3 = 3;
- int i4 = 4;
-
- cout << "s0: " << s0 << endl;
-
- s0.push(&i0);
- s0.push(&i1);
- s0.push(&i2);
- s0.push(&i3);
- s0.push(&i4);
- cout << "s0 push: " << s0 << endl;
-
- s1 = s0;
- cout << "s1 = s0: " << s1 << endl;
- cout << "s1 count: " << s1.count() << endl;
-
- int count = s1.count();
- for (int i = 0; i < count; i++) {
- cout << "s1 pop: "<< *(s1.pop()) << endl;
- }
- cout << "s1: " << s1 << endl;
-
- cout << "s0 isEmpty: " << s0.isEmpty() << endl;
- cout << "s1 isEmpty: " << s1.isEmpty() << endl;
-
- s0.clear(); // not needed for KWQ?
- cout << "s0 clear: "<< s0 << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qstring-test.chk b/WebCore/src/kwq/tests/qt/qstring-test.chk
deleted file mode 100644
index 8132fbe..0000000
--- a/WebCore/src/kwq/tests/qt/qstring-test.chk
+++ /dev/null
@@ -1,101 +0,0 @@
-s1: t
-s2: t
-s3: eeeee
-s4: test
-s5: this is a string
-s6: test
-s7: yet another string
-s8: hello there
-s9: e
-s0 isNull: 1
-s5 isNull: 0
-s11 isEmpty: 1
-s5 isEmpty: 0
-s7 length: 18
-s5 truncate 8: this is
-s0 fill: ccccc
-s12: string
-s7 find RegExp "t": 2
-s7 find s12: 12
-s7 find "string": 12
-s7 find "string": 12
-s7 findRev "t": 13
-s7 findRev "string": 12
-s13: blah blah blah
-s13 contains "b": 3
-s13 contains "blah": 3
-s13 left 4: blah
-s13 right 4: blah
-s13 mid 5-8: blah
-s15: Hello blah. How has your blah been?
-s15: Hello blah. How has your blah been?
-s15: Hello Gramps. How has your morning been?
-s15: Hello 22.45. How has your 22.45 been?
-s15: Hello 356. How has your 23390082 been?
-s15: Hello 3456. How has your 234234224 been?
-s15: Hello 23409283. How has your 43242 been?
-s16 lower: this was a string in uppercase
-s18 stripWhiteSpace: This was a string with a lot of spaces
-s18 simplifyWhiteSpace: This was a string with a lot of spaces
-s19: 221545
-s19: 221545
-s19: 221545
-s19: 221545
-221545
-24937
-221545
-24937
-s20: This is a test. 44, 56.780000
-s21: Apple Computer Inc.
-s22: Apple
-s23: MS
-s21 startsWith s22: 1
-s21 startsWith s23: 0
-s24: The answer is:
-c2: 2
-s24 insert c2 at 15: The answer is: 2
-s24 append c2: The answer is: 22
-s24 append s22: The answer is: 22Apple
-s24 prepend c2: 2The answer is: 22Apple
-s24 prepend s22: Apple2The answer is: 22Apple
-s24 remove 0-7: he answer is: 22Apple
-he answer is: 2Apple2Apple
-he answer is: 2cApple2Apple
-s25 replace RegExp "a" with "e": There ere e lot of e's in e sentence such es this one
-s27: 22.45
-s27: 356
-s27: 356
-s27: 23390082
-s27: 3456
-s27: 234234224
-s27: 23409283
-s27: 43242
-s27: 223.234
-s28 !: 1
-s29 !: 0
-s30: abcde
-c3: f
-ch2: g
-s31: hijk
-s30 += c3: abcdef
-s30 += ch2: abcdefg
-s30 += s31: abcdefghijk
-s33: This is a string
-s34: This is a longer string
-ch3: This is an even longer string
-c4: T
-s33 == ch3: 0
-c3 == s33: 0
-s33 == s34: 0
-s33 == c4: 0
-s33 != ch3: 1
-c3 != s33: 1
-s33 != s34: 1
-s33 != c4: 1
-ch3 + s33: This is an even longer stringThis is a string
-c4 + s33: TThis is a string
-'a' + s33: aThis is a string
-0
-1
-0
-1
diff --git a/WebCore/src/kwq/tests/qt/qstring-test.cpp b/WebCore/src/kwq/tests/qt/qstring-test.cpp
deleted file mode 100644
index 98e264a..0000000
--- a/WebCore/src/kwq/tests/qt/qstring-test.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-#include <qstring.h>
-#include <qregexp.h>
-
-int main() {
-
- QChar c[4];
- QByteArray ba = QByteArray(5);
- ba.fill('e', -1);
- QCString qcs = QCString("hello there");
- //char ch='a';
-
- c[0] = QChar('t');
- c[1] = QChar('e');
- c[2] = QChar('s');
- c[3] = QChar('t');
-
- QString s0 = QString();
- QString s1 = QString(c[0]);
- QString s2 = QString(s1);
- QString s3 = QString(ba);
- QString s4 = QString(c, 4);
- QString s5 = QString("this is a string");
- QString s6 = s4;
- QString s7 = "yet another string";
- QString s8 = qcs;
- QString s9 = c[1];
- //QString s10 = ch;
-
- cout << "s1: " << s1 << endl;
- cout << "s2: " << s2 << endl;
- cout << "s3: " << s3 << endl;
- cout << "s4: " << s4 << endl;
- cout << "s5: " << s5 << endl;
- cout << "s6: " << s6 << endl;
- cout << "s7: " << s7 << endl;
- cout << "s8: " << s8 << endl;
- cout << "s9: " << s9 << endl;
- //cout << "s10: " << s10 << endl;
-
- QString s11 = QString(""); // make an empty string
-
- cout << "s0 isNull: " << s0.isNull() << endl;
- cout << "s5 isNull: " << s5.isNull() << endl;
- cout << "s11 isEmpty: " << s11.isEmpty() << endl;
- cout << "s5 isEmpty: " << s5.isEmpty() << endl;
- cout << "s7 length: " << s7.length() << endl;
-
- s5.truncate(8);
- cout << "s5 truncate 8: " << s5 << endl;
-
- s0.fill('c', 5);
- cout << "s0 fill: " << s0 << endl;
-
- QRegExp qre = QRegExp(s1, TRUE, FALSE);
- QString s12 = QString("string");
- cout << "s12: " << s12 << endl;
- //cout << "s7 find \"s\": " << s7.find('s', 0, FALSE) << endl; // find functions
- cout << "s7 find RegExp \"t\": " << s7.find(qre, 0) << endl;
- cout << "s7 find s12: " << s7.find(s12, 0, TRUE) << endl;
- cout << "s7 find \"string\": " << s7.find("string", 0) << endl;
- cout << "s7 find \"string\": " << s7.find("string", 0, TRUE) << endl;
- cout << "s7 findRev \"t\": " << s7.findRev('t', s7.length()) << endl;
- cout << "s7 findRev \"string\": " << s7.findRev("string", s7.length()) << endl;
- //cout << s7.findRev(qre, 10) << endl;
- //cout << s7.findRev(s12, -1, TRUE) << endl;
- //cout << s7.findRev('t', 10, TRUE) << endl;
-
- QString s13 = QString("blah blah blah");
- cout << "s13: " << s13 << endl;
- cout << "s13 contains \"b\": " << s13.contains('b') << endl;
- cout << "s13 contains \"blah\": " << s13.contains("blah", TRUE) << endl;
- //cout << s7.contains(c[0], TRUE) << endl;
- //cout << s7.contains(qre) << endl;
- //cout << s13.contains('b', TRUE) << endl;
-
- cout << "s13 left 4: " << s13.left(4) << endl;
- cout << "s13 right 4: " << s13.right(4) << endl;
- cout << "s13 mid 5-8: " << s13.mid(5,4) << endl;
-
-
- double my_double =22.45;
- int my_int = 356;
- long my_long = 23390082;
- short my_short = 3456;
- uint my_unit = 234234224;
- ulong my_ulong = 23409283;
- ushort my_ushort = 43242;
- float my_float = 223.2342;
- QString s14 = QString("blah");
- QString s15 = "Hello %1. How has your %2 been?";
- cout << "s15: " << s15.arg(s14).arg(s14) << endl;
- cout << "s15: " << s15.arg(s14, 5).arg(s14, 5) << endl; // fieldwidth only add one extra space. hmmmm.
- cout << "s15: " << s15.arg("Gramps").arg("morning") << endl;
- cout << "s15: " << s15.arg(my_double).arg(my_double) << endl;
- cout << "s15: " << s15.arg(my_int).arg(my_long) << endl;
- cout << "s15: " << s15.arg(my_short).arg(my_unit) << endl;
- cout << "s15: " << s15.arg(my_ulong).arg(my_ushort) << endl;
- //cout << "s15: " << s15.arg(c[2]).arg(c[2]) << endl;
-
- QString s16 = "THIS WAS A STRING IN UPPERCASE";
- QString s17 = "this was a string in lowercase";
- cout << "s16 lower: " << s16.lower() << endl;
- //cout << "s17 upper: " << s17.upper() << endl;
-
- QString s18 =" This was a string with a lot of spaces ";
- cout << "s18 stripWhiteSpace: " << s18.stripWhiteSpace() << endl;
- cout << "s18 simplifyWhiteSpace: " << s18.simplifyWhiteSpace() << endl;
-
- QString s19 = "221545";
- cout << "s19: " << s19.toFloat() << endl;
- cout << "s19: " << s19.toInt() << endl;
- cout << "s19: " << s19.toLong() << endl;
- cout << "s19: " << s19.toUInt() << endl;
- cout << s19.toDouble() << endl; //Am I properly testing this?
- cout << s19.toShort() << endl;
- cout << s19.toULong() << endl;
- cout << s19.toUShort() << endl;
-
- QString s20;
- cout << "s20: " << s20.sprintf("This is a %s. %d, %f", "test", 44, 56.78) << endl;
-
- QString s21 = "Apple Computer Inc.";
- QString s22 = "Apple";
- QString s23 = "MS";
- cout << "s21: " << s21 << endl;
- cout << "s22: " << s22 << endl;
- cout << "s23: " << s23 << endl;
- cout << "s21 startsWith s22: " << s21.startsWith(s22) << endl;
- cout << "s21 startsWith s23: " << s21.startsWith(s23) << endl;
-
- QString s24 = "The answer is: ";
- QChar c2 = '2';
- cout << "s24: " << s24 << endl;
- cout << "c2: " << c2 << endl;
- cout << "s24 insert c2 at 15: " << s24.insert(15, c2) << endl;
- cout << "s24 append c2: " << s24.append(c2) << endl;
- cout << "s24 append s22: " << s24.append(s22) << endl;
- cout << "s24 prepend c2: " << s24.prepend(c2) << endl;
- cout << "s24 prepend s22: " << s24.prepend(s22) << endl;
- cout << "s24 remove 0-7: " << s24.remove(0, 7) << endl;
- //cout << s24.insert(15, c, 4) << endl;
- cout << s24.insert(15, s22) << endl;
- cout << s24.insert(15, 'c') << endl;
- //cout << s24.append('c') << endl;
- //cout << s24.prepend('c') << endl;
-
- QString s25 = "There are a lot of a's in a sentence such as this one";
- cout << "s25 replace RegExp \"a\" with \"e\": " << s25.replace( QRegExp("a"), "e" ) << endl;
- //cout << s25.replace(1, 4, c, 4) << endl;
-
-
- QString s27;
- cout << "s27: " << s27.setNum(my_double) << endl;
- cout << "s27: " << s27.setNum(my_int) << endl;
- cout << "s27: " << s27.setNum(my_int) << endl;
- cout << "s27: " << s27.setNum(my_long) << endl;
- cout << "s27: " << s27.setNum(my_short) << endl;
- cout << "s27: " << s27.setNum(my_unit) << endl;
- cout << "s27: " << s27.setNum(my_ulong) << endl;
- cout << "s27: " << s27.setNum(my_ushort) << endl;
- cout << "s27: " << s27.setNum(my_float) << endl;
-
- QString s28;
- QString s29 = "a string that is a little long";
- cout << "s28 !: " << !s28 << endl;
- cout << "s29 !: " << !s29 << endl;
-
- QString s30 = "abcde";
- QChar c3='f';
- char ch2='g';
- QString s31 = "hijk";
- cout << "s30: " << s30 << endl;
- cout << "c3: " << c3 << endl;
- cout << "ch2: " << ch2 << endl;
- cout << "s31: " << s31 << endl;
- cout << "s30 += c3: " << (s30 += c3) << endl;
- cout << "s30 += ch2: " << (s30 += ch2) << endl;
- cout << "s30 += s31: " << (s30 += s31) << endl;
-
-
- // test operators
-
- QString s33 = "This is a string";
- QString s34 = "This is a longer string";
- char ch3[30];
- strcpy(ch3, "This is an even longer string");
- QChar c4 ='T';
- cout << "s33: " << s33 << endl;
- cout << "s34: " << s34 << endl;
- cout << "ch3: " << ch3 << endl;
- cout << "c4: " << c4 << endl;
- cout << "s33 == ch3: " << (s33 == ch3) << endl; // I should test strings that are equal as well
- cout << "c3 == s33: "<< (c4 == s33) << endl;
- cout << "s33 == s34: "<< (s33 == s34) << endl;
- cout << "s33 == c4: "<< (s33 == c4) << endl;
- cout << "s33 != ch3: " << (s33 != ch3) << endl;
- cout << "c3 != s33: "<< (c4 != s33) << endl;
- cout << "s33 != s34: "<< (s33 != s34) << endl;
- cout << "s33 != c4: "<< (s33 != c4) << endl;
- cout << "ch3 + s33: " << (ch3 + s33) << endl;
- cout << "c4 + s33: " << (c4 + s33) << endl;
- cout << "\'a\' + s33: " << ('a' + s33) << endl;
-
- //cout << (s33 < c4) << endl;
- //cout << (c4 < s33) << endl;
- cout << (s33 < s34) << endl;
- //cout << (s33 > c4) << endl;
- //cout << (c4 > s33) << endl;
- cout << (s33 > s34) << endl;
- //cout << (s33 <= c4) << endl;
- //cout << (c4 <= s33) << endl;
- cout << (s33 <= s34) << endl;
- //cout << (s33 >= c4) << endl;
- //cout << (c4 >= s33) << endl;
- cout << (s33 >= s34) << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qstringlist-test.chk b/WebCore/src/kwq/tests/qt/qstringlist-test.chk
deleted file mode 100644
index aea2e7c..0000000
--- a/WebCore/src/kwq/tests/qt/qstringlist-test.chk
+++ /dev/null
@@ -1,5 +0,0 @@
-QValueList: [size: 6; items: zero, one, two, three, four, five]
-three
-QValueList: [size: 8; items: zero, one, two, three, four, five, six, seven]
-three, four, five, six, seven
-QValueList: [size: 8; items: five, four, one, seven, six, three, two, zero]
diff --git a/WebCore/src/kwq/tests/qt/qstringlist-test.cpp b/WebCore/src/kwq/tests/qt/qstringlist-test.cpp
deleted file mode 100644
index c234072..0000000
--- a/WebCore/src/kwq/tests/qt/qstringlist-test.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qstring.h>
-#include <qstringlist.h>
-
-int main() {
-
- QStringList p0;
-
- p0.append("zero");
- p0.append("one");
- p0.append("two");
- p0.append("three");
- p0.append("four");
- p0.append("five");
-
- cout << p0 << endl;
- cout << p0[3] << endl;
- p0 += "six";
- p0 += "seven";
- cout << p0 << endl;
-
- QValueListIterator<QString> it = p0.find("three");
- while (it != p0.end()) {
- cout << *it;
- if (++it != p0.end()) {
- cout << ", ";
- }
- }
- cout << endl;
-
- p0.sort();
- cout << p0 << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qtime-test.chk b/WebCore/src/kwq/tests/qt/qtime-test.chk
deleted file mode 100644
index 8d0a9c2..0000000
--- a/WebCore/src/kwq/tests/qt/qtime-test.chk
+++ /dev/null
@@ -1,11 +0,0 @@
-d1: QTime: [hh:mm:ss:ms = 23:59:0:0]
-d2: QTime: [hh:mm:ss:ms = 1:8:0:0]
-d0 isNull: 1
-d1 isNull: 0
-d0 = d1: QTime: [hh:mm:ss:ms = 23:59:0:0]
-d1 msec: 0
-d2 msec: 0
-d2 hour: 1
-d2 minute: 8
-d2 second: 0
-d2 secsTo d1: 82260
diff --git a/WebCore/src/kwq/tests/qt/qtime-test.cpp b/WebCore/src/kwq/tests/qt/qtime-test.cpp
deleted file mode 100644
index ef22ac3..0000000
--- a/WebCore/src/kwq/tests/qt/qtime-test.cpp
+++ /dev/null
@@ -1,41 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qdatetime.h>
-
-int main() {
-
- QTime d0;
- QTime d1(23, 59);
- QTime d2(1, 8);
- QTime d3;
- int elapsedTime;
-
- d3.start();
- cout << "d1: " << d1 << endl;
- cout << "d2: " << d2 << endl;
-
- cout << "d0 isNull: " << d0.isNull() << endl;
- cout << "d1 isNull: " << d1.isNull() << endl;
-
- d0 = d1;
- cout << "d0 = d1: " << d0 << endl;
-
- cout << "d1 msec: " << d1.msec() << endl;
- cout << "d2 msec: " << d2.msec() << endl;
- cout << "d2 hour: " << d2.hour() << endl;
- cout << "d2 minute: " << d2.minute() << endl;
- cout << "d2 second: " << d2.second() << endl;
-
- cout << "d2 secsTo d1: " << d2.secsTo(d1) << endl;
-
- elapsedTime = d3.elapsed(); // nothing is printed because output will never match .chk file
- elapsedTime = d3.restart();
-
-
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qvaluelist-test.chk b/WebCore/src/kwq/tests/qt/qvaluelist-test.chk
deleted file mode 100644
index 572669c..0000000
--- a/WebCore/src/kwq/tests/qt/qvaluelist-test.chk
+++ /dev/null
@@ -1,14 +0,0 @@
-p0: QValueList: [size: 6; items: 0, 1, 2, 3, 4, 5]
-p0[3]: 3
-p0 += 6,7: QValueList: [size: 8; items: 0, 1, 2, 3, 4, 5, 6, 7]
-p0 iterator: 4, 5, 6, 7
-p0 count: 8
-p0 remove 7: QValueList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 contains 7: 0
-p0 remove 6: 1
-p0 first 6: 0
-p0 last 6: 6
-p1 = p0: QValueList: [size: 7; items: 0, 1, 2, 3, 4, 5, 6]
-p0 isEmpty: 0
-p0 clear: QValueList: [size: 0; items: ]
-p0 isEmpty: 1
diff --git a/WebCore/src/kwq/tests/qt/qvaluelist-test.cpp b/WebCore/src/kwq/tests/qt/qvaluelist-test.cpp
deleted file mode 100644
index 5e13474..0000000
--- a/WebCore/src/kwq/tests/qt/qvaluelist-test.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qvaluelist.h>
-
-int main() {
-
- QValueList<int> p0;
- QValueList<int> p1;
-
- p0.append(0);
- p0.append(1);
- p0.append(2);
- p0.append(3);
- p0.append(4);
- p0.append(5);
-
- cout << "p0: " << p0 << endl;
- cout << "p0[3]: " << p0[3] << endl;
- p0 += 6;
- p0 += 7;
- cout << "p0 += 6,7: " << p0 << endl;
-
- cout << "p0 iterator: ";
- QValueListIterator<int> it = p0.find(4);
- while (it != p0.end()) {
- cout << *it;
- if (++it != p0.end()) {
- cout << ", ";
- }
- }
- cout << endl;
-
- cout << "p0 count: " << p0.count() << endl;
-
- p0.remove(7);
- cout << "p0 remove 7: " << p0 << endl;
-
- cout << "p0 contains 7: " << p0.contains(7) << endl;
- cout << "p0 remove 6: " << p0.contains(6) << endl;
-
- cout << "p0 first 6: " << p0.first() << endl;
- cout << "p0 last 6: " << p0.last() << endl;
-
- p1 = p0;
- cout << "p1 = p0: " << p1 << endl;
-
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
- p0.clear();
- cout << "p0 clear: " << p0 << endl;
- cout << "p0 isEmpty: " << p0.isEmpty() << endl;
-
-
-
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/qt/qvector-test.chk b/WebCore/src/kwq/tests/qt/qvector-test.chk
deleted file mode 100644
index f942571..0000000
--- a/WebCore/src/kwq/tests/qt/qvector-test.chk
+++ /dev/null
@@ -1,15 +0,0 @@
-v1: QVector: [size: 7; items: 0, 1, 2, 3, 4, 5, 6, ]
-v2 = v1: QVector: [size: 0; items: ]
-v1 find 2: 2
-v1 contains 3: 1
-v1 contains 0: 1
-v1 count: 7
-v1 size: 10
-v1 remove 6: QVector: [size: 6; items: 0, 1, 2, 3, 4, 5, ]
-v1 resize 15: 15
-v1 at 2: 2
-v1[3]: 3
-v2 clear: QVector: [size: 0; items: ]
-v0: 1
-v1: 0
-v2: 1
diff --git a/WebCore/src/kwq/tests/qt/qvector-test.cpp b/WebCore/src/kwq/tests/qt/qvector-test.cpp
deleted file mode 100644
index f6cbd37..0000000
--- a/WebCore/src/kwq/tests/qt/qvector-test.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <iostream>
-
-#include <qvector.h>
-
-int main() {
-
- QVector<int> v0;
- QVector<int> v1 = QVector<int>(10);
- QVector<int> v2 = v1;
-
- int i = 0;
- int j = 1;
- int k = 2;
- int l = 3;
- int m = 4;
- int n = 5;
- int o = 6;
- int *x;
-
- v1.insert(0,&i);
- v1.insert(1,&j);
- v1.insert(2,&k);
- v1.insert(3,&l);
- v1.insert(4,&m);
- v1.insert(5,&n);
- v1.insert(6,&o);
-
- cout << "v1: " << v1 << endl;
- cout << "v2 = v1: " << v2 << endl;
-
- cout << "v1 find 2: " << v1.find(&k) << endl;
-
- cout << "v1 contains 3: " << v1.containsRef(&l) << endl;
- cout << "v1 contains 0: " << v1.containsRef(&i) << endl;
-
- cout << "v1 count: " << v1.count() << endl;
- cout << "v1 size: " << v1.size() << endl;
-
- v1.remove(6);
- cout << "v1 remove 6: " << v1 << endl;
-
- v1.resize(15);
- cout << "v1 resize 15: " << v1.size() << endl;
-
- x = v1.at(2);
- cout << "v1 at 2: " << *x << endl;
-
- x = v1[3];
- cout << "v1[3]: " << *x << endl;
-
- v2.clear();
- cout << "v2 clear: " << v2 << endl;
-
- cout << "v0: " << v0.isEmpty() << endl;
- cout << "v1: " << v1.isEmpty() << endl;
- cout << "v2: " << v2.isEmpty() << endl;
-
- return 0;
-}
diff --git a/WebCore/src/kwq/tests/test.list b/WebCore/src/kwq/tests/test.list
deleted file mode 100644
index 5fd6fcb..0000000
--- a/WebCore/src/kwq/tests/test.list
+++ /dev/null
@@ -1,21 +0,0 @@
-# Qt suite
-qt/qpoint-test
-qt/qsize-test
-qt/qcstring-test
-qt/qrect-test
-qt/qarray-test
-qt/qmap-test
-qt/qdict-test
-qt/qptrdict-test
-qt/qstack-test
-qt/qvaluelist-test
-qt/qstringlist-test
-qt/qlist-test
-qt/qregexp-test
-qt/qchar-test
-qt/qdate-test
-qt/qtime-test
-qt/qdatetime-test
-qt/qstring-test
-qt/qvector-test
-qt/qsortedlist-test
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list