Index: LayoutTests/dart/inspector/deferred-import.html |
diff --git a/LayoutTests/dart/inspector/deferred-import.html b/LayoutTests/dart/inspector/deferred-import.html |
index 8777ea8ef8a3a0eb73030dd0e8a0ff7e81c8670d..e67e3bb91110235b9054542311b4173831c9644a 100644 |
--- a/LayoutTests/dart/inspector/deferred-import.html |
+++ b/LayoutTests/dart/inspector/deferred-import.html |
@@ -30,8 +30,6 @@ function test() |
{ |
// Break within the body of the closure method. |
setBreakpointAndWaitUntilPaused('deferred-import-library.dart', 4, didPauseInDart); |
- InspectorTest.runTestFunction(); |
- InspectorTest.waitUntilPaused(didPauseInDart); |
} |
function didPauseInDart(callFrames) |
@@ -44,8 +42,12 @@ function test() |
function setBreakpointAndWaitUntilPaused(urlRegex, lineNumber, pausedCallback) |
{ |
- var expectedBreakpointId; |
- WebInspector.debuggerModel._agent.setBreakpointByUrl(lineNumber, undefined, urlRegex, 0, "", undefined, "dart", undefined); |
+ InspectorTest.DebuggerAgent.invoke_setBreakpointByUrl({urlRegex: urlRegex, lineNumber:lineNumber}, step2); |
+ |
+ function step2(result) |
+ { |
+ InspectorTest.runTestFunctionAndWaitUntilPaused(pausedCallback); |
+ } |
} |
}; |
</script> |