Revert "Bug 1976137: apply code formatting via Lando" for causing build bustages @ Platform.cpp
This reverts commit a2bbd0d672396015e05d323e236619a39b34570a.
Revert "Bug 1976137 part 4: Remove DocAccessibleChild overrides of SendCaretMoveEvent and SendFocusEvent. r=eeejay"
This reverts commit 102a35ed28b8cc8f3ed069ba46e8e1949a6348bf.
Revert "Bug 1976137 part 3: Remove aCaretRect argument from PlatformCaretMoveEvent and PlatformFocusEvent. r=eeejay"
This reverts commit b46aa6464fceaab0d48edada247983c6879e0c74.
Revert "Bug 1976137 part 2: Move UpdateSystemCaretFor to Platform.cpp. r=eeejay"
This reverts commit 21f1cfda868038cb85a01c45512699f4812b9045.
Revert "Bug 1976137 part 1: Unify Windows AccessibleWrap::UpdateSystemCaretFor. r=eeejay"
This reverts commit 05970d567b067b63a45659f56dd77d9190e5e7f7.
<!DOCTYPE HTML><html><head><title>Test playback of media files that should play OK</title><scriptsrc="/tests/SimpleTest/SimpleTest.js"></script><linkrel="stylesheet"type="text/css"href="/tests/SimpleTest/test.css"/><scripttype="text/javascript"src="manifest.js"></script></head><body><preid="test"><scriptclass="testbody"type="text/javascript">varmanager=newMediaTestManager;functionstartTest(test,token){varvideo=document.createElement('video');video.preload="metadata";video.token=token;video.prevTime=0;video.seenEnded=false;video.seenSuspend=false;varhandler={"ontimeout":function(){Log(token,"timed out: ended="+video.seenEnded+", suspend="+video.seenSuspend);}};manager.started(token,handler);video.src=test.name;video.name=test.name;varcheck=function(t,v){returnfunction(){is(t.name,v.name,t.name+": Name should match #1");checkMetadata(t.name,v,t);}}(test,video);varnoLoad=function(t){returnfunction(){ok(false,t.name+" should not fire 'load' event");}}(test,video);varnoError=function(t,v){returnfunction(){ok(false,t.name+" should not fire 'error' event "+v.error.message);}}(test,video);varfinish=function(){video.finished=true;video.removeEventListener("timeupdate",timeUpdate);removeNodeAndSource(video);manager.finished(video.token);}// We should get "ended" and "suspend" events to finish the test.varmayFinish=function(){if(video.seenEnded&&video.seenSuspend){finish();}}varcheckEnded=function(t,v){returnfunction(){is(t.name,v.name,t.name+": Name should match #2");checkMetadata(t.name,v,test);is(v.readyState,v.HAVE_CURRENT_DATA,t.name+" checking readyState");ok(v.ended,t.name+" checking playback has ended");ok(!v.finished,t.name+" shouldn't be finished");ok(!v.seenEnded,t.name+" shouldn't be ended");v.seenEnded=true;mayFinish();}}(test,video);varcheckSuspended=function(t,v){returnfunction(){if(v.seenSuspend){return;}is(t.name,v.name,t.name+": Name should match #3");v.seenSuspend=true;mayFinish();}}(test,video);vartimeUpdate=function(t,v){returnfunction(){if(v.prevTime>v.currentTime){ok(false,t.name+" time should run forwards: p="+v.prevTime+" c="+v.currentTime);}v.prevTime=v.currentTime;}}(test,video);video.addEventListener("load",noLoad);video.addEventListener("error",noError);video.addEventListener("loadedmetadata",check);video.addEventListener("timeupdate",timeUpdate);// We should get "ended" and "suspend" events for every resourcevideo.addEventListener("ended",checkEnded);video.addEventListener("suspend",checkSuspended);document.body.appendChild(video);video.play();}manager.runTests(gPlayTests,startTest);</script></pre></body></html>