Bug 899991 - Fix TypeError in browser_profiler_console_api_content.js. r=me

This commit is contained in:
Anton Kovalyov 2013-08-12 17:05:22 -07:00
parent d2f06e2461
commit 08455ef762
2 changed files with 2 additions and 2 deletions

View File

@ -50,6 +50,6 @@ function runTests() {
assertSampleAndFinish();
});
let profile = gPanel.profiles.get(2);
let profile = gPanel.profiles.get(1);
gPanel.sidebar.selectedItem = gPanel.sidebar.getItemByProfile(profile);
}

View File

@ -60,7 +60,7 @@ function test() {
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);
});