Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/editor/libeditor/tests/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  test_bug1306532.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/editor/libeditor/tests/test_bug1306532.html


<!DOCTYPE HTML>
<html><head>
<title>Test for bug 1306532</title>
<style src="/tests/SimpleTest/test.css" type="text/css"></style>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>

<script class="testbody" type="application/javascript">

function runTest() {
  const headingone = document.getElementById("headingone");
  const celltwo = document.getElementById("celltwo");
  const pasteframe = document.getElementById("pasteframe");

  // Copy content from table.
  var selection = getSelection();
  var startRange = document.createRange();
  startRange.setStart(headingone, 0);
  startRange.setEnd(celltwo, 0);
  selection.removeAllRanges();
  selection.addRange(startRange);
  SpecialPowers.wrap(document).execCommand("copy", false, null);

  // Paste content into "pasteframe"
  var pasteContainer = pasteframe.contentDocument.body;
  var pasteRange = pasteframe.contentDocument.createRange();
  pasteRange.selectNodeContents(pasteContainer);
  pasteRange.collapse(false);
  selection.removeAllRanges();
  selection.addRange(pasteRange);
  SpecialPowers.wrap(pasteframe.contentDocument).execCommand("paste", false, null);

  is(pasteContainer.querySelector("#headingone").textContent, "Month""First heading should be 'Month'.");
  is(pasteContainer.querySelector("#headingtwo").textContent, "Savings""Second heading should be 'Savings'.");
  is(pasteContainer.querySelector("#cellone").textContent, "January""First cell should be 'January'.");
  is(pasteContainer.querySelector("#celltwo").textContent, "$100""Second cell should be '$100'.");

  SimpleTest.finish();
}

SimpleTest.waitForExplicitFinish();

</script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1306532">Mozilla Bug 1306532</a>
<p id="display"></p>

<pre id="test">
</pre>

<div id="container">
<table border="1">
  <tr>
    <th id="headingone">Month</th>
    <th id="headingtwo">Savings</th>
  </tr>
  <tr>
    <td id="cellone">January</td>
    <td id="celltwo">$100</td>
  </tr>
</table>
</div>

<iframe onload="runTest();" id="pasteframe" srcdoc=""></iframe>

</body>
</html>

Messung V0.5
C=94 H=97 G=95

¤ Dauer der Verarbeitung: 0.24 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.