haikuwebkit/LayoutTests/inspector/runtime/evaluate-emulateUserGesture...

10 lines
318 B
Plaintext
Raw Permalink Normal View History

Tests for Runtime emulateUserGesture option.
Web Inspector: Debugger: support emulateUserGesture parameter in Debugger.evaluateOnCallFrame https://bugs.webkit.org/show_bug.cgi?id=200272 Reviewed by Joseph Pecoraro. Source/JavaScriptCore: When paused, evaluating in the console should still respect the "Emulate User Gesture" checkbox. * inspector/protocol/Debugger.json: * inspector/agents/InspectorDebuggerAgent.h: * inspector/agents/InspectorDebuggerAgent.cpp: (Inspector::InspectorDebuggerAgent::evaluateOnCallFrame): Source/WebCore: When paused, evaluating in the console should still respect the "Emulate User Gesture" checkbox. Tests: inspector/debugger/evaluateOnCallFrame-emulateUserGesture.html inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting.html * inspector/agents/page/PageDebuggerAgent.h: * inspector/agents/page/PageDebuggerAgent.cpp: (WebCore::PageDebuggerAgent::evaluateOnCallFrame): Added. Source/WebInspectorUI: When paused, evaluating in the console should still respect the "Emulate User Gesture" checkbox. * UserInterface/Controllers/RuntimeManager.js: (WI.RuntimeManager.prototype.evaluateInInspectedWindow): * UserInterface/Protocol/Legacy/13.0/InspectorBackendCommands.js: * Versions/Inspector-iOS-13.0.json: LayoutTests: * inspector/debugger/evaluateOnCallFrame-emulateUserGesture.html: Added. * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-expected.txt: Added. * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting.html: Added. * inspector/debugger/evaluateOnCallFrame-emulateUserGesture-userIsInteracting-expected.txt: Added. * TestExpectations: * platform/wk2/TestExpectations: * inspector/runtime/evaluate-emulateUserGesture.html: Added. * inspector/runtime/evaluate-emulateUserGesture-expected.txt: Added. * inspector/runtime/evaluate-emulateUserGesture-userIsInteracting.html: Added. * inspector/runtime/evaluate-emulateUserGesture-userIsInteracting-expected.txt: Added. * inspector/runtime/evaluate-userGestureEmulation.html: Deleted. * inspector/runtime/evaluate-userGestureEmulation-expected.txt: Deleted. * inspector/runtime/evaluate-userGestureEmulation-userIsInteracting.html: Deleted. * inspector/runtime/evaluate-userGestureEmulation-userIsInteracting-expected.txt: Deleted. Rename tests from "userGestureEmulation" to "emulateUserGesture" to match the parameter. Canonical link: https://commits.webkit.org/214117@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-08-01 05:19:27 +00:00
== Running test suite: Runtime.evaluate.emulateUserGesture.userIsInteracting
-- Running test case: EvaluateWithoutEmulatingUserGesture.userIsInteracting
User is NOT Interacting
-- Running test case: EvaluateWithEmulatingUserGesture.userIsInteracting
User is Interacting