Lines Matching refs:entries
6 function match_entries(entries, index) argument
8 var entry = entries[index];
38 const entries = self.performance.getEntriesByName("mark");
39 assert_equals(entries.length, 1);
48 const entries = self.performance.getEntriesByName("mark");
49 assert_equals(entries.length, 2);
55 const entries = self.performance.getEntriesByName("mark");
56 assert_equals(entries[index].name, "mark", "Entry has the proper name");
60 const entries = self.performance.getEntriesByName("mark");
61 assert_approx_equals(entries[index].startTime, expectedTimes[index], testThreshold);
66 const entries = self.performance.getEntriesByName("mark");
67 assert_equals(entries[index].entryType, "mark");
71 const entries = self.performance.getEntriesByName("mark");
72 assert_equals(entries[index].duration, 0);
76 const entries = self.performance.getEntriesByName("mark", "mark");
77 assert_equals(entries[index].name, "mark");
82 const entries = self.performance.getEntriesByName("mark", "mark");
83 match_entries(entries, index);
89 const entries = filter_entries_by_type(self.performance.getEntries(), "mark");
90 assert_equals(entries[index].name, "mark");
95 const entries = filter_entries_by_type(self.performance.getEntries(), "mark");
96 match_entries(entries, index);
102 const entries = self.performance.getEntriesByType("mark");
103 assert_equals(entries[index].name, "mark");
108 const entries = self.performance.getEntriesByType("mark");
109 match_entries(entries, index);