diff options
Diffstat (limited to 'Tools/TestWebKitAPI/win')
-rw-r--r-- | Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp | 7 | ||||
-rw-r--r-- | Tools/TestWebKitAPI/win/TestWebKitAPI.vcproj | 24 | ||||
-rwxr-xr-x | Tools/TestWebKitAPI/win/copy-resources.cmd | 1 |
3 files changed, 31 insertions, 1 deletions
diff --git a/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp b/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp index dede4b2..01a76eb 100644 --- a/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp +++ b/Tools/TestWebKitAPI/win/PlatformWebViewWin.cpp @@ -72,11 +72,16 @@ PlatformWebView::~PlatformWebView() WKRelease(m_view); } -WKPageRef PlatformWebView::page() +WKPageRef PlatformWebView::page() const { return WKViewGetPage(m_view); } +void PlatformWebView::resizeTo(unsigned width, unsigned height) +{ + ::SetWindowPos(WKViewGetWindow(m_view), 0, 0, 0, width, height, SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS); +} + void PlatformWebView::simulateSpacebarKeyPress() { HWND window = WKViewGetWindow(m_view); diff --git a/Tools/TestWebKitAPI/win/TestWebKitAPI.vcproj b/Tools/TestWebKitAPI/win/TestWebKitAPI.vcproj index a2412ef..0c806a8 100644 --- a/Tools/TestWebKitAPI/win/TestWebKitAPI.vcproj +++ b/Tools/TestWebKitAPI/win/TestWebKitAPI.vcproj @@ -456,6 +456,14 @@ > </File> <File + RelativePath="..\Tests\WebKit2\RestoreSessionStateContainingFormData.cpp" + > + </File> + <File + RelativePath="..\Tests\WebKit2\simple-form.html" + > + </File> + <File RelativePath="..\Tests\WebKit2\simple.html" > </File> @@ -487,6 +495,14 @@ > </File> <File + RelativePath="..\Tests\WebKit2\win\HideFindIndicator.cpp" + > + </File> + <File + RelativePath="..\Tests\WebKit2\win\ResizeViewWhileHidden.cpp" + > + </File> + <File RelativePath="..\Tests\WebKit2\win\WMCloseCallsUIClientClose.cpp" > </File> @@ -502,6 +518,14 @@ </Filter> </Filter> <File + RelativePath="..\JavaScriptTest.cpp" + > + </File> + <File + RelativePath="..\JavaScriptTest.h" + > + </File> + <File RelativePath="..\PlatformUtilities.cpp" > </File> diff --git a/Tools/TestWebKitAPI/win/copy-resources.cmd b/Tools/TestWebKitAPI/win/copy-resources.cmd index dc56479..b0ef3df 100755 --- a/Tools/TestWebKitAPI/win/copy-resources.cmd +++ b/Tools/TestWebKitAPI/win/copy-resources.cmd @@ -12,6 +12,7 @@ for %%f in ( ..\Tests\WebKit2\find.html ..\Tests\WebKit2\icon.png ..\Tests\WebKit2\simple.html + ..\Tests\WebKit2\simple-form.html ..\Tests\WebKit2\spacebar-scrolling.html ) do ( xcopy /y /d %%f "%ResourcesDirectory%" |