зеркало из https://github.com/mozilla/pjs.git
Backout changeset ae2dbbb7b935 (bug 664152) because moving test_reftests_with_caret to mochitest-chrome causes the test to not finish properly
This commit is contained in:
Родитель
0dbb1a5009
Коммит
8b5fd4c609
|
@ -88,6 +88,60 @@ _TEST_FILES = \
|
|||
test_bug435293-scale.html \
|
||||
test_bug435293-interaction.html \
|
||||
test_bug435293-skew.html \
|
||||
test_reftests_with_caret.html \
|
||||
bug106855-1.html \
|
||||
bug106855-2.html \
|
||||
bug106855-1-ref.html \
|
||||
bug240933-1.html \
|
||||
bug240933-2.html \
|
||||
bug240933-1-ref.html \
|
||||
bug389321-1.html \
|
||||
bug389321-1-ref.html \
|
||||
bug389321-2.html \
|
||||
bug389321-2-ref.html \
|
||||
bug389321-3.html \
|
||||
bug389321-3-ref.html \
|
||||
bug482484.html \
|
||||
bug482484-ref.html \
|
||||
bug512295-1.html \
|
||||
bug512295-1-ref.html \
|
||||
bug512295-2.html \
|
||||
bug512295-2-ref.html \
|
||||
bug585922.html \
|
||||
bug585922-ref.html \
|
||||
bug597519-1.html \
|
||||
bug597519-1-ref.html \
|
||||
bug602141-1.html \
|
||||
bug602141-1-ref.html \
|
||||
bug602141-2.html \
|
||||
bug602141-2-ref.html \
|
||||
bug602141-3.html \
|
||||
bug602141-3-ref.html \
|
||||
bug602141-4.html \
|
||||
bug602141-4-ref.html \
|
||||
bug612271-1.html \
|
||||
bug612271-2.html \
|
||||
bug612271-3.html \
|
||||
bug612271-ref.html \
|
||||
bug613433-1.html \
|
||||
bug613433-2.html \
|
||||
bug613433-3.html \
|
||||
bug613433-ref.html \
|
||||
bug613807-1.html \
|
||||
bug613807-1-ref.html \
|
||||
bug632215-1.html \
|
||||
bug632215-2.html \
|
||||
bug632215-ref.html \
|
||||
bug633044-1.html \
|
||||
bug633044-1-ref.html \
|
||||
bug634406-1.html \
|
||||
bug634406-1-ref.html \
|
||||
bug644428-1.html \
|
||||
bug644428-1-ref.html \
|
||||
bug646382-1.html \
|
||||
bug646382-1-ref.html \
|
||||
bug646382-2.html \
|
||||
bug646382-2-ref.html \
|
||||
test_bug514127.html \
|
||||
test_bug518777.html \
|
||||
test_bug548545.xhtml \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
x<br>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
x<br>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
x<br>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="t" rows="4"></textarea>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="t" rows="4"></textarea>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span contenteditable id="t" style="border: 1px dashed green; min-height: 2px; padding-right: 20px;"> </span></body>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div contentEditable="true" id="div"><p id="p">BC</p></div>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div contenteditable="true">
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div contenteditable="true">
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
x
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
x
|
|
@ -1,12 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="doTest()">
|
||||
<input type=text>
|
||||
<script>
|
||||
function doTest() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege(
|
||||
"UniversalXPConnect");
|
||||
|
||||
var d = document.querySelector("input");
|
||||
d.value = "b";
|
||||
d.focus();
|
|
@ -1,12 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="doTest()">
|
||||
<input type=text>
|
||||
<script>
|
||||
function doTest() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege(
|
||||
"UniversalXPConnect");
|
||||
function enableCaret(aEnable) {
|
||||
var selCon = editor.selectionController;
|
||||
selCon.setCaretEnabled(aEnable);
|
||||
|
@ -20,6 +22,8 @@
|
|||
var t = editor.rootElement.firstChild;
|
||||
sel.collapse(t, 1); // put the caret at the end of the div
|
||||
setTimeout(function() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege(
|
||||
"UniversalXPConnect");
|
||||
enableCaret(false);enableCaret(true);// force a caret display
|
||||
enableCaret(false); // hide the caret
|
||||
t.replaceData(0, 1, "b"); // replace the text node data
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea maxlength="3"></textarea>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span contenteditable="true">navigable__</span><span id="x" contenteditable="true">navigable|unnavigable</span><br />
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span id="x" contenteditable="true">navigable__|</span><br />
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
noteditable<span id="x" contenteditable="true">navigable|unnavigable</span><br />
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<span>not editable</span><span id="x" contenteditable="true">navigable|unnavigable</span>
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="target" style="height: 100px"
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="target" style="height: 100px"
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="target" style="height: 100px"
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript">
|
||||
function loaded() {
|
||||
var t = document.querySelector("textarea");
|
|
@ -7,8 +7,8 @@
|
|||
overflow-x: auto;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function test() {
|
||||
document.querySelector("div").focus();
|
|
@ -7,8 +7,8 @@
|
|||
overflow-y: auto;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function test() {
|
||||
document.querySelector("div").focus();
|
|
@ -7,8 +7,8 @@
|
|||
overflow: auto;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
function test() {
|
||||
document.querySelector("div").focus();
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="t" rows="4"></textarea>
|
||||
|
@ -11,6 +11,7 @@
|
|||
var area = document.getElementById('t');
|
||||
area.focus();
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
const nsIDOMWindowUtils = Components.interfaces.nsIDOMWindowUtils;
|
||||
|
||||
// start composition
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="data:text/html,<body></body>"></iframe>
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="data:text/html,<body contenteditable></body>"></iframe>
|
|
@ -1,7 +1,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script>
|
||||
onload = function() {
|
||||
var el;
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML><html><head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<textarea></textarea>
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="setupCaret()">
|
||||
<div contenteditable>a</div>
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
</head>
|
||||
<body onload="setupCaret()" spellcheck="false">
|
||||
<div contenteditable>a<span>b</span>c </div>
|
|
@ -1,8 +1,8 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<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>
|
|
@ -1,7 +1,7 @@
|
|||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<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>
|
|
@ -38,7 +38,7 @@ DEPTH = ../../../..
|
|||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
relativesrcdir = layout/base/tests/chrome
|
||||
relativesrcdir = layout/base/test/chrome
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
@ -68,60 +68,6 @@ _CHROME_FILES = \
|
|||
printpreview_bug396024_helper.xul \
|
||||
test_printpreview_bug482976.xul \
|
||||
printpreview_bug482976_helper.xul \
|
||||
test_reftests_with_caret.html \
|
||||
bug585922.html \
|
||||
bug585922-ref.html \
|
||||
bug613807-1.html \
|
||||
bug613807-1-ref.html \
|
||||
bug106855-1.html \
|
||||
bug106855-2.html \
|
||||
bug106855-1-ref.html \
|
||||
bug240933-1.html \
|
||||
bug240933-2.html \
|
||||
bug240933-1-ref.html \
|
||||
bug389321-1.html \
|
||||
bug389321-1-ref.html \
|
||||
bug389321-2.html \
|
||||
bug389321-2-ref.html \
|
||||
bug389321-3.html \
|
||||
bug389321-3-ref.html \
|
||||
bug482484.html \
|
||||
bug482484-ref.html \
|
||||
bug512295-1.html \
|
||||
bug512295-1-ref.html \
|
||||
bug512295-2.html \
|
||||
bug512295-2-ref.html \
|
||||
bug597519-1.html \
|
||||
bug597519-1-ref.html \
|
||||
bug602141-1.html \
|
||||
bug602141-1-ref.html \
|
||||
bug602141-2.html \
|
||||
bug602141-2-ref.html \
|
||||
bug602141-3.html \
|
||||
bug602141-3-ref.html \
|
||||
bug602141-4.html \
|
||||
bug602141-4-ref.html \
|
||||
bug612271-1.html \
|
||||
bug612271-2.html \
|
||||
bug612271-3.html \
|
||||
bug612271-ref.html \
|
||||
bug613433-1.html \
|
||||
bug613433-2.html \
|
||||
bug613433-3.html \
|
||||
bug613433-ref.html \
|
||||
bug632215-1.html \
|
||||
bug632215-2.html \
|
||||
bug632215-ref.html \
|
||||
bug633044-1.html \
|
||||
bug633044-1-ref.html \
|
||||
bug634406-1.html \
|
||||
bug634406-1-ref.html \
|
||||
bug644428-1.html \
|
||||
bug644428-1-ref.html \
|
||||
bug646382-1.html \
|
||||
bug646382-1-ref.html \
|
||||
bug646382-2.html \
|
||||
bug646382-2-ref.html \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_CHROME_FILES)
|
||||
|
|
|
@ -27,6 +27,8 @@ function expandStringOffsetToWord(data, offset)
|
|||
|
||||
function onContextMenu(e)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
|
||||
var node = e.rangeParent;
|
||||
var offset = e.rangeOffset;
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396367
|
|||
}
|
||||
|
||||
function getdocviewer() {
|
||||
//netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var navigator1 = top.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation);
|
||||
var docShell = navigator1.QueryInterface(Components.interfaces.nsIDocShell);
|
||||
var docviewer = docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
|
||||
|
|
|
@ -20,6 +20,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=396367
|
|||
}
|
||||
|
||||
function getdocviewer() {
|
||||
//netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var navigator1 = top.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIWebNavigation);
|
||||
var docShell = navigator1.QueryInterface(Components.interfaces.nsIDocShell);
|
||||
var docviewer = docShell.contentViewer.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer);
|
||||
|
|
|
@ -68,6 +68,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=420499
|
|||
}
|
||||
|
||||
function isCaretVisible() {
|
||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||
var docShell = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
||||
.getInterface(Components.interfaces.nsIWebNavigation)
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>Reftests with caret drawing</title>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="chrome://mochikit/content/tests/SimpleTest/WindowSnapshot.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css" />
|
||||
<script type="text/javascript" src="/MochiKit/packed.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
<style>
|
||||
iframe {
|
||||
width: 600px;
|
||||
|
@ -84,6 +84,8 @@ function refTest(test,ref) {
|
|||
var caretBlinkTime = null;
|
||||
function endTest() {
|
||||
SimpleTest.finish();
|
||||
netscape.security.PrivilegeManager.enablePrivilege(
|
||||
'UniversalPreferencesRead UniversalPreferencesWrite UniversalXPConnect');
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
if (caretBlinkTime !== null) {
|
||||
|
@ -123,19 +125,14 @@ var tests = [
|
|||
[ 'bug634406-1.html' , 'bug634406-1-ref.html' ] ,
|
||||
[ 'bug644428-1.html' , 'bug644428-1-ref.html' ] ,
|
||||
function() {
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
prefs.setBoolPref("bidi.browser.ui", true);
|
||||
SpecialPowers.setBoolPref("bidi.browser.ui", true);
|
||||
},
|
||||
[ 'bug646382-1.html' , 'bug646382-1-ref.html' ] ,
|
||||
[ 'bug646382-2.html' , 'bug646382-2-ref.html' ] ,
|
||||
function() {
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
prefs.clearUserPref("bidi.browser.ui");
|
||||
SpecialPowers.clearUserPref("bidi.browser.ui");
|
||||
},
|
||||
];
|
||||
|
||||
var testIndex = 0;
|
||||
|
||||
function nextTest() {
|
||||
|
@ -154,9 +151,11 @@ function nextTest() {
|
|||
function runTests() {
|
||||
try {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege(
|
||||
'UniversalPreferencesRead UniversalPreferencesWrite UniversalXPConnect');
|
||||
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
|
||||
.getService(Components.interfaces.nsIPrefBranch);
|
||||
|
||||
try {
|
||||
caretBlinkTime = prefs.getIntPref("ui.caretBlinkTime");
|
||||
} catch (e) {}
|
Загрузка…
Ссылка в новой задаче