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

Unified Diff: LayoutTests/inspector/sources/debugger/frameworks-steppings.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/frameworks-steppings.html
diff --git a/LayoutTests/inspector/sources/debugger/frameworks-steppings.html b/LayoutTests/inspector/sources/debugger/frameworks-steppings.html
deleted file mode 100644
index 371c0060e0b8cb731e813ae263f09b905be91fff..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/frameworks-steppings.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="resources/framework.js"></script>
-<script>
-
-function testFunction()
-{
- debugger;
- Framework.safeRun(function callback1() {
- Framework.safeRun(Framework.empty, callback2);
- });
-}
-
-function callback2()
-{
- Framework.safeRun(Framework.empty, Framework.empty); // Should be skipped: all callbacks are inside frameworks.
- Framework.safeRun(Framework.empty, Framework.throwFrameworkException, callback3); // Should be enough to step into callback3
-}
-
-function callback3()
-{
- var func = Framework.bind(callback4, null, 1);
- func = Framework.bind(func, null, 2);
- func = Framework.bind(func, null, 3);
- Framework.safeRun(func, Framework.empty);
-}
-
-function callback4()
-{
- Framework.safeRun(Framework.doSomeWork, function() {
- return 0; // Should NOT step into this callback (otherwise too many StepIns)
- });
- try {
- Framework.throwFrameworkException("message");
- } catch (e) {
- window.ex = e;
- }
-}
-
-function test()
-{
- var frameworkRegexString = "/framework\\.js$";
- WebInspector.settingForTest("skipStackFramesPattern").set(frameworkRegexString);
-
- InspectorTest.startDebuggerTest(step1, true);
-
- function step1()
- {
- InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
- }
-
- function step2()
- {
- var actions = [
- "Print", // debugger;
- "StepInto", "StepInto", "Print", // callback1
- "StepInto", "Print", // callback2
- "StepInto", "Print", // callback2, skipped
- "StepInto", "Print", // callback3
- "StepInto", "StepInto", "StepInto", "StepInto", "Print", // callback4
- "StepInto", "Print", // callback4, skipped
- "StepInto", "Print", // callback4, inside catch
- "StepOut", "Print", // return to callback3
- "StepOver", "Print", // return to callback2
- "StepInto", "Print", // return to callback1
- ];
- InspectorTest.waitUntilPausedAndPerformSteppingActions(actions, step3);
- }
-
- function step3()
- {
- InspectorTest.completeDebuggerTest();
- }
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<input type='button' onclick='testFunction()' value='Test'/>
-<p>
-Tests stepping into/over/out with framework black-boxing.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698