Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / sources / debugger / script-formatter-breakpoints-3.html
index e6aed33..86e0c22 100644 (file)
@@ -2,31 +2,28 @@
 <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()");