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

Unified Diff: LayoutTests/inspector/sources/debugger/show-generator-location.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/show-generator-location.html
diff --git a/LayoutTests/inspector/sources/debugger/show-generator-location.html b/LayoutTests/inspector/sources/debugger/show-generator-location.html
deleted file mode 100644
index 6c41f6c7807b1f0892b69009d78b0ad80418e395..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/show-generator-location.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/console-test.js"></script>
-<script>
-
-function forward(iter, step)
-{
- while (step-- > 0)
- iter.next();
- return iter;
-}
-
-function* gen()
-{
- yield 1;
- yield 2;
- yield 3;
-}
-
-var iterNotStarted = gen();
-var iterSuspended1 = forward(gen(), 1);
-var iterSuspended2 = forward(gen(), 2);
-var iterSuspended3 = forward(gen(), 3);
-var iterClosed = forward(gen(), 4);
-
-function test()
-{
- var panel = WebInspector.panels.sources;
-
- function performStandardTestCase(pageExpression, next)
- {
- InspectorTest.addSniffer(panel, "showUISourceCode", showUISourceCodeHook);
- InspectorTest.evaluateInPage(pageExpression, didEvaluate);
-
- function didEvaluate(remote)
- {
- panel._showGeneratorLocation(remote);
- }
-
- function showUISourceCodeHook(uiSourceCode, lineNumber, columnNumber, forceShowInPanel)
- {
- // lineNumber and columnNumber are 0-based
- ++lineNumber;
- ++columnNumber;
- InspectorTest.addResult("Generator location revealed: [" + lineNumber + ":" + columnNumber + "]");
- next();
- }
- }
-
- var expressions = [
- "iterNotStarted",
- "iterSuspended1",
- "iterSuspended2",
- "iterSuspended3",
- "iterClosed",
- ];
-
- function createTestSuiteFunction(expression)
- {
- var functionName = "test" + expression.toTitleCase();
- return eval("function " + functionName + "(next)\n" +
- "{\n" +
- " performStandardTestCase('" + expression + "', next);\n" +
- "}; " + functionName);
- }
-
- InspectorTest.runTestSuite(expressions.map(createTestSuiteFunction));
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-Tests that "Show Generator Location" jumps to the correct location.
-</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698