1test(function() { 2 self.performance.mark("mark1"); 3 self.performance.mark("mark2"); 4 5 // test that two marks have been created 6 var entries = self.performance.getEntriesByType("mark"); 7 assert_equals(entries.length, 2, "Two marks have been created for this test."); 8 9 // clear all marks 10 self.performance.clearMarks(); 11 12 // test that all marks were cleared 13 entries = self.performance.getEntriesByType("mark"); 14 15 assert_equals(entries.length, 0, "All marks have been cleared."); 16 17}, "Clearing all marks remove all of them."); 18