Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html

Issue 656083002: DevTools: remove test script-window-close-breakpoint.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html
diff --git a/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html b/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html
deleted file mode 100644
index 72a2f338aedccdc909562a3ec03b154746913dcc..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<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>
« no previous file with comments | « LayoutTests/FlakyTests ('k') | LayoutTests/inspector-enabled/sources/debugger/script-window-close-breakpoint-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698