Bug 899991 - Fix TypeError in browser_profiler_console_api_content.js. r=me, a=test-only
authorAnton Kovalyov <anton@mozilla.com>
Mon, 12 Aug 2013 17:05:22 -0700
changeset 153736 530cefd1f09ea681e0b8c6cb642468b34d9e1471
parent 153735 1047ab6b53a182ad3d931706a99ad4cf05d25e9d
child 153737 932868752f82a0256638a0bd0375699b96e346f5
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme, test-only
bugs899991
milestone25.0a2
Bug 899991 - Fix TypeError in browser_profiler_console_api_content.js. r=me, a=test-only
browser/devtools/profiler/test/browser_profiler_console_api_content.js
browser/devtools/profiler/test/browser_profiler_io.js
--- a/browser/devtools/profiler/test/browser_profiler_console_api_content.js
+++ b/browser/devtools/profiler/test/browser_profiler_console_api_content.js
@@ -45,11 +45,11 @@ function runTests() {
         gPanel = null;
         gToolbox = null;
       });
     }
 
     assertSampleAndFinish();
   });
 
-  let profile = gPanel.profiles.get(2);
+  let profile = gPanel.profiles.get(1);
   gPanel.sidebar.selectedItem = gPanel.sidebar.getItemByProfile(profile);
 }
\ No newline at end of file
--- a/browser/devtools/profiler/test/browser_profiler_io.js
+++ b/browser/devtools/profiler/test/browser_profiler_io.js
@@ -55,17 +55,17 @@ function test() {
 
   setUp(URL, function onSetUp(tab, browser, panel) {
     gTab = tab;
     gPanel = panel;
 
     let file = FileUtils.getFile("TmpD", ["tmpprofile.json"]);
     file.createUnique(Ci.nsIFile.NORMAL_FILE_TYPE, parseInt("666", 8));
 
-    gPanel.saveProfile(file, gData).then(() => {dump("\n\nsup\n\n");}, () => {dump("\n\n:(((\n\n")})
+    gPanel.saveProfile(file, gData)
       .then(gPanel.loadProfile.bind(gPanel, file))
       .then(checkData);
   });
 }
 
 function checkData() {
   let profile = gPanel.activeProfile;
   let item = gPanel.sidebar.getItemByProfile(profile);