[devtools] qunit: refactor functions into QUnitView [applied]