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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html

Issue 2552923002: [DevTools] call setScriptSource callback right after editing (Closed)
Patch Set: Created 4 years 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 | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/edit-me-2.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html
index affc2e7e876e5c5783d937e2bbe988cf0c1977c5..7acbd7d39cdee451fefdd403716f6863fce0862e 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit.html
@@ -4,6 +4,7 @@
<script src="../../../http/tests/inspector/debugger-test.js"></script>
<script src="../../../http/tests/inspector/live-edit-test.js"></script>
<script src="resources/edit-me.js"></script>
+<script src="resources/edit-me-2.js"></script>
<script src="resources/edit-me-when-paused.js"></script>
<script>
@@ -136,7 +137,7 @@ function test()
function testNoCrashWhenLiveEditOnBreakpoint(next)
{
- InspectorTest.showScriptSource("edit-me.js", didShowScriptSource);
+ InspectorTest.showScriptSource("edit-me-2.js", didShowScriptSource);
var testSourceFrame;
@@ -151,12 +152,12 @@ function test()
function breakpointAdded()
{
InspectorTest.waitUntilPaused(pausedInF);
- InspectorTest.evaluateInPage("setTimeout(f, 0)");
+ InspectorTest.evaluateInPage("setTimeout(editMe2F, 0)");
}
function pausedInF(callFrames)
{
- replaceInSource(panel.visibleView, "function f()", "function f()\n", didEditScriptSource);
+ replaceInSource(panel.visibleView, "function editMe2F()", "function editMe2F()\n", didEditScriptSource);
}
function didEditScriptSource()
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/edit-me-2.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698