| Index: LayoutTests/inspector/sources/debugger/debugger-step-into-custom-element-callbacks.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/debugger-step-into-custom-element-callbacks.html b/LayoutTests/inspector/sources/debugger/debugger-step-into-custom-element-callbacks.html
|
| deleted file mode 100644
|
| index 87cd10023382aa3e6fc8b0cc20895eb3dfbe2a84..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/debugger-step-into-custom-element-callbacks.html
|
| +++ /dev/null
|
| @@ -1,119 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -
|
| -function testFunction()
|
| -{
|
| - var proto = Object.create(HTMLElement.prototype);
|
| - proto.createdCallback = function createdCallback()
|
| - {
|
| - output('Invoked createdCallback.');
|
| - };
|
| - proto.attachedCallback = function attachedCallback()
|
| - {
|
| - output('Invoked attachedCallback.');
|
| - };
|
| - proto.detachedCallback = function detachedCallback()
|
| - {
|
| - output('Invoked detachedCallback.');
|
| - };
|
| - proto.attributeChangedCallback = function attributeChangedCallback()
|
| - {
|
| - output('Invoked attributeChangedCallback.');
|
| - };
|
| - var FooElement = document.registerElement('x-foo', { prototype: proto });
|
| - debugger;
|
| - var foo = new FooElement();
|
| - debugger;
|
| - foo.setAttribute('a', 'b');
|
| - debugger;
|
| - document.body.appendChild(foo);
|
| - debugger;
|
| - foo.remove();
|
| -}
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.startDebuggerTest(step1, true);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
|
| - }
|
| -
|
| - function checkTopFrameFunction(callFrames, expectedName)
|
| - {
|
| - var topFunctionName = callFrames[0].functionName;
|
| - if (expectedName === topFunctionName)
|
| - InspectorTest.addResult("PASS: Did step into event listener(" + expectedName + ").");
|
| - else
|
| - InspectorTest.addResult("FAIL: Unexpected top function: expected " + expectedName + ", found " + topFunctionName);
|
| - }
|
| -
|
| - function stepOverThenIn(name, callback)
|
| - {
|
| - InspectorTest.addResult("Stepping to " + name + "...");
|
| - WebInspector.panels.sources._stepOverButton.element.click();
|
| - InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, function() {
|
| - InspectorTest.addResult("Stepping into " + name + "...");
|
| - WebInspector.panels.sources._stepIntoButton.element.click();
|
| - InspectorTest.waitUntilResumed(InspectorTest.waitUntilPaused.bind(InspectorTest, callback));
|
| - }));
|
| - }
|
| -
|
| - function step2()
|
| - {
|
| - stepOverThenIn('constructor', step3);
|
| - }
|
| -
|
| - function step3(callFrames)
|
| - {
|
| - checkTopFrameFunction(callFrames, 'createdCallback');
|
| - InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, step4));
|
| - }
|
| -
|
| - function step4()
|
| - {
|
| - stepOverThenIn('setAttribute', step5);
|
| - }
|
| -
|
| - function step5(callFrames)
|
| - {
|
| - checkTopFrameFunction(callFrames, 'attributeChangedCallback');
|
| - InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, step6));
|
| - }
|
| -
|
| - function step6()
|
| - {
|
| - stepOverThenIn('attachedCallback', step7);
|
| - }
|
| -
|
| - function step7(callFrames)
|
| - {
|
| - checkTopFrameFunction(callFrames, 'attachedCallback');
|
| - InspectorTest.resumeExecution(InspectorTest.waitUntilPaused.bind(InspectorTest, step8));
|
| - }
|
| -
|
| - function step8()
|
| - {
|
| - stepOverThenIn('detachedCallback', step9);
|
| - }
|
| -
|
| - function step9(callFrames)
|
| - {
|
| - checkTopFrameFunction(callFrames, 'detachedCallback');
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| -}
|
| -
|
| -</script>
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>
|
| -Tests that stepping into custom element methods will lead to a pause in the callbacks.
|
| -</p>
|
| -</body>
|
| -</html>
|
|
|