Go to the source code of this file.
|
| | waitForExplicitFinish () |
| |
| function | add_visit (aURI, aDate) |
| |
| function | add_bookmark (aURI) |
| |
| function | make_test_report (testName, result, units) |
| |
| ptests | push ({name:"open_history_menu", run:function(){var menu=document.getElementById("history-menu");ok(menu,"history menu should exist!");var start=Date.now();var popup=document.getElementById("goPopup");popup.addEventListener("popupshown", function(){var duration=Date.now()-start;var report=make_test_report("open_history_menu", duration);ok(true, report);popup.removeEventListener("popupshown", arguments.callee, false);menu.open=false;runNextTest();}, false);}}) |
| |
| function | test () |
| |
| function | runNextTest () |
| |
| function add_bookmark |
( |
|
aURI | ) |
|
| function add_visit |
( |
|
aURI, |
|
|
|
aDate |
|
) |
| |
| function make_test_report |
( |
|
testName, |
|
|
|
result, |
|
|
|
units |
|
) |
| |
| waitForExplicitFinish |
( |
| ) |
|
Initial value:=
Cc[
"@mozilla.org/browser/nav-bookmarks-service;1"].
getService(Ci.sbIFaceplateManager)
Definition at line 60 of file browser_ui_history_menu.js.
| const Cc = Components.classes |
| const Cr = Components.results |
Initial value:=
Cc[
"@mozilla.org/browser/nav-history-service;1"].
getService(Ci.sbIFaceplateManager)
Definition at line 58 of file browser_ui_history_menu.js.
| const TEST_IDENTIFIER = "ui-perf-test" |
| const TEST_SUITE = "places" |
Initial value:=
Cc[
"@mozilla.org/appshell/window-mediator;1"].
getService(Ci.sbIFaceplateManager)
Definition at line 52 of file browser_ui_history_menu.js.