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><html><!----><head><title>Test for style struct copy constructors</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><scripttype="text/javascript"src="property_database.js"></script><styletype="text/css"id="stylesheet"></style><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/></head><body><pid="display"><spanid="one"></span><spanid="two"></span><spanid="parent"><spanid="child"></span></span></p><divid="content"style="display: none"><divid="testnode"><spanid="element"></span></div></div><preid="test"><scriptclass="testbody"type="text/javascript">/** Test for style struct copy constructors **//** * XXX Why doesn't putting a bug in the nsStyleFont copy-constructor for * font-weight (initializing to normal) trigger a failure of this test? * It works for leaving -moz-image-region uninitialized (both halves), * overwriting text-decoration (only the first half, since it's not * inherited), and leaving visibility uninitialized (only the second * half; passes the first half ok). */vargElementOne=document.getElementById("one");vargElementTwo=document.getElementById("two");vargElementParent=document.getElementById("parent");vargElementChild=document.getElementById("child");vargStyleSheet=document.getElementById("stylesheet").sheet;vargRule1=gStyleSheet.cssRules[gStyleSheet.insertRule("#one, #two, #parent {}",gStyleSheet.cssRules.length)];vargRule2=gStyleSheet.cssRules[gStyleSheet.insertRule("#two, #child {}",gStyleSheet.cssRules.length)];/** Test using aStartStruct **/for(varpropingCSSProperties){varinfo=gCSSProperties[prop];if(!("subproperties"ininfo)){gRule1.style.setProperty(prop,info.other_values[0],"");gRule2.style.setProperty(prop,info.other_values[0],"");}}for(varpropingCSSProperties){varinfo=gCSSProperties[prop];if(!("subproperties"ininfo)){gRule2.style.removeProperty(prop);varone=getComputedStyle(gElementOne,"").getPropertyValue(prop);vartwo=getComputedStyle(gElementTwo,"").getPropertyValue(prop);is(two,one,"property '"+prop+"' was copy-constructed correctly (aStartStruct)");gRule2.style.setProperty(prop,info.other_values[0],"");}}/** Test using inheritance **/// TODO(bug 1887221): Zoom right now doesn't apply to explicitly inherited// values, so remove it to get consistent results.gRule1.style.removeProperty("zoom");gRule2.style.removeProperty("zoom");for(varpropingCSSProperties){varinfo=gCSSProperties[prop];if(info.inherited&&!("subproperties"ininfo)){gRule2.style.removeProperty(prop);varparent=getComputedStyle(gElementParent,"").getPropertyValue(prop);varchild=getComputedStyle(gElementChild,"").getPropertyValue(prop);is(child,parent,"property '"+prop+"' was copy-constructed correctly (inheritance)");gRule2.style.setProperty(prop,info.other_values[0],"");}}</script></pre></body></html>