B2G/gecko/browser/devtools/scratchpad/test/browser_scratchpad_bug_651942_recent_files.js
// the menu is empty and was disabled successfully.
the menu is empty and was disabled successfully.
the menu is empty and was disabled successfully .
function testClearedAll()
{
  let doc = gScratchpadWindow.document;
  let menu = doc.getElementById("sp-open_recent-menu");
  let popup = doc.getElementById("sp-menu-open_recentPopup");
  is(gScratchpad.getRecentFiles().length, 0,
     "All recent files removed successfully.");
  is(popup.children.length, 0, "All menuitems removed successfully.");
  ok(menu.hasAttribute("disabled"),
     "No files in the menu, it was disabled successfully.");
  finishTest();
}
function testClearedAll ( ) { let doc = gScratchpadWindow . document ; let menu = doc . getElementById ( "sp-open_recent-menu" ) ; let popup = doc . getElementById ( "sp-menu-open_recentPopup" ) ; is ( gScratchpad . getRecentFiles ( ) . length , 0 , "All recent files removed successfully." ) ; is ( popup . children . length , 0 , "All menuitems removed successfully." ) ; ok ( menu . hasAttribute ( "disabled" ) , "No files in the menu, it was disabled successfully." ) ; finishTest ( ) ; }
the menu is empty and was disabled successfully.
the menu is empty and was disabled successfully .