[WK2][Mac] WebKitTestRunner doesn't force system appearance
authorap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2013 06:11:10 +0000 (06:11 +0000)
committerap@apple.com <ap@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 29 Aug 2013 06:11:10 +0000 (06:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=120437

Reviewed by Darin Adler.

* WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
(WTR::InjectedBundle::platformInitialize): Set AppleAquaColorVariant,
AppleHighlightColor and AppleOtherHighlightColor to the same values that DRT uses.
Fixed formatting.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@154805 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm

index 342a536..1ed9bf6 100644 (file)
@@ -1,3 +1,15 @@
+2013-08-28  Alexey Proskuryakov  <ap@apple.com>
+
+        [WK2][Mac] WebKitTestRunner doesn't force system appearance
+        https://bugs.webkit.org/show_bug.cgi?id=120437
+
+        Reviewed by Darin Adler.
+
+        * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
+        (WTR::InjectedBundle::platformInitialize): Set AppleAquaColorVariant,
+        AppleHighlightColor and AppleOtherHighlightColor to the same values that DRT uses.
+        Fixed formatting.
+
 2013-08-16  Ryosuke Niwa  <rniwa@webkit.org>
 
         <https://webkit.org/b/119806> [Mac] Add a way to easily test attributed string generation
index 576654f..e3e1f16 100644 (file)
@@ -39,17 +39,23 @@ namespace WTR {
 
 void InjectedBundle::platformInitialize(WKTypeRef)
 {
+    static const int NoFontSmoothing = 0;
+    static const int BlueTintedAppearance = 1;
+
     NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
-        [NSNumber numberWithInteger:4],   @"AppleAntiAliasingThreshold",
-        [NSNumber numberWithInteger:0],   @"AppleFontSmoothing",
+        [NSNumber numberWithInteger:4], @"AppleAntiAliasingThreshold",
+        [NSNumber numberWithInteger:NoFontSmoothing], @"AppleFontSmoothing",
+        [NSNumber numberWithInteger:BlueTintedAppearance], @"AppleAquaColorVariant",
+        @"0.709800 0.835300 1.000000", @"AppleHighlightColor",
+        @"0.500000 0.500000 0.500000", @"AppleOtherHighlightColor",
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
-        [NSNumber numberWithBool:NO],     @"NSScrollAnimationEnabled",
+        [NSNumber numberWithBool:NO], @"NSScrollAnimationEnabled",
 #else
-        [NSNumber numberWithBool:NO],     @"AppleScrollAnimationEnabled",
+        [NSNumber numberWithBool:NO], @"AppleScrollAnimationEnabled",
 #endif
-        [NSNumber numberWithBool:NO],     @"NSOverlayScrollersEnabled",
-        @"Always",                        @"AppleShowScrollBars",
-        [NSArray arrayWithObject:@"en"],  @"AppleLanguages",
+        [NSNumber numberWithBool:NO], @"NSOverlayScrollersEnabled",
+        @"Always", @"AppleShowScrollBars",
+        [NSArray arrayWithObject:@"en"], @"AppleLanguages",
         [NSDictionary dictionaryWithObjectsAndKeys:@"notational", @"notationl", nil], @"NSTestCorrectionDictionary",
         nil];