Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_bug465263.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/tests/mochitest/bugs/test_bug465263.html


<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=465263
-->

<head>
  <title>Test for Bug 465263</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=465263">Mozilla Bug 465263</a>
<p id="display">
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe src="http://mochi.test:8888"></iframe>
  <iframe id="about_blank_iframe"></iframe>
</p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script type="application/javascript">

/** Test for Bug 465263 */
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
  window.frames[0].location.hash = '';
  is(window.frames[0].location.hash, """Should not have '#' in hash");
  is(window.frames[0].location.href, "http://mochi.test:8888/",
     "Should not have '#' in href now");

  window.frames[1].location.hash = '#';
  is(window.frames[1].location.hash, """Should not have '#' in hash");
  is(window.frames[1].location.href, "http://mochi.test:8888/",
     "Should not have '#' in href");

  window.frames[2].location.hash = 'foo';
  is(window.frames[2].location.hash, "#foo""Should have '#foo' in hash");
  is(window.frames[2].location.href, "http://mochi.test:8888/#foo",
     "Should have '#foo' in href");

  window.frames[3].location.hash = '#foo';
  is(window.frames[3].location.hash, "#foo""Should have one '#' in hash");
  is(window.frames[3].location.href, "http://mochi.test:8888/#foo",
     "Should have only one '#' in href here too");

  window.frames[4].location.hash = '#foo';
  window.frames[4].location.hash = '#bar';
  is(window.frames[4].location.hash, "#bar""Should have '#bar' in hash");
  is(window.frames[4].location.href, "http://mochi.test:8888/#bar",
     "Should have only one '#bar' in href here too");

  // Note the difference between location.hash and location.href!
  window.frames[5].location.hash = '#foo';
  window.frames[5].location.hash = '';
  is(window.frames[5].location.hash, """Should not have '#' in hash");
  is(window.frames[5].location.href, "http://mochi.test:8888/#",
     "Should have '#' in href here");

  // Note the difference between location.hash and location.href!
  window.frames[6].location.hash = '#foo';
  window.frames[6].location.hash = '#';
  is(window.frames[6].location.hash, """Should not have '#' in hash");
  is(window.frames[6].location.href, "http://mochi.test:8888/#",
     "Should have '#' in href here");

  // Test URL-encoding of about:blank's location.hash.
  window.location.hash = "<foo> <bar>";
  is(window.location.hash, "#%3Cfoo%3E%20%3Cbar%3E",
     "window hash should be URL-encoded");
  about_blank_iframe.contentWindow.location.hash = "<bar> <foo>";
  is(about_blank_iframe.contentWindow.location.hash, "#%3Cbar%3E%20%3Cfoo%3E",
     "iframe hash should be URL-encoded");
  is(window.location.hash, "#%3Cfoo%3E%20%3Cbar%3E",
     "window hash should be unchanged");

  SimpleTest.finish();
});

</script>
</pre>
</body>
</html>

Messung V0.5 in Prozent
C=93 H=100 G=96

¤ Dauer der Verarbeitung: 0.4 Sekunden  ¤

*© 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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=434850
#Domains=655579