зеркало из https://github.com/mozilla/pjs.git
Tests for bug 664087 and follow-up changes to the tests for bug 646382. r=ehsan
This commit is contained in:
Родитель
10882b749c
Коммит
bb5f5484bc
|
@ -142,6 +142,10 @@ _TEST_FILES = \
|
|||
bug646382-1-ref.html \
|
||||
bug646382-2.html \
|
||||
bug646382-2-ref.html \
|
||||
bug664087-1.html \
|
||||
bug664087-1-ref.html \
|
||||
bug664087-2.html \
|
||||
bug664087-2-ref.html \
|
||||
test_bug514127.html \
|
||||
test_bug518777.html \
|
||||
test_bug548545.xhtml \
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
function typeIntoMe() {
|
||||
setTimeout(function() {
|
||||
synthesizeKey("س", {});
|
||||
synthesizeKey("VK_DOWN", {});
|
||||
synthesizeKey("VK_DOWN", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}, 0);
|
||||
}
|
||||
|
|
|
@ -12,6 +12,8 @@
|
|||
function typeIntoMe() {
|
||||
setTimeout(function() {
|
||||
synthesizeKey("s", {});
|
||||
synthesizeKey("VK_DOWN", {});
|
||||
synthesizeKey("VK_DOWN", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}, 0);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<textarea onfocus="done()">אב
|
||||
ג</textarea>
|
||||
<script>
|
||||
var textarea = document.querySelector("textarea");
|
||||
function start() {
|
||||
textarea.focus();
|
||||
}
|
||||
function done() {
|
||||
synthesizeKey("VK_LEFT", {});
|
||||
synthesizeKey("VK_LEFT", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<textarea onfocus="typeIntoMe()"></textarea>
|
||||
<script>
|
||||
function start() {
|
||||
document.querySelector("textarea").focus();
|
||||
}
|
||||
function typeIntoMe() {
|
||||
setTimeout(function() {
|
||||
synthesizeKey("א", {});
|
||||
synthesizeKey("VK_ENTER", {});
|
||||
synthesizeKey("ג", {});
|
||||
synthesizeKey("VK_UP", {});
|
||||
synthesizeKey("VK_END", {});
|
||||
synthesizeKey("ב", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}, 0);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,21 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<textarea dir="rtl" onfocus="done()">ab
|
||||
c</textarea>
|
||||
<script>
|
||||
var textarea = document.querySelector("textarea");
|
||||
function start() {
|
||||
textarea.focus();
|
||||
}
|
||||
function done() {
|
||||
synthesizeKey("VK_RIGHT", {});
|
||||
synthesizeKey("VK_RIGHT", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="start()">
|
||||
<textarea dir="rtl" onfocus="typeIntoMe()"></textarea>
|
||||
<script>
|
||||
function start() {
|
||||
document.querySelector("textarea").focus();
|
||||
}
|
||||
function typeIntoMe() {
|
||||
setTimeout(function() {
|
||||
synthesizeKey("a", {});
|
||||
synthesizeKey("VK_ENTER", {});
|
||||
synthesizeKey("c", {});
|
||||
synthesizeKey("VK_UP", {});
|
||||
synthesizeKey("VK_END", {});
|
||||
synthesizeKey("b", {});
|
||||
document.documentElement.removeAttribute("class");
|
||||
}, 0);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -129,6 +129,8 @@ var tests = [
|
|||
},
|
||||
[ 'bug646382-1.html' , 'bug646382-1-ref.html' ] ,
|
||||
[ 'bug646382-2.html' , 'bug646382-2-ref.html' ] ,
|
||||
[ 'bug664087-1.html' , 'bug664087-1-ref.html' ] ,
|
||||
[ 'bug664087-2.html' , 'bug664087-2-ref.html' ] ,
|
||||
function() {
|
||||
SpecialPowers.clearUserPref("bidi.browser.ui");
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче