Go to the source code of this file.
Functions | |
waitForExplicitFinish () | |
function | add_visit (aURI, aDate) |
function | add_bookmark (aURI) |
function | make_test_report (testName, result, units) |
ptests | push ({name:"open_history_sidebar_bydayandsite", times:[], run:function(){var self=this;var start=Date.now();sidebar.addEventListener("load", function(aEvent){sidebar.removeEventListener("load", arguments.callee, true);executeSoon(function(){var duration=Date.now()-start;toggleSidebar("viewHistorySidebar", false);self.times.push(duration);if(self.times.length==TEST_REPEAT_COUNT) self.finish();elseself.run();});}, true);toggleSidebar("viewHistorySidebar", true);}, finish:function(){processTestResult(this);runNextTest();}}) |
function | processTestResult (aTest) |
function | test () |
function | runNextTest () |
Variables | |
const | TEST_IDENTIFIER = "ui-perf-test" |
const | TEST_SUITE = "places" |
const | Cc = Components.classes |
const | Ci = Components.interfaces |
const | Cr = Components.results |
var | wm |
var | win = wm.getMostRecentWindow("navigator:browser") |
var | ios |
var | hs |
var | bs |
var | sidebar = document.getElementById("sidebar") |
var | ptests = [] |
const | TEST_REPEAT_COUNT = 10 |
function add_bookmark | ( | aURI | ) |
Definition at line 75 of file browser_ui_history_sidebar.js.
function add_visit | ( | aURI, | |
aDate | |||
) |
Definition at line 65 of file browser_ui_history_sidebar.js.
function make_test_report | ( | testName, | |
result, | |||
units | |||
) |
Definition at line 81 of file browser_ui_history_sidebar.js.
function processTestResult | ( | aTest | ) |
Definition at line 232 of file browser_ui_history_sidebar.js.
ptests push | ( | {name:"open_history_sidebar_bydayandsite", times:[], run:function(){var self=this;var start=Date.now();sidebar.addEventListener("load", function(aEvent){sidebar.removeEventListener("load", arguments.callee, true);executeSoon(function(){var duration=Date.now()-start;toggleSidebar("viewHistorySidebar", false);self.times.push(duration);if(self.times.length==TEST_REPEAT_COUNT) self.finish();elseself.run();});}, true);toggleSidebar("viewHistorySidebar", true);}, finish:function(){processTestResult(this);runNextTest();}} | ) |
function runNextTest | ( | ) |
Definition at line 247 of file browser_ui_history_sidebar.js.
function test | ( | ) |
Definition at line 242 of file browser_ui_history_sidebar.js.
waitForExplicitFinish | ( | ) |
var bs |
Definition at line 60 of file browser_ui_history_sidebar.js.
const Cc = Components.classes |
Definition at line 49 of file browser_ui_history_sidebar.js.
const Ci = Components.interfaces |
Definition at line 50 of file browser_ui_history_sidebar.js.
const Cr = Components.results |
Definition at line 51 of file browser_ui_history_sidebar.js.
var hs |
Definition at line 58 of file browser_ui_history_sidebar.js.
var ios |
Definition at line 56 of file browser_ui_history_sidebar.js.
var ptests = [] |
Definition at line 86 of file browser_ui_history_sidebar.js.
var sidebar = document.getElementById("sidebar") |
Definition at line 63 of file browser_ui_history_sidebar.js.
const TEST_IDENTIFIER = "ui-perf-test" |
Definition at line 46 of file browser_ui_history_sidebar.js.
const TEST_REPEAT_COUNT = 10 |
Definition at line 90 of file browser_ui_history_sidebar.js.
const TEST_SUITE = "places" |
Definition at line 47 of file browser_ui_history_sidebar.js.
var win = wm.getMostRecentWindow("navigator:browser") |
Definition at line 55 of file browser_ui_history_sidebar.js.
var wm |
Definition at line 53 of file browser_ui_history_sidebar.js.