Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: LayoutTests/dart/inspector/debugger-code-in-html.html

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: PTAL Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/dart/inspector/debugger-code-in-html.html
diff --git a/LayoutTests/dart/inspector/debugger-code-in-html.html b/LayoutTests/dart/inspector/debugger-code-in-html.html
index e6e36639ab1082c2a89933740fd9fd565919b048..628efe872f7b8f19bdbf4464cde8acfd1452643b 100644
--- a/LayoutTests/dart/inspector/debugger-code-in-html.html
+++ b/LayoutTests/dart/inspector/debugger-code-in-html.html
@@ -28,6 +28,10 @@ function postMessageToDart()
window.postMessage('fromJS', '*');
}
+function testFunction() {
+ postMessageToDart();
+}
+
function handleReplyFromDart(event)
{
if (event.data == 'fromDart')
@@ -49,8 +53,7 @@ function test()
function didShowScriptSource(sourceFrame)
{
InspectorTest.setBreakpoint(sourceFrame, 19, '', true);
- InspectorTest.waitUntilPaused(didPauseInDart);
- InspectorTest.evaluateInPage('postMessageToDart()');
+ InspectorTest.runTestFunctionAndWaitUntilPaused(didPauseInDart);
}
function didPauseInDart(callFrames)
@@ -77,8 +80,7 @@ function test()
function didShowScriptSource(sourceFrame)
{
InspectorTest.removeBreakpoint(sourceFrame, 19);
- InspectorTest.waitUntilPaused(didPause);
- InspectorTest.evaluateInPage('postMessageToDart()');
+ InspectorTest.runTestFunctionAndWaitUntilPaused(didPauseInDart);
}
function didPause(callFrames)
« no previous file with comments | « LayoutTests/dart/inspector/debugger.html ('k') | LayoutTests/dart/inspector/debugger-eval-on-call-frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698