| Index: LayoutTests/inspector/sources/debugger/function-display-name-call-stack.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/function-display-name-call-stack.html b/LayoutTests/inspector/sources/debugger/function-display-name-call-stack.html
|
| deleted file mode 100644
|
| index fc4b737928b5c3c443d3838163baec5c9f257f27..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/function-display-name-call-stack.html
|
| +++ /dev/null
|
| @@ -1,69 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -<script src="../../../http/tests/inspector/debugger-test.js"></script>
|
| -<script>
|
| -var error = false;
|
| -
|
| -function func1()
|
| -{
|
| - debugger;
|
| -}
|
| -func1.displayName = "my.framework.foo";
|
| -
|
| -var func2 = (function() {
|
| - var f = function() { func1(); }
|
| - f.displayName = "my.framework.bar";
|
| - return f;
|
| -})();
|
| -
|
| -var func3 = function() { func2(); }
|
| -func3.__defineGetter__("displayName", function() { error = true; throw new Error("Should not crash!"); });
|
| -
|
| -function func4() { func3(); }
|
| -func4.__defineGetter__("displayName", function() { error = true; return "FAIL: Should not execute getters!"; });
|
| -
|
| -function func5() { func4(); }
|
| -func5.displayName = "my.framework.func5";
|
| -func5.__defineSetter__("displayName", function() { error = true; throw new Error("FAIL: Should not call setter!"); });
|
| -
|
| -function func6() { func5(); }
|
| -func6.displayName = { "foo": 6, toString: function() { error = true; return "FAIL: Should not call toString!"; } };
|
| -
|
| -function testFunction()
|
| -{
|
| - (function() {
|
| - arguments.callee.displayName = "<anonymous_inside_testFunction>";
|
| - func6();
|
| - })();
|
| - console.assert(!error, "FAIL: No getter or setter or toString should have been called!");
|
| -}
|
| -testFunction.displayName = "<InspectorTest::testFunction>";
|
| -
|
| -function test()
|
| -{
|
| - InspectorTest.startDebuggerTest(step1);
|
| -
|
| - function step1()
|
| - {
|
| - InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
|
| - }
|
| -
|
| - function step2(callFrames)
|
| - {
|
| - InspectorTest.captureStackTrace(callFrames);
|
| - InspectorTest.completeDebuggerTest();
|
| - }
|
| -};
|
| -
|
| -</script>
|
| -
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>Tests that we display function's "displayName" property in the call stack.
|
| -<a href="http://code.google.com/p/chromium/issues/detail?id=17356">CrBug 17356</a>
|
| -</p>
|
| -
|
| -</body>
|
| -</html>
|
|
|