Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/crashmonitor/test/unit/     Datei vom 27.6.2026 mit Größe 420 B image not shown  

Quelle:  test_init.js  Sprache: JAVA


/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


/**
 * Test that calling |init| twice throws an error
 */

add_task(function test_init() {
  CrashMonitor.init();
  try {
    CrashMonitor.init();
    Assert.ok(false);
  } catch (ex) {
    Assert.ok(true);
  }
});

Messung
CHZG
1001009598

¤ Dauer der Verarbeitung: 0.169 Sekunden  ¤

*© Formatika GbR, Deutschland