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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html

Issue 2565113002: DevTools: update console viewport scroll when prompt is resized (Closed)
Patch Set: SourcesTE listen to same event Created 3 years, 9 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: third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html b/third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html
index d183a277fc3bfe172d0d9d5bc6f0f49917c0ac83..b61619d9a660b010a9ac94297a2e08acd27afb77 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.html
@@ -77,13 +77,14 @@ function test()
dumpAndContinue(next);
},
- function testTypingShouldJumpToBottom(next)
+ function testChangingPromptTextShouldJumpToBottom(next)
{
- var keyEvent = InspectorTest.createKeyEvent("a");
- viewport._contentElement.dispatchEvent(keyEvent);
- consoleView._promptElement.dispatchEvent(new Event('input'));
+ InspectorTest.addSniffer(Console.ConsoleView.prototype, "_promptContentChangedForTest", onContentChanged);
+ consoleView._prompt._editor.setText('a');
- dumpAndContinue(next);
+ function onContentChanged() {
+ dumpAndContinue(next);
+ }
},
function testViewportMutationsShouldPreserveStickToBottom(next)

Powered by Google App Engine
This is Rietveld 408576698