| 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>
|
|
|