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

Unified Diff: LayoutTests/dart/inspector/debugger.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/dart/inspector/debugger-code-in-html.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/dart/inspector/debugger-code-in-html.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698