Bug 41653

Summary: Add new WebKitTestRunner project for Windows
Product: WebKit Reporter: Alice Liu <alice.barraclough>
Component: Tools / TestsAssignee: Alice Liu <alice.barraclough>
Status: RESOLVED FIXED    
Severity: Normal CC: sam, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows Vista   
Attachments:
Description Flags
patch sam: review+

Description Alice Liu 2010-07-05 23:06:46 PDT
Add new WebKitTestRunner project for Windows.  bug 41086 was for mac.
Comment 1 Alice Liu 2010-07-05 23:22:46 PDT
Created attachment 60590 [details]
patch
Comment 2 WebKit Review Bot 2010-07-05 23:24:53 PDT
Attachment 60590 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style', '--no-squash']" exit_code: 1
WebKitTools/WebKitTestRunner/win/TestControllerWin.cpp:26:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/win/PlatformWebViewWin.cpp:26:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/win/TestInvocationWin.cpp:26:  Found header this file implements before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
WebKitTools/WebKitTestRunner/win/main.cpp:26:  Found other header before WebCore config.h. Should be: config.h, primary header, blank line, and then alphabetically sorted.  [build/include_order] [4]
Total errors found: 4 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alice Liu 2010-07-05 23:33:25 PDT
(In reply to comment #2)
> Attachment 60590 [details] did not pass style-queue:

hrm, I'm confused.  I don't think I want to include config.h.  That causes build problems.
Comment 4 Sam Weinig 2010-07-06 08:12:27 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > Attachment 60590 [details] [details] did not pass style-queue:
> 
> hrm, I'm confused.  I don't think I want to include config.h.  That causes build problems.

Yeah. Ignore that.
Comment 5 Sam Weinig 2010-07-06 08:16:43 PDT
Comment on attachment 60590 [details]
patch


>          Reviewed by Eric Seidel.
> Index: WebKitTools/WebKitTestRunner/WebKitTestRunnerPrefix.h
> ===================================================================
> --- WebKitTools/WebKitTestRunner/WebKitTestRunnerPrefix.h	(revision 62511)
> +++ WebKitTools/WebKitTestRunner/WebKitTestRunnerPrefix.h	(working copy)
> @@ -27,4 +27,9 @@
>  #include <Cocoa/Cocoa.h>
>  #endif
>  
> +// If we don't define these, they get defined in windef.h. 
> +// We want to use std::min and std::max
> +#define max max
> +#define min min

I think these probably want to be behind a #if PLATFORM(WIN) or some such.

Otherwise, r=me.
Comment 6 Alice Liu 2010-07-08 13:19:02 PDT
http://trac.webkit.org/changeset/62825