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 265773 08afdb7d4d51151d00d9979b870b61b01baebcec
parent 265772 f628845b9e9f28bca4cdbe94535e3145f0b47381
child 265774 267a6e556710d915e1c5257cc1b1d595f434923e
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot, test-only
bugs1157985
milestone39.0a2
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