DevTools: remove test script-window-close-breakpoint.html

The patch kills invalid test script-window-close-breakpoint.html.
The test itself expoits an old bug crbug.com/6773 and closes
main window instead of a programmatically created one. This
causes the layout test driver to crash on the following
test as there's no window to navigate.

BUG=423364

Review URL: https://codereview.chromium.org/656083002

git-svn-id: svn://svn.chromium.org/blink/trunk@183747 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 68a88a33
......@@ -884,7 +884,6 @@ Bug(gardener) [ Release Mavericks ] ietestcenter/css3/valuesandunits/units-000.h
Bug(gardener) [ Debug Lion ] inspector-enabled/sources/debugger/linkifier.html [ Crash Pass ]
Bug(gardener) [ Debug Win7 ] inspector-enabled/sources/debugger/linkifier.html [ Pass Timeout ]
Bug(gardener) [ Debug Win7 ] inspector-enabled/sources/debugger/script-formatter-console.html [ Pass Timeout ]
Bug(gardener) [ Debug Win7 ] inspector-enabled/sources/debugger/script-window-close-breakpoint.html [ Pass Timeout ]
webkit.org/b/90488 [ Debug Lion ] inspector-protocol/cpu-profiler/record-cpu-profile.html [ Crash Pass ]
Bug(gardener) [ Release XP ] inspector-protocol/debugger/access-obsolete-frame.html [ Crash Pass ]
webkit.org/b/90488 [ Debug Win7 ] inspector-protocol/dom/dom-setOuterHTML.html [ Crash Pass ]
......
CONSOLE MESSAGE: line 1: Starting test
CONSOLE MESSAGE: line 1: Setting breakpoint
CONSOLE MESSAGE: line 1: Calling window.close()
CONSOLE MESSAGE: line 1: Paused in breakpoint
CONSOLE MESSAGE: line 1: 0) doClose (script-window-close-breakpoint.html:10)
FAIL: main window was destroyed
<html>
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
<script>
function doClose()
{
window.close();
}
function onload()
{
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.showWebInspector();
}
runTest();
}
var test = function()
{
// This is needed because Inspector.addResult() uses output() which places elements
// into the <body> which gets disposed along with the window
function log(message) {
InspectorTest.evaluateInPage("console.log(unescape('"+ escape(message) +"'));");
}
log("Starting test");
var pane = WebInspector.panels.sources.sidebarPanes.eventListenerBreakpoints;
InspectorTest.startDebuggerTest(testCloseBreakpoint);
function testCloseBreakpoint(next)
{
log("Setting breakpoint");
pane._setBreakpoint('instrumentation:close');
log("Calling window.close()");
InspectorTest.waitUntilPaused(paused);
InspectorTest.evaluateInPage("doClose()");
function paused(callFrames)
{
log("Paused in breakpoint");
// get the first stack frame
log(InspectorTest.captureStackTraceIntoString(callFrames).split('\n')[1].trim());
pane._removeBreakpoint('instrumentation:close');
InspectorTest.completeDebuggerTest();
// After this point execution will resume and the window will close
}
}
}
</script>
</head>
<body onload="onload()">
<p>Tests the window close breakpoint.
</p>
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment