1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug597333.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=597333 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 597333</title> 1.11 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 + 1.15 +</head> 1.16 +<body> 1.17 +<p><a target="_blank" href="https://bugzilla.mozilla.org/show_bug?id=597333">Mozilla Bug 597333</a> 1.18 + 1.19 +<textarea id="a">‮</textarea> 1.20 + 1.21 +<pre id="test"> 1.22 +<script> 1.23 + 1.24 +function runTests() { 1.25 + var t = document.getElementById("a"); 1.26 + t.focus(); 1.27 + setTimeout(function() { 1.28 + synthesizeKey('VK_RIGHT', {}); 1.29 + ok(true, "The browser did not crash!"); 1.30 + 1.31 + SimpleTest.finish(); 1.32 + }, 0); 1.33 +} 1.34 + 1.35 +SimpleTest.waitForExplicitFinish(); 1.36 +SimpleTest.waitForFocus(runTests); 1.37 +</script> 1.38 +</pre> 1.39 + 1.40 +</body> 1.41 +</html>