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

Unified Diff: LayoutTests/fast/spatial-navigation/snav-textarea.html

Issue 20560005: (spatnav) Space&enter should be entered to box instead of simulating click on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 years, 5 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/fast/spatial-navigation/snav-textarea.html
diff --git a/LayoutTests/fast/spatial-navigation/snav-textarea.html b/LayoutTests/fast/spatial-navigation/snav-textarea.html
index d5a536ce2ad38654e73c662e15202ba3c62f11ae..87a250c97869530f48621529cf1cfc1d64379021 100644
--- a/LayoutTests/fast/spatial-navigation/snav-textarea.html
+++ b/LayoutTests/fast/spatial-navigation/snav-textarea.html
@@ -73,8 +73,16 @@
function testCompleted()
{
- if (window.testRunner)
- testRunner.notifyDone();
+ if (!window.testRunner)
+ return;
+
+ document.getElementById('start').value = "";
+ var text = 'A text containing a space\nand a new line';
+ for (var i = 0; i < text.length; ++i)
+ eventSender.keyDown(text.charAt(i));
+ shouldBeEqualToString("document.getElementById('start').value", text);
+
+ testRunner.notifyDone();
}
window.onload = runTest;

Powered by Google App Engine
This is Rietveld 408576698