Index: LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-4.html |
diff --git a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html b/LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-4.html |
similarity index 88% |
rename from LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html |
rename to LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-4.html |
index 77a7f92c7b389781e1907f96c0cd18aafdf816ac..c9cf37dc0ae066d13be6626771aa117e5f98378c 100644 |
--- a/LayoutTests/inspector/sources/debugger/script-formatter-breakpoints-4.html |
+++ b/LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-4.html |
@@ -2,7 +2,7 @@ |
<head> |
<script src="../../../http/tests/inspector/inspector-test.js"></script> |
<script src="../../../http/tests/inspector/debugger-test.js"></script> |
-<script src="resources/unformatted4.js"></script> |
+<script src="../../../inspector/sources/debugger/resources/unformatted4.js"></script> |
<script> |
@@ -13,6 +13,15 @@ function f1() |
return 0; |
} |
+function onload() |
+{ |
+ if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+ testRunner.showWebInspector(); |
+ } |
+ runTest(); |
+} |
+ |
var test = function() |
{ |
WebInspector.breakpointManager._storage._breakpoints = {}; |
@@ -42,7 +51,7 @@ var test = function() |
{ |
InspectorTest.addResult("Removing breakpoint."); |
var formattedSourceFrame = panel.visibleView; |
- InspectorTest.removeBreakpoint(formattedSourceFrame, 16); |
+ InspectorTest.removeBreakpoint(formattedSourceFrame, 19); |
InspectorTest.addResult("Unformatting."); |
scriptFormatter._discardFormattedUISourceCodeScript(panel.visibleView.uiSourceCode()); |
var breakpoints = WebInspector.breakpointManager._storage._setting.get(); |
@@ -55,7 +64,7 @@ var test = function() |
} |
</script> |
</head> |
-<body onload="runTest()"> |
+<body onload="onload()"> |
<p>Tests the script formatting is working fine with breakpoints. |
</p> |
</body> |