зеркало из https://github.com/mozilla/gecko-dev.git
Bug 593892. Fix a test to start after paint suppression ends. r=roc a=roc
This commit is contained in:
Родитель
1c39c6df06
Коммит
88c9936887
|
@ -99,12 +99,17 @@
|
||||||
var _delayedOnLoad = function() {
|
var _delayedOnLoad = function() {
|
||||||
gFindBar = document.getElementById("FindToolbar");
|
gFindBar = document.getElementById("FindToolbar");
|
||||||
gBrowser = document.getElementById("content");
|
gBrowser = document.getElementById("content");
|
||||||
gBrowser.addEventListener("pageshow", onPageShow, false);
|
gBrowser.addEventListener("pageshow", _delayedOnPageShow, false);
|
||||||
gBrowser.loadURI("data:text/html,<h2 id='h2'>" + SEARCH_TEXT + "</h2><h2><a href='" + SAMPLE_URL + "'>Link Test</a></h2><input id='text' type='text' value='" + SAMPLE_TEXT + "'></input><input id='button' type='button'></input><img id='img' width='50' height='50'/>");
|
gBrowser.loadURI("data:text/html,<h2 id='h2'>" + SEARCH_TEXT + "</h2><h2><a href='" + SAMPLE_URL + "'>Link Test</a></h2><input id='text' type='text' value='" + SAMPLE_TEXT + "'></input><input id='button' type='button'></input><img id='img' width='50' height='50'/>");
|
||||||
}
|
}
|
||||||
setTimeout(_delayedOnLoad, 1000);
|
setTimeout(_delayedOnLoad, 1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _delayedOnPageShow() {
|
||||||
|
// setTimeout to the test runs after painting suppression ends
|
||||||
|
setTimeout(onPageShow, 0);
|
||||||
|
}
|
||||||
|
|
||||||
function onPageShow() {
|
function onPageShow() {
|
||||||
testNormalFind();
|
testNormalFind();
|
||||||
gFindBar.close();
|
gFindBar.close();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче