2010-02-09 19:09:59 +03:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Reftests with caret drawing</title>
|
2011-06-29 22:22:39 +04:00
|
|
|
<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" />
|
2011-01-27 08:26:33 +03:00
|
|
|
<style>
|
|
|
|
iframe {
|
2015-02-21 07:27:59 +03:00
|
|
|
border: none;
|
2011-01-27 08:26:33 +03:00
|
|
|
width: 600px;
|
2015-02-21 07:27:59 +03:00
|
|
|
height: 400px;
|
2011-01-27 08:26:33 +03:00
|
|
|
}
|
|
|
|
</style>
|
2010-02-09 19:09:59 +03:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
2012-01-14 04:09:39 +04:00
|
|
|
SimpleTest.waitForExplicitFinish();
|
2015-03-10 19:55:30 +03:00
|
|
|
SimpleTest.requestLongerTimeout(2);
|
2012-01-14 04:09:39 +04:00
|
|
|
|
2014-10-22 13:48:36 +04:00
|
|
|
var iframes = [];
|
|
|
|
function callbackTestIframe(iframe)
|
2010-02-09 19:09:59 +03:00
|
|
|
{
|
2014-10-22 13:48:36 +04:00
|
|
|
iframes.push(iframe);
|
2010-02-09 19:09:59 +03:00
|
|
|
|
2014-10-22 13:48:36 +04:00
|
|
|
if (iframes.length != 2)
|
2010-02-09 19:09:59 +03:00
|
|
|
return;
|
|
|
|
|
2014-10-22 13:48:36 +04:00
|
|
|
var result = iframes[0];
|
|
|
|
var reference = iframes[1];
|
2010-02-09 19:09:59 +03:00
|
|
|
|
2014-10-22 13:48:36 +04:00
|
|
|
// Using assertSnapshots is important to get the data-URIs of failing tests
|
|
|
|
// dumped into the log in a format that reftest-analyzer.xhtml can process.
|
|
|
|
var passed = assertSnapshots(result.snapshot, reference.snapshot, true,
|
2014-10-22 15:29:06 +04:00
|
|
|
null /*no fuzz*/, result.src, reference.src);
|
2010-02-09 19:09:59 +03:00
|
|
|
|
|
|
|
// Remove the iframes if the test was successful
|
2014-10-22 13:48:36 +04:00
|
|
|
if (passed) {
|
2010-02-09 19:09:59 +03:00
|
|
|
result.parentNode.removeChild(result);
|
|
|
|
reference.parentNode.removeChild(reference);
|
|
|
|
}
|
2014-07-27 02:19:00 +04:00
|
|
|
|
2014-10-22 13:48:36 +04:00
|
|
|
iframes = [];
|
2014-01-22 00:45:18 +04:00
|
|
|
SimpleTest.waitForFocus(nextTest);
|
2010-02-09 19:09:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function doSnapShot(iframe) {
|
|
|
|
iframe.snapshot = snapshotWindow(iframe.contentWindow, true);
|
2014-10-22 13:48:36 +04:00
|
|
|
callbackTestIframe(iframe);
|
2010-02-09 19:09:59 +03:00
|
|
|
};
|
|
|
|
|
2013-03-05 18:32:51 +04:00
|
|
|
function remotePageLoaded(callback) {
|
2010-02-09 19:09:59 +03:00
|
|
|
var iframe = this;
|
2013-03-05 18:32:51 +04:00
|
|
|
setTimeout(function(){
|
|
|
|
doSnapShot(iframe);
|
|
|
|
callback();
|
2013-03-08 23:19:13 +04:00
|
|
|
}, 0);
|
2010-02-09 19:09:59 +03:00
|
|
|
};
|
|
|
|
|
2011-02-11 00:23:09 +03:00
|
|
|
const MAX_ITERATIONS = 1000;
|
2010-08-24 07:49:15 +04:00
|
|
|
|
2010-02-09 19:09:59 +03:00
|
|
|
function createIframe(url,next) {
|
|
|
|
var iframe = document.createElement("iframe");
|
|
|
|
iframe.src = url;
|
|
|
|
iframe.remotePageLoaded = remotePageLoaded;
|
|
|
|
var me = this;
|
2010-08-24 07:49:15 +04:00
|
|
|
var currentIteration = 0;
|
|
|
|
function iframeLoadCompleted() {
|
|
|
|
var docEl = iframe.contentDocument.documentElement;
|
|
|
|
if (docEl.className.indexOf("reftest-wait") >= 0) {
|
|
|
|
if (currentIteration++ > MAX_ITERATIONS) {
|
|
|
|
ok(false, "iframe load for " + url + " timed out");
|
2012-01-14 04:09:39 +04:00
|
|
|
endTest();
|
2010-08-24 07:49:15 +04:00
|
|
|
} else {
|
2015-05-28 17:56:59 +03:00
|
|
|
setTimeout(iframeLoadCompleted, 0);
|
2010-08-24 07:49:15 +04:00
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
2013-03-05 18:32:51 +04:00
|
|
|
iframe.remotePageLoaded(function() {
|
|
|
|
if (next) {
|
|
|
|
setTimeout(function(){createIframe(next,null);}, 0)
|
|
|
|
}
|
|
|
|
});
|
2010-08-24 07:49:15 +04:00
|
|
|
}
|
|
|
|
iframe.addEventListener("load", iframeLoadCompleted, false);
|
2010-02-09 19:09:59 +03:00
|
|
|
window.document.body.appendChild(iframe);
|
2014-01-21 02:27:27 +04:00
|
|
|
iframe.focus();
|
2010-02-09 19:09:59 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
function refTest(test,ref) {
|
|
|
|
createIframe(test,ref);
|
|
|
|
};
|
|
|
|
|
2011-01-27 00:18:15 +03:00
|
|
|
var caretBlinkTime = null;
|
2010-02-09 19:09:59 +03:00
|
|
|
function endTest() {
|
2015-02-21 07:27:59 +03:00
|
|
|
var parentDoc = window.parent.document;
|
|
|
|
parentDoc.styleSheets[parentDoc.styleSheets.length-1].deleteRule(0);
|
2012-01-14 04:09:39 +04:00
|
|
|
// finish(), yet let the test actually end first, to be safe.
|
|
|
|
SimpleTest.executeSoon(SimpleTest.finish);
|
2010-02-09 19:09:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var tests = [
|
2014-01-30 02:07:36 +04:00
|
|
|
[ 'bug106855-1.html' , 'bug106855-1-ref.html' ] ,
|
|
|
|
[ 'bug106855-2.html' , 'bug106855-1-ref.html' ] ,
|
2014-07-27 02:19:00 +04:00
|
|
|
[ 'bug389321-2.html' , 'bug389321-2-ref.html' ] ,
|
|
|
|
[ 'bug613807-1.html' , 'bug613807-1-ref.html' ] ,
|
2014-10-19 04:59:00 +04:00
|
|
|
[ 'bug1082486-1.html', 'bug1082486-1-ref.html'] ,
|
|
|
|
[ 'bug1082486-2.html', 'bug1082486-2-ref.html'] ,
|
2014-07-27 02:19:00 +04:00
|
|
|
// The following test cases are all involving with one sending
|
2015-12-22 09:14:12 +03:00
|
|
|
// synthesizeKey(), the other without. They fail when accessiblecaret
|
|
|
|
// is enabled. Test them with the preference off.
|
|
|
|
function() {SpecialPowers.pushPrefEnv({'set': [['layout.accessiblecaret.enabled', false]]}, nextTest);} ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ 'bug240933-1.html' , 'bug240933-1-ref.html' ] ,
|
|
|
|
[ 'bug240933-2.html' , 'bug240933-1-ref.html' ] ,
|
|
|
|
[ 'bug389321-1.html' , 'bug389321-1-ref.html' ] ,
|
2014-10-28 08:04:00 +03:00
|
|
|
[ 'bug389321-3.html' , 'bug389321-3-ref.html' ] ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ 'bug482484.html' , 'bug482484-ref.html' ] ,
|
2014-11-10 04:24:51 +03:00
|
|
|
[ 'bug503399.html' , 'bug503399-ref.html' ] ,
|
2010-09-24 23:10:53 +04:00
|
|
|
[ 'bug585922.html' , 'bug585922-ref.html' ] ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ '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-ref.html' ] ,
|
|
|
|
[ 'bug612271-2.html' , 'bug612271-ref.html' ] ,
|
|
|
|
[ 'bug612271-3.html' , 'bug612271-ref.html' ] ,
|
|
|
|
[ 'bug613433-1.html' , 'bug613433-ref.html' ] ,
|
|
|
|
[ 'bug613433-2.html' , 'bug613433-ref.html' ] ,
|
|
|
|
[ 'bug613433-3.html' , 'bug613433-ref.html' ] ,
|
2011-02-11 00:23:09 +03:00
|
|
|
[ 'bug632215-1.html' , 'bug632215-ref.html' ] ,
|
2011-02-15 09:11:18 +03:00
|
|
|
[ 'bug632215-2.html' , 'bug632215-ref.html' ] ,
|
2011-03-29 04:17:16 +04:00
|
|
|
[ 'bug633044-1.html' , 'bug633044-1-ref.html' ] ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ 'bug634406-1.html' , 'bug634406-1-ref.html' ] ,
|
|
|
|
[ 'bug644428-1.html' , 'bug644428-1-ref.html' ] ,
|
2016-08-17 07:11:24 +03:00
|
|
|
[ 'input-maxlength-valid-before-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-maxlength-valid-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-maxlength-invalid-change.html', 'input-invalid-ref.html'] ,
|
|
|
|
[ 'input-minlength-valid-before-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-minlength-valid-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-minlength-invalid-change.html', 'input-invalid-ref.html'] ,
|
|
|
|
[ 'input-maxlength-ui-valid-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-maxlength-ui-invalid-change.html', 'input-invalid-ref.html'] ,
|
|
|
|
[ 'input-minlength-ui-valid-change.html', 'input-valid-ref.html'] ,
|
|
|
|
[ 'input-minlength-ui-invalid-change.html', 'input-invalid-ref.html'] ,
|
|
|
|
[ 'textarea-maxlength-valid-before-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-maxlength-valid-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-maxlength-invalid-change.html', 'textarea-invalid-ref.html'] ,
|
|
|
|
[ 'textarea-minlength-valid-before-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-minlength-valid-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-minlength-invalid-change.html', 'textarea-invalid-ref.html'] ,
|
|
|
|
[ 'textarea-maxlength-ui-valid-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-maxlength-ui-invalid-change.html', 'textarea-invalid-ref.html'] ,
|
|
|
|
[ 'textarea-minlength-ui-valid-change.html', 'textarea-valid-ref.html'] ,
|
|
|
|
[ 'textarea-minlength-ui-invalid-change.html', 'textarea-invalid-ref.html'] ,
|
2015-02-06 13:50:00 +03:00
|
|
|
function() {SpecialPowers.pushPrefEnv({'set': [['bidi.browser.ui', true]]}, nextTest);} ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ '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' ] ,
|
|
|
|
[ 'bug682712-1.html' , 'bug682712-1-ref.html' ] ,
|
2015-02-06 13:50:00 +03:00
|
|
|
function() {SpecialPowers.pushPrefEnv({'clear': [['bidi.browser.ui']]}, nextTest);} ,
|
2014-01-30 02:07:36 +04:00
|
|
|
[ 'bug746993-1.html' , 'bug746993-1-ref.html' ] ,
|
2015-04-11 21:42:57 +03:00
|
|
|
[ 'bug956530-1.html' , 'bug956530-1-ref.html' ] ,
|
2015-03-05 17:53:22 +03:00
|
|
|
[ 'bug989012-1.html' , 'bug989012-1-ref.html' ] ,
|
|
|
|
[ 'bug989012-2.html' , 'bug989012-2-ref.html' ] ,
|
|
|
|
[ 'bug989012-3.html' , 'bug989012-3-ref.html' ] ,
|
2014-05-12 15:45:27 +04:00
|
|
|
[ 'bug1007065-1.html' , 'bug1007065-1-ref.html' ] ,
|
2014-05-29 19:15:14 +04:00
|
|
|
[ 'bug1007067-1.html' , 'bug1007067-1-ref.html' ] ,
|
2015-01-18 02:50:09 +03:00
|
|
|
[ 'bug1061468.html' , 'bug1061468-ref.html' ] ,
|
2015-03-04 21:00:47 +03:00
|
|
|
[ 'bug1097242-1.html', 'bug1097242-1-ref.html'] ,
|
2015-01-18 02:50:09 +03:00
|
|
|
[ 'bug1109968-1.html', 'bug1109968-1-ref.html'] ,
|
|
|
|
[ 'bug1109968-2.html', 'bug1109968-2-ref.html'] ,
|
2015-02-04 02:54:32 +03:00
|
|
|
// [ 'bug1123067-1.html' , 'bug1123067-ref.html' ] , TODO: bug 1129205
|
|
|
|
[ 'bug1123067-2.html' , 'bug1123067-ref.html' ] ,
|
|
|
|
[ 'bug1123067-3.html' , 'bug1123067-ref.html' ] ,
|
2015-02-24 02:18:16 +03:00
|
|
|
[ 'bug1132768-1.html' , 'bug1132768-1-ref.html'] ,
|
2016-03-17 19:27:56 +03:00
|
|
|
[ 'bug1237236-1.html' , 'bug1237236-1-ref.html' ] ,
|
|
|
|
[ 'bug1237236-2.html' , 'bug1237236-2-ref.html' ] ,
|
2016-03-23 00:49:57 +03:00
|
|
|
[ 'bug1258308-2.html' , 'bug1258308-2-ref.html' ] ,
|
2016-04-01 03:08:15 +03:00
|
|
|
[ 'bug1259949-1.html' , 'bug1259949-1-ref.html'] ,
|
|
|
|
[ 'bug1259949-2.html' , 'bug1259949-2-ref.html'] ,
|
2016-05-12 00:28:45 +03:00
|
|
|
[ 'bug1263288.html' , 'bug1263288-ref.html'] ,
|
2016-10-14 21:21:00 +03:00
|
|
|
[ 'bug1263357-1.html' , 'bug1263357-1-ref.html'] ,
|
|
|
|
[ 'bug1263357-2.html' , 'bug1263357-2-ref.html'] ,
|
|
|
|
[ 'bug1263357-3.html' , 'bug1263357-3-ref.html'] ,
|
|
|
|
[ 'bug1263357-4.html' , 'bug1263357-4-ref.html'] ,
|
|
|
|
[ 'bug1263357-5.html' , 'bug1263357-5-ref.html'] ,
|
2015-12-22 09:14:12 +03:00
|
|
|
function() {SpecialPowers.pushPrefEnv({'clear': [['layout.accessiblecaret.enabled']]}, nextTest);} ,
|
2010-02-09 19:09:59 +03:00
|
|
|
];
|
2011-08-24 19:04:16 +04:00
|
|
|
|
2014-01-30 02:07:36 +04:00
|
|
|
if (navigator.appVersion.indexOf("Android") == -1 &&
|
|
|
|
SpecialPowers.Services.appinfo.name != "B2G") {
|
|
|
|
tests.push([ 'bug512295-1.html' , 'bug512295-1-ref.html' ]);
|
|
|
|
tests.push([ 'bug512295-2.html' , 'bug512295-2-ref.html' ]);
|
2014-10-28 08:04:00 +03:00
|
|
|
tests.push([ 'bug923376.html' , 'bug923376-ref.html' ]);
|
2015-02-06 13:50:00 +03:00
|
|
|
tests.push(function() {SpecialPowers.pushPrefEnv({'set': [['layout.css.overflow-clip-box.enabled', true]]}, nextTest);});
|
2014-02-22 05:18:24 +04:00
|
|
|
tests.push([ 'bug966992-1.html' , 'bug966992-1-ref.html' ]);
|
|
|
|
tests.push([ 'bug966992-2.html' , 'bug966992-2-ref.html' ]);
|
|
|
|
tests.push([ 'bug966992-3.html' , 'bug966992-3-ref.html' ]);
|
2015-02-06 13:50:00 +03:00
|
|
|
tests.push(function() {SpecialPowers.pushPrefEnv({'clear': [['layout.css.overflow-clip-box.enabled']]}, nextTest);});
|
2016-03-23 00:49:57 +03:00
|
|
|
tests.push([ 'bug1258308-1.html' , 'bug1258308-1-ref.html' ]); // maybe VK_END doesn't work on Android?
|
2014-01-30 02:07:36 +04:00
|
|
|
} else {
|
2016-03-17 19:27:56 +03:00
|
|
|
is(SpecialPowers.getIntPref("layout.spellcheckDefault"), 0, "Spellcheck should be turned off for this platform or this if..else check removed");
|
2012-09-15 21:35:19 +04:00
|
|
|
}
|
2011-08-24 19:04:16 +04:00
|
|
|
|
2015-02-21 07:27:59 +03:00
|
|
|
if (navigator.platform.indexOf("Linux") >= 0 &&
|
|
|
|
SpecialPowers.Services.appinfo.name != "B2G") {
|
|
|
|
tests = tests.concat([
|
|
|
|
// eDirPrevious, Shift+click
|
|
|
|
[ 'multi-range-user-select.html#prev1S_' , 'multi-range-user-select-ref.html#prev1S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev2S_' , 'multi-range-user-select-ref.html#prev2S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev3S_' , 'multi-range-user-select-ref.html#prev3S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev4S_' , 'multi-range-user-select-ref.html#prev4S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev5S_' , 'multi-range-user-select-ref.html#prev5S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev6S_' , 'multi-range-user-select-ref.html#prev6S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev7S_' , 'multi-range-user-select-ref.html#prev7S_' ] ,
|
|
|
|
// eDirPrevious, Shift+Accel+click
|
|
|
|
[ 'multi-range-user-select.html#prev1SA' , 'multi-range-user-select-ref.html#prev1SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev2SA' , 'multi-range-user-select-ref.html#prev2SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev3SA' , 'multi-range-user-select-ref.html#prev3SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev4SA' , 'multi-range-user-select-ref.html#prev4SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev5SA' , 'multi-range-user-select-ref.html#prev5SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev6SA' , 'multi-range-user-select-ref.html#prev6SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev7SA' , 'multi-range-user-select-ref.html#prev7SA' ] ,
|
|
|
|
// eDirPrevious, Accel+drag-select (adding an additional range)
|
|
|
|
[ 'multi-range-user-select.html#prev1AD' , 'multi-range-user-select-ref.html#prev1AD' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev7AD' , 'multi-range-user-select-ref.html#prev7AD' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
// eDirPrevious, Accel+drag-select (bug 1128722)
|
|
|
|
[ 'multi-range-user-select.html#prev8AD' , 'multi-range-user-select-ref.html#prev8AD' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
// eDirPrevious, VK_RIGHT / LEFT
|
|
|
|
[ 'multi-range-user-select.html#prev1SR' , 'multi-range-user-select-ref.html#prev1SR' ] ,
|
|
|
|
[ 'multi-range-user-select.html#prev1SL' , 'multi-range-user-select-ref.html#prev1SL' ] ,
|
|
|
|
// eDirNext, Shift+click
|
|
|
|
[ 'multi-range-user-select.html#next1S_' , 'multi-range-user-select-ref.html#next1S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next2S_' , 'multi-range-user-select-ref.html#next2S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next3S_' , 'multi-range-user-select-ref.html#next3S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next4S_' , 'multi-range-user-select-ref.html#next4S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next5S_' , 'multi-range-user-select-ref.html#next5S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next6S_' , 'multi-range-user-select-ref.html#next6S_' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next7S_' , 'multi-range-user-select-ref.html#next7S_' ] ,
|
|
|
|
// eDirNext, Shift+Accel+click
|
|
|
|
[ 'multi-range-user-select.html#next1SA' , 'multi-range-user-select-ref.html#next1SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next2SA' , 'multi-range-user-select-ref.html#next2SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next3SA' , 'multi-range-user-select-ref.html#next3SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next4SA' , 'multi-range-user-select-ref.html#next4SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next5SA' , 'multi-range-user-select-ref.html#next5SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next6SA' , 'multi-range-user-select-ref.html#next6SA' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next7SA' , 'multi-range-user-select-ref.html#next7SA' ] ,
|
|
|
|
// eDirNext, Accel+drag-select (adding an additional range)
|
|
|
|
[ 'multi-range-user-select.html#next1AD' , 'multi-range-user-select-ref.html#next1AD' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next7AD' , 'multi-range-user-select-ref.html#next7AD' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
// eDirNext, Accel+drag-select (bug 1128722)
|
|
|
|
[ 'multi-range-user-select.html#next8AD' , 'multi-range-user-select-ref.html#next8AD' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
// eDirNext, VK_RIGHT / LEFT
|
|
|
|
[ 'multi-range-user-select.html#next1SR' , 'multi-range-user-select-ref.html#next1SR' ] ,
|
|
|
|
[ 'multi-range-user-select.html#next1SL' , 'multi-range-user-select-ref.html#next1SL' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
// eDirPrevious, Shift+click
|
|
|
|
[ 'multi-range-script-select.html#prev1S_' , 'multi-range-script-select-ref.html#prev1S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev2S_' , 'multi-range-script-select-ref.html#prev2S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev3S_' , 'multi-range-script-select-ref.html#prev3S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev4S_' , 'multi-range-script-select-ref.html#prev4S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev5S_' , 'multi-range-script-select-ref.html#prev5S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev6S_' , 'multi-range-script-select-ref.html#prev6S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev7S_' , 'multi-range-script-select-ref.html#prev7S_' ] ,
|
|
|
|
// eDirPrevious, Shift+Accel+click
|
|
|
|
[ 'multi-range-script-select.html#prev1SA' , 'multi-range-script-select-ref.html#prev1SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev2SA' , 'multi-range-script-select-ref.html#prev2SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev3SA' , 'multi-range-script-select-ref.html#prev3SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev4SA' , 'multi-range-script-select-ref.html#prev4SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev5SA' , 'multi-range-script-select-ref.html#prev5SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev6SA' , 'multi-range-script-select-ref.html#prev6SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev7SA' , 'multi-range-script-select-ref.html#prev7SA' ] ,
|
|
|
|
// eDirPrevious, Accel+drag-select (adding an additional range)
|
|
|
|
[ 'multi-range-script-select.html#prev1AD' , 'multi-range-script-select-ref.html#prev1AD' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev7AD' , 'multi-range-script-select-ref.html#prev7AD' ] ,
|
|
|
|
// eDirPrevious, VK_RIGHT / LEFT
|
|
|
|
[ 'multi-range-script-select.html#prev1SR' , 'multi-range-script-select-ref.html#prev1SR' ] ,
|
|
|
|
[ 'multi-range-script-select.html#prev1SL' , 'multi-range-script-select-ref.html#prev1SL' ] ,
|
|
|
|
// eDirNext, Shift+click
|
|
|
|
[ 'multi-range-script-select.html#next1S_' , 'multi-range-script-select-ref.html#next1S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next2S_' , 'multi-range-script-select-ref.html#next2S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next3S_' , 'multi-range-script-select-ref.html#next3S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next4S_' , 'multi-range-script-select-ref.html#next4S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next5S_' , 'multi-range-script-select-ref.html#next5S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next6S_' , 'multi-range-script-select-ref.html#next6S_' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next7S_' , 'multi-range-script-select-ref.html#next7S_' ] ,
|
|
|
|
// eDirNext, Shift+Accel+click
|
|
|
|
[ 'multi-range-script-select.html#next1SA' , 'multi-range-script-select-ref.html#next1SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next2SA' , 'multi-range-script-select-ref.html#next2SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next3SA' , 'multi-range-script-select-ref.html#next3SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next4SA' , 'multi-range-script-select-ref.html#next4SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next5SA' , 'multi-range-script-select-ref.html#next5SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next6SA' , 'multi-range-script-select-ref.html#next6SA' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next7SA' , 'multi-range-script-select-ref.html#next7SA' ] ,
|
|
|
|
// eDirNext, Accel+drag-select (adding an additional range)
|
|
|
|
[ 'multi-range-script-select.html#next1AD' , 'multi-range-script-select-ref.html#next1AD' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next7AD' , 'multi-range-script-select-ref.html#next7AD' ] ,
|
|
|
|
// eDirNext, VK_RIGHT / LEFT
|
|
|
|
[ 'multi-range-script-select.html#next1SR' , 'multi-range-script-select-ref.html#next1SR' ] ,
|
|
|
|
[ 'multi-range-script-select.html#next1SL' , 'multi-range-script-select-ref.html#next1SL' ] ,
|
2015-02-21 07:27:59 +03:00
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
2010-02-09 19:09:59 +03:00
|
|
|
var testIndex = 0;
|
|
|
|
|
|
|
|
function nextTest() {
|
|
|
|
if (testIndex < tests.length) {
|
2011-04-08 11:35:49 +04:00
|
|
|
if (typeof(tests[testIndex]) == 'function') {
|
|
|
|
tests[testIndex]();
|
|
|
|
} else {
|
|
|
|
refTest(tests[testIndex][0],tests[testIndex][1]);
|
|
|
|
}
|
2010-02-09 19:09:59 +03:00
|
|
|
++testIndex;
|
|
|
|
} else {
|
|
|
|
endTest();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function runTests() {
|
|
|
|
try {
|
2015-02-21 07:27:59 +03:00
|
|
|
if (window.parent) {
|
|
|
|
var parentDoc = window.parent.document;
|
|
|
|
extraCSSRule = parentDoc.styleSheets[parentDoc.styleSheets.length-1]
|
|
|
|
.insertRule("iframe#testframe{width:600px;height:400px}",0);
|
|
|
|
}
|
2011-01-27 00:18:15 +03:00
|
|
|
try {
|
2012-09-06 09:43:21 +04:00
|
|
|
caretBlinkTime = SpecialPowers.getIntPref("ui.caretBlinkTime");
|
2011-01-27 00:18:15 +03:00
|
|
|
} catch (e) {}
|
2015-02-06 13:50:00 +03:00
|
|
|
SpecialPowers.pushPrefEnv({'set': [['ui.caretBlinkTime', -1]]}, nextTest);
|
2010-02-09 19:09:59 +03:00
|
|
|
} catch(e) {
|
|
|
|
endTest();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-01-21 02:27:27 +04:00
|
|
|
SimpleTest.waitForFocus(runTests);
|
|
|
|
|
2010-02-09 19:09:59 +03:00
|
|
|
</script>
|
|
|
|
</head>
|
2014-01-21 02:27:27 +04:00
|
|
|
<body>
|
2010-02-09 19:09:59 +03:00
|
|
|
</body>
|
|
|
|
</html>
|