| Index: LayoutTests/dart/inspector/debugger.html
|
| diff --git a/LayoutTests/dart/inspector/debugger.html b/LayoutTests/dart/inspector/debugger.html
|
| index aa72e4672cd033fdc70bba7cf729caf4ca0e3479..05d7d5f47d31f9593bc876b34416bd5ef11d3b5e 100644
|
| --- a/LayoutTests/dart/inspector/debugger.html
|
| +++ b/LayoutTests/dart/inspector/debugger.html
|
| @@ -5,8 +5,8 @@
|
| <script type="application/dart" src="debugger.dart"></script>
|
|
|
| <script>
|
| -function postMessageToDart()
|
| -{
|
| +
|
| +function testFunction() {
|
| window.postMessage('fromJS', '*');
|
| }
|
|
|
| @@ -23,6 +23,7 @@ window.addEventListener('load', function()
|
|
|
| function test()
|
| {
|
| + var panel = WebInspector.inspectorView.showPanel("sources");
|
| InspectorTest.runDebuggerTestSuite([
|
| function testSetBreakpoint(next)
|
| {
|
| @@ -31,8 +32,7 @@ function test()
|
| function didShowScriptSource(sourceFrame)
|
| {
|
| InspectorTest.setBreakpoint(sourceFrame, 13, '', true);
|
| - InspectorTest.waitUntilPaused(didPauseInDart);
|
| - InspectorTest.evaluateInPage('postMessageToDart()');
|
| + InspectorTest.runTestFunctionAndWaitUntilPaused(didPauseInDart);
|
| }
|
|
|
| function didPauseInDart(callFrames)
|
| @@ -60,8 +60,7 @@ function test()
|
| function didShowScriptSource(sourceFrame)
|
| {
|
| InspectorTest.removeBreakpoint(sourceFrame, 13);
|
| - InspectorTest.waitUntilPaused(didPause);
|
| - InspectorTest.evaluateInPage('postMessageToDart()');
|
| + InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
|
| }
|
|
|
| function didPause(callFrames)
|
|
|