Commit de06c0c7 authored by kozyatinskiy's avatar kozyatinskiy Committed by Commit bot

[DevTools] Removed obsolete JSC regression tests

BUG=451577
TBR=pfeldman@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/1550823002

Cr-Commit-Position: refs/heads/master@{#367006}
parent cc15c872
Tests for a crash caused by inaccurate Activation records. <rdar://problem/8525907> Crash in debugger beneath MarkStack::drain @ me.com, ibm.com
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
<script>
var closures = [];
function makeClosure() {
var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10; // Make a lot of potentially captured variables.
return function (){ return v1; }; // But only capture one in optimizing compiles.
}
for (var i = 0; i < 100; ++i) {
closures.push(makeClosure());
}
function tryCrash() {
makeClosure(); // Force recompilation.
// At this point, we should have 100 activations that captured 1 variable
// but think they captured 10. If so, GC should make them crash.
if (window.GCController)
GCController.collect();
else {
for (var i = 0; i < 10000; ++i)
new Object;
}
}
function test() {
InspectorTest.startDebuggerTest(function () {
InspectorTest.evaluateInPage("tryCrash()");
InspectorTest.completeDebuggerTest();
});
}
window.onload = runTest;
</script>
<p>
Tests for a crash caused by inaccurate Activation records.
&lt;rdar://problem/8525907&gt; Crash in debugger beneath MarkStack::drain @ me.com, ibm.com
</p>
Tests for a crash when paused at a breakpoint caused by inaccurate Activation records. Bug 57120
Script source was shown.
Set timer for test function.
Script execution paused.
Call stack:
0) (debugger-activation-crash2.html)
1) testFunction (debugger-activation-crash2.html)
Script execution resumed.
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
<script>
var closures = [];
function makeClosure() {
var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10; // Make a lot of potentially captured variables.
return function () {
var x = v1; // But only capture one in optimizing compiles.
return x;
};
}
for (var i = 0; i < 100; ++i) {
closures.push(makeClosure());
}
closures[0](); // Force compilation.
function testFunction() {
closures[0](); // Force recompilation.
// At this point, closures[0] captured 1 variable but thinks it captured 10.
// If so, stopping at a breakpoint should make it crash.
}
function test() {
InspectorTest.startDebuggerTest(step1);
function step1()
{
InspectorTest.showScriptSource("debugger-activation-crash2.html", step2);
}
function step2(sourceFrame)
{
InspectorTest.addResult("Script source was shown.");
InspectorTest.setBreakpoint(sourceFrame, 8, "", true);
InspectorTest.runTestFunctionAndWaitUntilPaused(step3);
}
function step3(callFrames)
{
InspectorTest.captureStackTrace(callFrames, null, { dropLineNumbers: true });
InspectorTest.completeDebuggerTest();
}
}
window.onload = runTest;
</script>
<p>
Tests for a crash when paused at a breakpoint caused by inaccurate Activation records.
<a href="https://bugs.webkit.org/show_bug.cgi?id=57120">Bug 57120</a>
</p>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment