B2G/gecko/browser/devtools/scratchpad/test/browser_scratchpad_bug_651942_recent_files.js
// recent file, and that the other files were reordered successfully.
recent file, and that the other files were reordered successfully.
recent file and that the other files were reordered successfully .
function testOpenOldestRecent()
{
  lists.recentFiles03 = gScratchpad.getRecentFiles();
  is(lists.recentFiles02[0], lists.recentFiles03[2],
     "File04 was reordered successfully in the 'recent files'-list.");
  is(lists.recentFiles02[1], lists.recentFiles03[0],
     "File03 was reordered successfully in the 'recent files'-list.");
  is(lists.recentFiles02[2], lists.recentFiles03[1],
     "File02 was reordered successfully in the 'recent files'-list.");
  Services.prefs.setIntPref("devtools.scratchpad.recentFilesMax", 0);
}
function testOpenOldestRecent ( ) { lists . recentFiles03 = gScratchpad . getRecentFiles ( ) ; is ( lists . recentFiles02 [ 0 ] , lists . recentFiles03 [ 2 ] , "File04 was reordered successfully in the 'recent files'-list." ) ; is ( lists . recentFiles02 [ 1 ] , lists . recentFiles03 [ 0 ] , "File03 was reordered successfully in the 'recent files'-list." ) ; is ( lists . recentFiles02 [ 2 ] , lists . recentFiles03 [ 1 ] , "File02 was reordered successfully in the 'recent files'-list." ) ; Services . prefs . setIntPref ( "devtools.scratchpad.recentFilesMax" , 0 ) ; }
recent file, and that the other files were reordered successfully.
recent file and that the other files were reordered successfully .