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

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: Automatic tests added 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..f2661e5242c1bdba761b53a4ffb9b4eb8ee5bb45 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 in text)
+ eventSender.keyDown(text[i]);
+ shouldBeEqualToString("document.getElementById('start').value", text);
+
+ testRunner.notifyDone();
}
window.onload = runTest;

Powered by Google App Engine
This is Rietveld 408576698