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

Unified Diff: LayoutTests/inspector/sources/debugger/callstack-placards-discarded.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/sources/debugger/callstack-placards-discarded.html
diff --git a/LayoutTests/inspector/sources/debugger/callstack-placards-discarded.html b/LayoutTests/inspector/sources/debugger/callstack-placards-discarded.html
deleted file mode 100644
index 32b298daf9c8f8d75d491adb0c5868514b0e9a85..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/callstack-placards-discarded.html
+++ /dev/null
@@ -1,75 +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()
-{
- debugger;
-}
-
-var test = function()
-{
- InspectorTest.runDebuggerTestSuite([
- function testCallStackPlacardsDiscarded(next)
- {
- InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.DebuggerPaused, didPause, this);
- var previousCount = undefined;
- function didPause(event)
- {
- InspectorTest.addResult("Received DebuggerPaused event.");
- var callFrame = event.data.callFrames[0];
- InspectorTest.addResult("Function name: " + callFrame.functionName);
- var count = liveLocationsCount();
- if (previousCount !== undefined && count !== previousCount)
- InspectorTest.addResult("FAILED: Live locations count has changed!");
- previousCount = count;
- }
-
- InspectorTest.showScriptSource("callstack-placards-discarded.html", didShowScriptSource);
- function didShowScriptSource(sourceFrame)
- {
- InspectorTest.addResult("Script source was shown.");
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPause1);
- }
- function didPause1()
- {
- InspectorTest.resumeExecution(didResume1)
- }
- function didResume1()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(didPause2);
- }
- function didPause2()
- {
- InspectorTest.resumeExecution(didResume2)
- }
- function didResume2()
- {
- next();
- }
- },
- ]);
-
- function liveLocationsCount()
- {
- var count = 0;
- var infos = WebInspector.debuggerWorkspaceBinding._targetToData.get(InspectorTest.debuggerModel.target()).scriptDataMap.valuesArray();
- infos.forEach(function(info) {
- count += info._locations.size;
- });
- return count;
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that RawSourceCode listeners count won't grow on each script pause. <a href="https://bugs.webkit.org/show_bug.cgi?id=70996">Bug 70996</a>
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698