зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1347270: Rewrite test_media_queries_dynamic.html using restyleGeneration. r=bholley
MozReview-Commit-ID: 3zPETl6WFyc --HG-- extra : rebase_source : 1347971a0caafa9e3a4f6bcbbc96723b4c29903d
This commit is contained in:
Родитель
482d9344e2
Коммит
6570c70725
|
@ -33,7 +33,7 @@ to mochitest command.
|
||||||
* "layout.css.prefixes.device-pixel-ratio-webkit" support bug 1366956
|
* "layout.css.prefixes.device-pixel-ratio-webkit" support bug 1366956
|
||||||
* test_media_queries.html `-device-pixel-ratio` [27]
|
* test_media_queries.html `-device-pixel-ratio` [27]
|
||||||
* test_webkit_device_pixel_ratio.html [3]
|
* test_webkit_device_pixel_ratio.html [3]
|
||||||
* test_media_queries_dynamic.html `restyle count`: support elementsRestyled [6]
|
* test_media_queries_dynamic.html `restyle`: bug 1357461 [4]
|
||||||
* test_media_queries_dynamic_xbl.html: xbl support bug 1290276 [2]
|
* test_media_queries_dynamic_xbl.html: xbl support bug 1290276 [2]
|
||||||
* Animation support:
|
* Animation support:
|
||||||
* OMTA
|
* OMTA
|
||||||
|
|
|
@ -121,10 +121,10 @@ function run() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var utils = SpecialPowers.getDOMWindowUtils(subwin);
|
var utils = SpecialPowers.getDOMWindowUtils(subwin);
|
||||||
var elementsRestyled, framesConstructed, framesReflowed;
|
var restyleGeneration, framesConstructed, framesReflowed;
|
||||||
function reset_change_counters()
|
function reset_change_counters()
|
||||||
{
|
{
|
||||||
elementsRestyled = utils.elementsRestyled;
|
restyleGeneration = utils.restyleGeneration;
|
||||||
framesConstructed = utils.framesConstructed;
|
framesConstructed = utils.framesConstructed;
|
||||||
framesReflowed = utils.framesReflowed;
|
framesReflowed = utils.framesReflowed;
|
||||||
}
|
}
|
||||||
|
@ -139,11 +139,11 @@ function run() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var restyles = utils.elementsRestyled - elementsRestyled;
|
var didRestyle = utils.restyleGeneration != restyleGeneration;
|
||||||
var constructs = utils.framesConstructed - framesConstructed;
|
var constructs = utils.framesConstructed - framesConstructed;
|
||||||
var reflows = utils.framesReflowed - framesReflowed;
|
var reflows = utils.framesReflowed - framesReflowed;
|
||||||
|
|
||||||
(expected.restyle ? isnot : is)(restyles, 0, "restyle count: " + desc);
|
(expected.restyle ? isnot : is)(didRestyle, false, "restyle: " + desc);
|
||||||
(expected.construct ? isnot : is)(constructs, 0,
|
(expected.construct ? isnot : is)(constructs, 0,
|
||||||
"frame construct count: " + desc);
|
"frame construct count: " + desc);
|
||||||
(expected.reflow ? isnot : is)(reflows, 0, "reflow count: " + desc);
|
(expected.reflow ? isnot : is)(reflows, 0, "reflow count: " + desc);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче