Guest User

Untitled

a guest
Apr 26th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. module("some module");
  2.  
  3. test("test A", ...);
  4. test("test B", ...);
  5.  
  6. module("other module");
  7.  
  8. test("test C", ...);
  9. test("test D", ...);
  10.  
  11. 1. test A (0, 0, 0)
  12. 2. test B (0, 0, 0)
  13. 3. test C (0, 0, 0)
  14. 4. test D (0, 0, 0)
  15.  
  16. some module
  17. 1. test A (0, 0, 0)
  18. 2. test B (0, 0, 0)
  19.  
  20. other module
  21. 3. test C (0, 0, 0)
  22. 4. test D (0, 0, 0)
  23.  
  24. QUnit.moduleStart = function(name) {
  25. var tests = document.getElementById("qunit-tests");
  26.  
  27. if ( tests ) {
  28. var mod = document.createElement("h2");
  29. mod.innerHTML = name;
  30. tests.appendChild( mod );
  31. }
  32. };
Add Comment
Please, Sign In to add comment