Changeset 18901 in webkit
- Timestamp:
- Jan 17, 2007 1:14:51 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r18900 r18901 1 2007-01-17 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Zack 4 5 change all notImplemented() macros to use qDebug 6 instead of fprintf(stder, ...) 7 8 * loader/qt/DocumentLoaderQt.cpp: 9 * loader/qt/FrameLoaderQt.cpp: 10 * page/qt/EventHandlerQt.cpp: 11 * page/qt/FrameQt.cpp: 12 * platform/graphics/qt/GraphicsContextQt.cpp: 13 * platform/graphics/qt/IconQt.cpp: 14 * platform/network/qt/ResourceHandleManagerQt.cpp: 15 * platform/network/qt/ResourceHandleQt.cpp: 16 * platform/qt/CursorQt.cpp: 17 * platform/qt/FileChooserQt.cpp: 18 * platform/qt/MimeTypeRegistryQt.cpp: 19 * platform/qt/PageQt.cpp: Removed. 20 * platform/qt/PopupMenuQt.cpp: 21 * platform/qt/ScrollViewQt.cpp: 22 * platform/qt/TemporaryLinkStubs.cpp: 23 * platform/qt/TextBoundaries.cpp: 24 * platform/qt/WidgetQt.cpp: 25 1 26 2007-01-16 Brady Eidson <beidson@apple.com> 2 27 -
trunk/WebCore/loader/qt/DocumentLoaderQt.cpp
r18757 r18901 40 40 #include <QDateTime> 41 41 42 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)42 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 43 43 44 44 namespace WebCore { -
trunk/WebCore/loader/qt/FrameLoaderQt.cpp
r18805 r18901 76 76 #include <qdebug.h> 77 77 78 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0)78 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 79 79 80 80 namespace WebCore { -
trunk/WebCore/page/qt/EventHandlerQt.cpp
r18142 r18901 50 50 using namespace EventNames; 51 51 52 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 53 __FILE__, __LINE__, __FUNCTION__); } while(0) 52 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 54 53 55 54 static bool isKeyboardOptionTab(KeyboardEvent* event) -
trunk/WebCore/page/qt/FrameQt.cpp
r18742 r18901 69 69 using namespace KJS; 70 70 71 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 72 __FILE__, __LINE__, __FUNCTION__); } while(0) 71 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 73 72 74 73 namespace WebCore { -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r18862 r18901 50 50 #endif 51 51 52 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)52 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 53 53 54 54 namespace WebCore { -
trunk/WebCore/platform/graphics/qt/IconQt.cpp
r17727 r18901 20 20 21 21 #include "config.h" 22 23 #include <stdio.h>24 22 #include "Icon.h" 25 23 26 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0) 24 #include <qglobal.h> 25 26 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 27 27 28 28 namespace WebCore { -
trunk/WebCore/platform/network/qt/ResourceHandleManagerQt.cpp
r18886 r18901 45 45 #include <qdebug.h> 46 46 47 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 48 __FILE__, __LINE__, __FUNCTION__); } while(0) 47 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 49 48 50 49 #if 0 -
trunk/WebCore/platform/network/qt/ResourceHandleQt.cpp
r18744 r18901 41 41 #include "ResourceHandleInternal.h" 42 42 43 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 44 __FILE__, __LINE__, __FUNCTION__); } while(0) 43 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 45 44 46 45 namespace WebCore { -
trunk/WebCore/platform/qt/CursorQt.cpp
r18270 r18901 36 36 #include <stdlib.h> 37 37 38 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)38 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 39 39 40 40 namespace WebCore { -
trunk/WebCore/platform/qt/FileChooserQt.cpp
r17034 r18901 22 22 #include "FileChooser.h" 23 23 24 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)24 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 25 25 26 26 namespace WebCore { -
trunk/WebCore/platform/qt/MimeTypeRegistryQt.cpp
r17703 r18901 28 28 #include "MimeTypeRegistry.h" 29 29 30 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)30 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 31 31 32 32 namespace WebCore -
trunk/WebCore/platform/qt/PopupMenuQt.cpp
r18232 r18901 26 26 #include "PopupMenu.h" 27 27 28 #include < stdio.h>28 #include <qglobal.h> 29 29 30 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)30 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 31 31 32 32 namespace WebCore { -
trunk/WebCore/platform/qt/ScrollViewQt.cpp
r18886 r18901 42 42 #include <QScrollArea> 43 43 44 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)44 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 45 45 46 46 namespace WebCore { -
trunk/WebCore/platform/qt/TemporaryLinkStubs.cpp
r18650 r18901 68 68 using namespace WebCore; 69 69 70 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 71 __FILE__, __LINE__, __FUNCTION__); } while(0) 70 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 72 71 73 72 FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, const IntPoint&, int) const { notImplemented(); return FloatRect(); } -
trunk/WebCore/platform/qt/TextBoundaries.cpp
r17571 r18901 36 36 #include <stdio.h> 37 37 38 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)38 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 39 39 40 40 -
trunk/WebCore/platform/qt/WidgetQt.cpp
r18886 r18901 41 41 #include <QWidget> 42 42 43 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)43 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 44 44 45 45 namespace WebCore { -
trunk/WebKitQt/ChangeLog
r18899 r18901 1 2007-01-17 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Zack 4 5 change all notImplemented() macros to use qDebug 6 instead of fprintf(stder, ...) 7 8 * WebCoreSupport/ChromeClientQt.cpp: 9 * WebCoreSupport/ContextMenuClientQt.cpp: 10 * WebCoreSupport/EditorClientQt.cpp: 11 * WebCoreSupport/FrameLoaderClientQt.cpp: 12 1 13 2007-01-16 Alice Liu <alice.liu@apple.com> 2 14 -
trunk/WebKitQt/WebCoreSupport/ChromeClientQt.cpp
r18886 r18901 35 35 #include "qwebpage.h" 36 36 37 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d\n", __FILE__, __LINE__); } while(0)37 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 38 38 39 39 namespace WebCore -
trunk/WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp
r18757 r18901 33 33 #include <stdio.h> 34 34 35 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", \ 36 __FILE__, __LINE__, __FUNCTION__); } while(0) 35 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__); 37 36 38 37 namespace WebCore { -
trunk/WebKitQt/WebCoreSupport/EditorClientQt.cpp
r18899 r18901 35 35 #include <stdio.h> 36 36 37 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d(%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0)37 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 38 38 39 39 namespace WebCore { -
trunk/WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp
r18886 r18901 34 34 #include "qwebframe.h" 35 35 36 #define notImplemented() do { fprintf(stderr, "FIXME: UNIMPLEMENTED: %s:%d (%s)\n", __FILE__, __LINE__, __FUNCTION__); } while(0) 37 36 #define notImplemented() qDebug("FIXME: UNIMPLEMENTED: %s:%d (%s)", __FILE__, __LINE__, __FUNCTION__) 38 37 39 38 namespace WebCore -
trunk/WebKitTools/ChangeLog
r18886 r18901 1 2007-01-17 Lars Knoll <lars@trolltech.com> 2 3 Reviewed by Zack 4 5 Add a message handler to DumpRenderTree that will 6 suppress all debug output coming from qDebug() statements. 7 Like this we can get rid of all the noise coming 8 from the notImplemented() macro when running the 9 layout tests. You can get it back by adding -v to 10 DumpRenderTree's command line. 11 12 Changed run-webkit-tests slightly, so we by default 13 don't fail anymore when our output differs from what 14 is generated on the Mac. Added a --strict option, so 15 that we can still see this cases and fix them one by one. 16 17 * DumpRenderTree/DumpRenderTree.qtproj/main.cpp: 18 (messageHandler): 19 (main): 20 * Scripts/run-webkit-tests: 21 1 22 2007-01-16 Lars Knoll <lars@trolltech.com> 2 23 -
trunk/WebKitTools/DumpRenderTree/DumpRenderTree.qtproj/main.cpp
r18886 r18901 28 28 29 29 #include "DumpRenderTree.h" 30 #include "qurl.h"31 #include "qdir.h"32 30 33 31 #include <qstringlist.h> 34 32 #include <qapplication.h> 33 #include <qurl.h> 34 #include <qdir.h> 35 #include <qdebug.h> 36 37 void messageHandler(QtMsgType, const char *) 38 { 39 // do nothing 40 } 35 41 36 42 … … 40 46 41 47 QStringList args = app.arguments(); 48 if (args.count() < 2) { 49 qDebug() << "Usage: DumpRenderTree [-v] filename"; 50 exit(0); 51 } 52 53 // supress debug output from Qt if not started with -v 54 if (!args.contains(QLatin1String("-v"))) 55 qInstallMsgHandler(messageHandler); 42 56 43 57 WebCore::DumpRenderTree dumper; 44 45 if (args. count() == 2 && args[1]== QLatin1String("-"))58 59 if (args.last() == QLatin1String("-")) 46 60 dumper.open(); 47 else if (args.count() == 2){48 if (!args [1].startsWith("/")49 && !args [1].startsWith("file:")) {61 else { 62 if (!args.last().startsWith("/") 63 && !args.last().startsWith("file:")) { 50 64 QString path = QDir::currentPath(); 51 65 if (!path.endsWith('/')) 52 66 path.append('/'); 53 args [1].prepend(path);67 args.last().prepend(path); 54 68 } 55 dumper.open(QUrl(args [1]));69 dumper.open(QUrl(args.last())); 56 70 } 57 71 return app.exec(); -
trunk/WebKitTools/Scripts/run-webkit-tests
r18804 r18901 93 93 my $threaded = 0; 94 94 my $verbose = 0; 95 my $use_valgrind = 0; 95 my $useValgrind = 0; 96 my $strictTesting = 0; 96 97 97 98 my $expectedTag = "expected"; … … 140 141 " -v|--verbose More verbose output (overrides --quiet)\n" . 141 142 " --debug|--release Set DumpRenderTree build configuration\n" . 142 " --valgrind Run DumpRenderTree inside valgrind (Linux only)\n"; 143 " --valgrind Run DumpRenderTree inside valgrind (Qt/Linux only)\n" . 144 " --strict Do a comparison with the output on Mac (Qt only)\n"; 143 145 144 146 # Parse out build options (--debug or --release) first … … 164 166 'threaded|t' => \$threaded, 165 167 'verbose|v' => \$verbose, 166 'valgrind' => \$use_valgrind, 168 'valgrind' => \$useValgrind, 169 'strict' => \$strictTesting, 167 170 ); 168 171 … … 373 376 } 374 377 my $expectedMac; 375 if (isQt() ) {378 if (isQt() && $strictTesting) { 376 379 if (!$resetResults && open EXPECTED, "<", "$expectedTestResultsDirectory/$base-$expectedTagMac.txt") { 377 380 $expectedMac = ""; … … 449 452 } 450 453 451 if (isQt() ) {454 if (isQt() && $strictTesting) { 452 455 if (defined $expectedMac) { 453 456 my $simplified_actual; … … 904 907 $ENV{DYLD_INSERT_LIBRARIES} = "/usr/lib/libgmalloc.dylib" if $guardMalloc; 905 908 my @args = (); 906 if ($use _valgrind) {909 if ($useValgrind) { 907 910 push @args, $tool; 908 911 } 909 912 push @args, @toolArgs; 910 if ($use _valgrind) {913 if ($useValgrind) { 911 914 $tool = "valgrind"; 912 915 }
Note: See TracChangeset
for help on using the changeset viewer.