Bug 1157985 - Use getEntriesByName to search by name attribute. r=qdot, a=test-only
authorHiroyuki Ikezoe <hiikezoe@mozilla-japan.org>
Thu, 23 Apr 2015 17:41:00 -0400
changeset 260284 55b58d5184ce
parent 260283 a7d6b32a504c
child 260285 a4f506639153
push id738
push userryanvm@gmail.com
push date2015-04-27 15:52 +0000
treeherdermozilla-release@a4f506639153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot, test-only
bugs1157985
milestone38.0b8
Bug 1157985 - Use getEntriesByName to search by name attribute. r=qdot, a=test-only
dom/base/test/test_performance_user_timing.html
--- a/dom/base/test/test_performance_user_timing.html
+++ b/dom/base/test/test_performance_user_timing.html
@@ -31,17 +31,17 @@
                  // Test multiple mark addition
                  function () {
                      ok(true, "Running multiple mark with same name addition test");
                      performance.mark("test");
                      performance.mark("test");
                      performance.mark("test");
                      var marks_type = performance.getEntriesByType("mark");
                      is(marks_type.length, 3, "Number of marks by type should be 3");
-                     var marks_name = performance.getEntriesByType("mark");
+                     var marks_name = performance.getEntriesByName("test");
                      is(marks_name.length, 3, "Number of marks by name should be 3");
                      var mark = marks_name[0];
                      is(mark.name, "test", "mark name should be 'test'");
                      is(mark.entryType, "mark", "mark type should be 'mark'");
                      isnot(mark.startTime, 0, "mark start time should not be 0");
                      is(mark.duration, 0, "mark duration should be 0");
                      var times = [];
                      // This also tests the chronological ordering specified as