<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="resources/unformatted2.js"></script>
+<script src="resources/unformatted3.js"></script>
<script>
var test = function()
{
WebInspector.breakpointManager._storage._breakpoints = {};
var panel = WebInspector.inspectorView.showPanel("sources");
var scriptFormatter = InspectorTest.scriptFormatter();
- var sourceFrame;
- var formattedSourceFrame;
InspectorTest.runDebuggerTestSuite([
function testBreakpointsSetInFormattedAndRemoveInOriginalSource(next)
{
- InspectorTest.showScriptSource("unformatted2.js", didShowScriptSource);
+ InspectorTest.showScriptSource("unformatted3.js", didShowScriptSource);
function didShowScriptSource(frame)
{
- sourceFrame = frame;
InspectorTest.addSniffer(WebInspector.ScriptFormatterEditorAction.prototype, "_updateButton", uiSourceCodeScriptFormatted);
scriptFormatter._toggleFormatScriptSource();
}
function uiSourceCodeScriptFormatted()
{
- formattedSourceFrame = panel.visibleView;
+ var formattedSourceFrame = panel.visibleView;
InspectorTest.setBreakpoint(formattedSourceFrame, 3, "", true);
InspectorTest.waitUntilPaused(pausedInF2);
InspectorTest.evaluateInPageWithTimeout("f2()");