haikuwebkit/LayoutTests/gamepad/gamepad-api-expected.txt

6 lines
147 B
Plaintext
Raw Permalink Normal View History

WK2 Gamepad layout test support. https://bugs.webkit.org/show_bug.cgi?id=134671 Source/WebCore: Reviewed by Alex Christensen. No new tests (Covered by changes to existing tests). Add a MockGamepadProvider and expose it in WebCoreTestSupport. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * Modules/gamepad/Gamepad.cpp: (WebCore::Gamepad::Gamepad): * bindings/generic/RuntimeEnabledFeatures.cpp: (WebCore::RuntimeEnabledFeatures::reset): Deleted. Gamepads should either always be enabled during tests (As in Mac WK2), or never enabled (As in all other platforms). * bindings/generic/RuntimeEnabledFeatures.h: * platform/gamepad/GamepadProvider.h: (WebCore::GamepadProvider::isMockGamepadProvider): * testing/MockGamepad.cpp: Copied from Source/WebKit2/Shared/Gamepad/GamepadData.cpp. (WebCore::MockGamepad::MockGamepad): (WebCore::MockGamepad::updateDetails): (WebCore::MockGamepad::setAxisValue): (WebCore::MockGamepad::setButtonValue): * testing/MockGamepad.h: Copied from Source/WebKit2/UIProcess/Gamepad/UIGamepad.h. * testing/MockGamepadProvider.cpp: Added. (WebCore::MockGamepadProvider::singleton): (WebCore::MockGamepadProvider::MockGamepadProvider): (WebCore::MockGamepadProvider::startMonitoringGamepads): (WebCore::MockGamepadProvider::stopMonitoringGamepads): (WebCore::MockGamepadProvider::setMockGamepadDetails): (WebCore::MockGamepadProvider::connectMockGamepad): (WebCore::MockGamepadProvider::disconnectMockGamepad): (WebCore::MockGamepadProvider::setMockGamepadAxisValue): (WebCore::MockGamepadProvider::setMockGamepadButtonValue): (WebCore::MockGamepadProvider::gamepadInputActivity): * testing/MockGamepadProvider.h: Copied from Source/WebKit2/WebProcess/Gamepad/WebGamepadProvider.h. (WebCore::MockGamepadProvider::~MockGamepadProvider): * testing/js/WebCoreTestSupport.cpp: (WebCoreTestSupport::installMockGamepadProvider): (WebCoreTestSupport::connectMockGamepad): (WebCoreTestSupport::disconnectMockGamepad): (WebCoreTestSupport::setMockGamepadDetails): (WebCoreTestSupport::setMockGamepadAxisValue): (WebCoreTestSupport::setMockGamepadButtonValue): * testing/js/WebCoreTestSupport.h: Source/WebKit2: Reviewed by Alex Christensen. - Teach the UIGamepadProvider to use the default shared provider. - Especially if its the MockGamepadProvider, don't overwrite it. * Shared/Gamepad/GamepadData.cpp: (WebKit::GamepadData::GamepadData): (WebKit::GamepadData::encode): (WebKit::GamepadData::decode): (WebKit::GamepadData::loggingString): (WebKit::GamepadData::isNull): Deleted. * Shared/Gamepad/GamepadData.h: (WebKit::GamepadData::GamepadData): (WebKit::GamepadData::isNull): (WebKit::GamepadData::index): (WebKit::GamepadData::axisValues): (WebKit::GamepadData::buttonValues): * UIProcess/Gamepad/UIGamepad.h: * UIProcess/Gamepad/UIGamepadProvider.cpp: (WebKit::UIGamepadProvider::UIGamepadProvider): (WebKit::UIGamepadProvider::~UIGamepadProvider): (WebKit::UIGamepadProvider::platformGamepadInputActivity): (WebKit::UIGamepadProvider::startMonitoringGamepads): (WebKit::UIGamepadProvider::stopMonitoringGamepads): (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider): * UIProcess/Gamepad/UIGamepadProvider.h: * UIProcess/Gamepad/mac/UIGamepadProviderHID.cpp: (WebKit::UIGamepadProvider::platformSetDefaultGamepadProvider): (WebKit::UIGamepadProvider::platformStopMonitoringInput): (WebKit::UIGamepadProvider::platformStartMonitoringInput): (WebKit::UIGamepadProvider::platformStartMonitoringGamepads): Deleted. (WebKit::UIGamepadProvider::platformStopMonitoringGamepads): Deleted. (WebKit::UIGamepadProvider::platformGamepads): Deleted. * UIProcess/WebPageProxy.h: * WebProcess/Gamepad/WebGamepad.cpp: (WebKit::WebGamepad::WebGamepad): (WebKit::WebGamepad::updateValues): * WebProcess/Gamepad/WebGamepad.h: * WebProcess/Gamepad/WebGamepadProvider.cpp: (WebKit::WebGamepadProvider::gamepadConnected): * WebProcess/Gamepad/WebGamepadProvider.h: * WebProcess/WebPage/WebPage.h: * WebProcess/WebProcess.h: Tools: Reviewed by Alex Christensen. Have the injected bundle expose the MockGamepadProvider to the UI process, which will then feed back into the UIGamepadProvider. Also, fool NSApplication into treating the most recently created "isKeyWindow" of the test windows as the actual keyWindow for the test runner, which will allow the view to get gamepad updates. * WebKitTestRunner/Configurations/WebKitTestRunner.xcconfig: * WebKitTestRunner/InjectedBundle/TestRunner.cpp: (WTR::TestRunner::setMockGamepadDetails): (WTR::TestRunner::setMockGamepadAxisValue): (WTR::TestRunner::setMockGamepadButtonValue): * WebKitTestRunner/PlatformWebView.h: * WebKitTestRunner/TestController.cpp: (WTR::TestController::initialize): * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveSynchronousMessageFromInjectedBundle): (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Deleted. * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: * WebKitTestRunner/ios/PlatformWebViewIOS.mm: (-[WebKitTestRunnerWindow initWithFrame:]): (-[WebKitTestRunnerWindow dealloc]): (WTR::PlatformWebView::keyWindow): * WebKitTestRunner/ios/TestControllerIOS.mm: (WTR::wtr_NSApplication_keyWindow): (WTR::TestController::platformInitialize): * WebKitTestRunner/mac/PlatformWebViewMac.mm: (+[WebKitTestRunnerWindow _WTR_keyWindow]): (-[WebKitTestRunnerWindow initWithContentRect:styleMask:backing:defer:]): (-[WebKitTestRunnerWindow dealloc]): (WTR::PlatformWebView::keyWindow): * WebKitTestRunner/mac/TestControllerMac.mm: (WTR::wtr_NSApplication_keyWindow): (WTR::TestController::platformInitialize): * WebKitTestRunner/mac/main.mm: LayoutTests: Reviewed by Alex Christensen. * gamepad/gamepad-api-expected.txt: * gamepad/gamepad-api.html: * gamepad/gamepad-out-of-range-crasher-expected.txt: Removed. * gamepad/gamepad-out-of-range-crasher.html: Removed. * gamepad/gamepad-polling-access-expected.txt: * gamepad/gamepad-polling-access.html: * platform/mac/TestExpectations: * platform/mac-wk1/TestExpectations: * platform/mac-wk2/fast/dom/navigator-detached-no-crash-expected.txt: Added. Canonical link: https://commits.webkit.org/179243@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-08-23 19:41:00 +00:00
PASS navigator.getGamepads is defined.
Move gamepad to Modules/ (+ some cleanup) https://bugs.webkit.org/show_bug.cgi?id=72785 Patch by Scott Graham <scottmg@chromium.org> on 2011-11-19 Reviewed by Adam Barth. Source/WebCore: Move main files from page/ to Modules/gamepad/. #include guard the gamepad header inclusions in Navigator.cpp to avoid including for ports that do not enable GAMEPAD. * Modules/gamepad/Gamepad.cpp: Renamed from Source/WebCore/page/Gamepad.cpp. (WebCore::Gamepad::Gamepad): (WebCore::Gamepad::axes): (WebCore::Gamepad::buttons): (WebCore::Gamepad::~Gamepad): * Modules/gamepad/Gamepad.h: Renamed from Source/WebCore/page/Gamepad.h. * Modules/gamepad/Gamepad.idl: Renamed from Source/WebCore/page/Gamepad.idl. * Modules/gamepad/GamepadList.cpp: Renamed from Source/WebCore/page/GamepadList.cpp. (WebCore::GamepadList::~GamepadList): (WebCore::GamepadList::set): (WebCore::GamepadList::length): (WebCore::GamepadList::item): * Modules/gamepad/GamepadList.h: Renamed from Source/WebCore/page/GamepadList.h. (WebCore::GamepadList::create): (WebCore::GamepadList::GamepadList): * Modules/gamepad/GamepadList.idl: Renamed from Source/WebCore/page/GamepadList.idl. * WebCore.gyp/WebCore.gyp: * WebCore.gypi: * page/Navigator.cpp: LayoutTests: Use standard pre/post js test harness rather than custom one. * gamepad/gamepad-api-expected.txt: * gamepad/gamepad-api.html: * gamepad/gamepad-test.js: Removed. Canonical link: https://commits.webkit.org/89349@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-11-19 20:51:42 +00:00
PASS successfullyParsed is true
TEST COMPLETE
IDL changes for gamepad support https://bugs.webkit.org/show_bug.cgi?id=71753 Patch by Scott Graham <scottmg@chromium.org> on 2011-11-18 Reviewed by Adam Barth. Source/WebCore: IDL changes and associated plumbing to expose list of gamepad objects on navigator object (per current spec). Full patch is https://bugs.webkit.org/show_bug.cgi?id=69451. Only basic existence test until more plumbing in future patches. Test: gamepad/gamepad-api.html * WebCore.gypi: * bindings/generic/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setWebkitGamepadsEnabled): (WebCore::RuntimeEnabledFeatures::webkitGamepadsEnabled): * page/Gamepad.cpp: Added. (WebCore::Gamepad::Gamepad): (WebCore::Gamepad::axes): (WebCore::Gamepad::buttons): (WebCore::Gamepad::~Gamepad): * page/Gamepad.h: Added. * page/Gamepad.idl: Added. * page/GamepadList.cpp: Added. (WebCore::GamepadList::~GamepadList): (WebCore::GamepadList::set): (WebCore::GamepadList::length): (WebCore::GamepadList::item): * page/GamepadList.h: Added. (WebCore::GamepadList::create): (WebCore::GamepadList::GamepadList): * page/GamepadList.idl: Added. * page/Navigator.cpp: (WebCore::Navigator::webkitGamepads): * page/Navigator.h: * page/Navigator.idl: Source/WebKit/chromium: Update to use vendor-prefixed enable. * src/WebRuntimeFeatures.cpp: (WebKit::WebRuntimeFeatures::enableGamepad): (WebKit::WebRuntimeFeatures::isGamepadEnabled): Tools: Runtime enable gamepad in chromium test shell. * DumpRenderTree/chromium/TestShell.cpp: (TestShell::TestShell): LayoutTests: Add basic api existence test. * gamepad/gamepad-api-expected.txt: Added. * gamepad/gamepad-api.html: Added. * gamepad/gamepad-test.js: Added. (logConsole): (testExpected): (reportExpected): (waitForEventAndEnd): (waitForEvent._eventCallback): (waitForEvent): (waitForEventAndTest._eventCallback): (waitForEventAndTest): (waitForEventTestAndEnd): (endTest): (logResult): (consoleWrite): * platform/chromium/fast/dom/navigator-detached-no-crash-expected.txt: * platform/efl/Skipped: * platform/gtk/Skipped: * platform/mac/Skipped: * platform/qt/Skipped: * platform/win/Skipped: * platform/wincairo/Skipped: Canonical link: https://commits.webkit.org/89322@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100833 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2011-11-19 02:03:15 +00:00
Make sure the main polling access point exists on navigator.