зеркало из https://github.com/mozilla/pjs.git
Bug 593892. Fix a test to start after paint suppression ends. r=roc a=roc
This commit is contained in:
Родитель
08910c3250
Коммит
f20b122115
|
@ -99,12 +99,17 @@
|
|||
var _delayedOnLoad = function() {
|
||||
gFindBar = document.getElementById("FindToolbar");
|
||||
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'/>");
|
||||
}
|
||||
setTimeout(_delayedOnLoad, 1000);
|
||||
}
|
||||
|
||||
function _delayedOnPageShow() {
|
||||
// setTimeout to the test runs after painting suppression ends
|
||||
setTimeout(onPageShow, 0);
|
||||
}
|
||||
|
||||
function onPageShow() {
|
||||
testNormalFind();
|
||||
gFindBar.close();
|
||||
|
|
Загрузка…
Ссылка в новой задаче