Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_1085291.js

  Sprache: JAVA
 

add_task(async function () {
  // test that nodes inserted by incremental update for bookmarks of all types
  // have the extra bookmark properties (bookmarkGuid, dateAdded, lastModified).

  // getFolderContents opens the root node.
  let root = PlacesUtils.getFolderContents(
    PlacesUtils.bookmarks.toolbarGuid
  ).root;

  async function insertAndTest(bmInfo) {
    bmInfo = await PlacesUtils.bookmarks.insert(bmInfo);
    let node = root.getChild(root.childCount - 1);
    Assert.equal(node.bookmarkGuid, bmInfo.guid);
    Assert.equal(node.dateAdded, bmInfo.dateAdded * 1000);
    Assert.equal(node.lastModified, bmInfo.lastModified * 1000);
  }

  // Normal bookmark.
  await insertAndTest({
    parentGuid: root.bookmarkGuid,
    type: PlacesUtils.bookmarks.TYPE_BOOKMARK,
    title: "Test Bookmark",
    url: "http://test.url.tld",
  });

  // place: query
  await insertAndTest({
    parentGuid: root.bookmarkGuid,
    type: PlacesUtils.bookmarks.TYPE_BOOKMARK,
    title: "Test Query",
    url: `place:parent=${PlacesUtils.bookmarks.menuGuid}`,
  });

  // folder
  await insertAndTest({
    parentGuid: root.bookmarkGuid,
    type: PlacesUtils.bookmarks.TYPE_FOLDER,
    title: "Test Folder",
  });

  // separator
  await insertAndTest({
    parentGuid: root.bookmarkGuid,
    type: PlacesUtils.bookmarks.TYPE_SEPARATOR,
  });

  root.containerOpen = false;
});

Messung V0.5 in Prozent
C=83 H=94 G=88

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik