Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html
This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!doctype html><metacharset=utf-8><scriptsrc="../testcommon.js"></script><scriptsrc="/tests/SimpleTest/paint_listener.js"></script><style>div{/* Element needs geometry to be eligible for layerization */width:100px;height:100px;background-color:white;}</style><body><script>'use strict';functionwaitForPaints(){returnnewPromise(function(resolve,reject){waitForAllPaintsFlushed(resolve);});}promise_test(asynct=>{// This test only applies to compositor animationsif(!isOMTAEnabled()){return;}vardiv=addDiv(t,{style:'transition: transform 50ms; '+'transform: translateX(0px)'});getComputedStyle(div).transform;div.style.transform='translateX(100px)';vartimeBeforeStart=window.performance.now();awaitwaitForPaints();// If it took over 50ms to paint the transition, we have no luck// to test it. This situation will happen if GC runs while waiting for the// paint.if(window.performance.now()-timeBeforeStart>=50){return;}vartransform=SpecialPowers.DOMWindowUtils.getOMTAStyle(div,'transform');assert_not_equals(transform,'','The transition style is applied on the compositor');// Generate artificial busyness on the main thread for 100ms.vartimeAtStart=window.performance.now();while(window.performance.now()-timeAtStart<100){}// Now the transition on the compositor should finish but stay at the final// position because there was no chance to pull the transition back from// the compositor.transform=SpecialPowers.DOMWindowUtils.getOMTAStyle(div,'transform');assert_equals(transform,'matrix(1, 0, 0, 1, 100, 0)','The final transition style is still applied on the '+'compositor');},'Transition on the compositor keeps the final style while the main thread '+'is busy even if the transition finished on the compositor');done();</script></body>