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