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; |