TestUtils.d.ts 532 B

123456789101112131415
  1. /**
  2. * This class collects useful methods to interact with test data.
  3. * During tests, XML and MXL documents are preprocessed by karma,
  4. * and this is some helper code to retrieve them.
  5. */
  6. export declare class TestUtils {
  7. static getScore(name: string): Document;
  8. static getMXL(scoreName: string): string;
  9. /**
  10. * Retrieve from a XML document the first element with name "score-partwise"
  11. * @param doc is the XML Document
  12. * @returns {Element}
  13. */
  14. static getPartWiseElement(doc: Document): Element;
  15. }