⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 194398 in webkit


Ignore:
Timestamp:
Dec 23, 2015, 3:25:28 PM (11 years ago)
Author:
Brent Fulgham
Message:

Web Inspector: add support for running protocol-test.js tests on Windows
https://bugs.webkit.org/show_bug.cgi?id=148037
<rdar://problem/22292237>

Reviewed by Simon Fraser.

Source/WebKit/win:

Provide API for WebKit.dll clients to request its CFBundleRef.

  • WebKitCOMAPI.cpp:

(webKitBundle): Added.

  • WebKitCOMAPI.h:

Tools:

  • DumpRenderTree/win/TestRunnerWin.cpp:

(TestRunner::inspectorTestStubURL): Provide implementation.

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/win/ChangeLog

    r194322 r194398  
     12015-12-23  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Web Inspector: add support for running protocol-test.js tests on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=148037
     5        <rdar://problem/22292237>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Provide API for WebKit.dll clients to request its CFBundleRef.
     10       
     11        * WebKitCOMAPI.cpp:
     12        (webKitBundle): Added.
     13        * WebKitCOMAPI.h:
     14
    1152015-12-20  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/WebKit/win/WebKitCOMAPI.cpp

    r188662 r194398  
    3030
    3131#include <WebCore/COMPtr.h>
     32#include <WebCore/WebCoreBundleWin.h>
    3233
    3334struct CLSIDHash {
     
    7576    return factory->CreateInstance(pUnkOuter, riid, ppvObject);
    7677}
     78
     79CFBundleRef webKitBundle()
     80{
     81    return WebCore::webKitBundle();
     82}
  • trunk/Source/WebKit/win/WebKitCOMAPI.h

    r188662 r194398  
    11/*
    2  * Copyright (C) 2009 Apple Inc. All rights reserved.
     2 * Copyright (C) 2009, 2015 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    4343HRESULT WEBKIT_API WebKitCreateInstance(REFCLSID, IUnknown* pUnkOuter, REFIID, _COM_Outptr_ void** ppvObject);
    4444
     45typedef struct __CFBundle* CFBundleRef;
     46CFBundleRef WEBKIT_API webKitBundle();
     47
    4548}
    4649
  • trunk/Tools/ChangeLog

    r194397 r194398  
     12015-12-23  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Web Inspector: add support for running protocol-test.js tests on Windows
     4        https://bugs.webkit.org/show_bug.cgi?id=148037
     5        <rdar://problem/22292237>
     6
     7        Reviewed by Simon Fraser.
     8
     9        * DumpRenderTree/win/TestRunnerWin.cpp:
     10        (TestRunner::inspectorTestStubURL): Provide implementation.
     11
    1122015-12-23  Eric Carlson  <eric.carlson@apple.com>
    213
  • trunk/Tools/DumpRenderTree/win/TestRunnerWin.cpp

    r188709 r194398  
    10961096JSStringRef TestRunner::inspectorTestStubURL()
    10971097{
    1098     // FIXME: Implement this to support Web Inspector tests using `protocol-test.js`.
    1099     // See https://bugs.webkit.org/show_bug.cgi?id=148025.
    1100     printf("ERROR: TestRunner::inspectorTestStubURL() not implemented\n");
    1101 
    1102     return nullptr;
     1098    CFBundleRef webkitBundle = webKitBundle();
     1099    if (!webkitBundle)
     1100        return nullptr;
     1101
     1102    RetainPtr<CFURLRef> url = adoptCF(CFBundleCopyResourceURL(webkitBundle, CFSTR("TestStub"), CFSTR("html"), CFSTR("WebInspectorUI")));
     1103    if (!url)
     1104        return nullptr;
     1105
     1106    return JSStringCreateWithCFString(CFURLGetString(url.get()));
    11031107}
    11041108
Note: See TracChangeset for help on using the changeset viewer.