| Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
|
| index 9c369007e2951492fd10779140b9e4b4213c7516..cd7c4a519409afdcf41a5430d5345a3f2b56b9be 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-breakpoints/event-listener-breakpoints.html
|
| @@ -4,7 +4,7 @@
|
| <script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| <script>
|
|
|
| -function testElementEventListener()
|
| +function testElementClicked()
|
| {
|
| return 0;
|
| }
|
| @@ -12,15 +12,8 @@
|
| function addListenerAndClick()
|
| {
|
| var element = document.getElementById("test");
|
| - element.addEventListener("click", testElementEventListener, true);
|
| + element.addEventListener("click", testElementClicked, true);
|
| element.click();
|
| -}
|
| -
|
| -function addListenerAndPointerDown()
|
| -{
|
| - var element = document.getElementById("test");
|
| - element.addEventListener("pointerdown", testElementEventListener, true);
|
| - element.dispatchEvent(new PointerEvent("pointerdown"));
|
| }
|
|
|
| function timerFired()
|
| @@ -66,7 +59,7 @@
|
| function test()
|
| {
|
| var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints;
|
| - var testFunctions = [
|
| + InspectorTest.runDebuggerTestSuite([
|
| function testClickBreakpoint(next)
|
| {
|
| pane._setBreakpoint("listener:click");
|
| @@ -137,33 +130,7 @@
|
| InspectorTest.resumeExecution(next);
|
| }
|
| }
|
| - ];
|
| -
|
| - if(window.PointerEvent) {
|
| - testFunctions.push(
|
| - function testPointerEventBreakpoint(next)
|
| - {
|
| - pane._setBreakpoint("listener:pointerdown");
|
| - InspectorTest.waitUntilPaused(paused);
|
| - InspectorTest.evaluateInPageWithTimeout("addListenerAndPointerDown()");
|
| -
|
| - function paused(callFrames, reason, breakpointIds, asyncStackTrace, auxData)
|
| - {
|
| - InspectorTest.captureStackTrace(callFrames);
|
| - printEventTargetName(auxData);
|
| - pane._removeBreakpoint("listener:pointerdown");
|
| - InspectorTest.resumeExecution(resumed);
|
| - }
|
| -
|
| - function resumed()
|
| - {
|
| - InspectorTest.evaluateInPage("addListenerAndPointerDown()", next);
|
| - }
|
| - }
|
| - );
|
| - }
|
| -
|
| - InspectorTest.runDebuggerTestSuite(testFunctions);
|
| + ]);
|
|
|
| function printEventTargetName(auxData)
|
| {
|
|
|