DevTools/mochitests coding standards: Difference between revisions

→‎Write small, maintainable code: cssSelector and makeChanges are members of step rather than desc
(Update helper file naming convention)
(→‎Write small, maintainable code: cssSelector and makeChanges are members of step rather than desc)
Line 172: Line 172:
     for (let step of TESTS) {
     for (let step of TESTS) {
       info("Testing step: " + step.desc);
       info("Testing step: " + step.desc);
       yield selectNode(desc.cssSelector, inspector);
       yield selectNode(step.cssSelector, inspector);
       yield desc.makeChanges();
       yield step.makeChanges();
     }
     }
   });
   });
2

edits