Persönliche Werkzeuge

Test Musterbogen

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
 
(Der Versionsvergleich bezieht 59 dazwischenliegende Versionen mit ein.)
Zeile 1: Zeile 1:
-
__NOTOC__
+
<html>
-
{{BD-Satz-Kopf    |Gebiet=Bund |MiNr=131 |Anlass=[[Bund MiNr. 123-138|Freimarken: Posthorn]] }}
+
<table id="Frame" style="background:silver" width=100% cellspacing=0 cellpadding=4>
-
{{BD-Satz-Abschn  |Titel=Marke }}
+
  <tr style="background:white" valign=top>
-
|style="padding:10px 10px 0px 10px"|
+
    <td id="Frame.Top" width=100%>
-
{{MD-Marke        |KatNr=131 |KatNrText=[[Literatur#Michel.DeSpezBd2|Michel]] |Gebiet=Bund |Bild=bnd0131.4cg |Scale=30
+
      <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
-
                  |Abbildung=Ziffern mit Posthorn
+
        <tr style="background:#E0E0E0;" valign=top>
-
                  |Zaehnung=K14 |Druck=Bdr. |Farbe=dunkelbraunkarmin |Auflage=99.100.000 |Wz=4 W |Bogen1=Bg }}
+
          <td style="padding:2px 6px 1px 6px"><b>Tests</b></td>
-
{{BD-Satz-AbFuss  }}
+
        </tr>
-
{{BD-Satz-Marke  |Gebiet=Bund |MiNr=131 |Bild=bnd0131.4cg |Form=B |Titel=Bogen 131 (25Pf) }}
+
        <tr style="background:#F8F8F8;" valign=top>
-
{{BD-Satz-GMKopf  }}
+
          <td>
-
{{BD-Satz-GMZeile |Merkmal=BG  |Schluessel=10x10    |Beschreibung=. }}
+
            <table style="background:transparent;" cellspacing=1 cellpadding=4>
-
{{BD-Satz-GMZeile |Merkmal=RWZ  |Schluessel=o:Nkn    |Beschreibung={{snsn|n| 2,|50| - 25,|00}} }}
+
              <tr valign=center>
-
{{BD-Satz-GMZeile |Merkmal=RZ   |Schluessel=u:N      |Beschreibung=1 - 10 }}
+
                <td>
-
{{BD-Satz-GMZeile |Merkmal=StL  |Schluessel=L,R      |Beschreibung=. }}
+
                  Testcases:
-
{{BD-Satz-GMZeile |Merkmal=ZS  |Schluessel=0-1-dg-1 |Beschreibung=. }}
+
                </td>
-
{{BD-Satz-GMZeile |Merkmal=Aufl.|Schluessel=991.000  |Beschreibung=. }}
+
                <td>
-
{{BD-Satz-GMFuss  }}
+
                  <select id="BGF.MB.Tests" name="Tests">
-
{{BD-Satz-BDKopf  |Bg=.              |S1=HAN        |S2=ZP  |S3=JP  |S4=GR |S5=PF |S10=Anmerkung }}
+
                    <option value="BGF_Number.ctor">BGF_Number.ctor</option>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=16003.50   |S2=.   |S3=.   |S4=. |S5=. |S10=. }}
+
                    <option value="BGF_Number.GetValueAs">BGF_Number.GetValueAs()</option>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=16209.50  |S2=.   |S3=.   |S4=. |S5=. |S10=. }}
+
                    <option value="BGF_Number.ConvertTo">BGF_Number.ConvertTo()</option>
-
{{BD-Satz-BDZeile |Bg=.|L=.          |S1=16001.51 1 |S2=.  |S3=.  |S4=.  |S5=. |S10=. }}
+
                  </select>
-
{{BD-Satz-BDZeile |Bg=bnd0131.1ap|L=# |S1=16001.51 2 |S2=R5a |S3=L5a |S4=S? |S5=I  |S10=. }}
+
                </td>
-
{{BD-Satz-BDZeile |Bg=bnd0131.4cg|L=# |S1=16001.51 2 |S2=R5a |S3=L5a |S4=S  |S5=I  |S10=. }}
+
                <td>
-
{{BD-Satz-BDZeile |Bg=bnd0131.5uf|L=# |S1=16001.51 2 |S2=R5a |S3=L5a |S4=S  |S5=I  |S10=. }}
+
                  </html>&nbsp;&nbsp;{{Button|Caption=Run |ID=BGF.MB.RunTest |OnEvent=BtnPageEvent}}<html>
-
{{BD-Satz-BDZeile |Bg=.|L=.          |S1=16175.51  |S2=.  |S3=.  |S4=.  |S5=.  |S10=. }}
+
                </td>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=16188.51 1 |S2=.   |S3=.   |S4=. |S5=.  |S10=. }}
+
              </tr>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=16188.51 2 |S2=.  |S3=.  |S4=. |S5=. |S10=. }}
+
            </table>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=16245.51 1 |S2=.   |S3=.   |S4=.  |S5=. |S10=. }}
+
          </td>
-
{{BD-Satz-BDZeile |Bg=.|L=.          |S1=16245.51 2 |S2=.  |S3=.   |S4=. |S5=.  |S10=. }}
+
        </tr>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=15307.52 1 |S2=.   |S3=.   |S4=. |S5=. |S10=. }}
+
      </table>
-
{{BD-Satz-BDZeile |Bg=.|L=.           |S1=15182.53   |S2=.   |S3=.   |S4=. |S5=. |S10=. }}
+
    </td>
-
{{BD-Satz-BDFuss  }}
+
   </tr>
-
{{BD-Satz-MFuss   }}
+
  <tr style="background:white" valign=top>
-
{{BD-Satz-Fuss    }}
+
    <td id="Frame.Bottom" width=100% valign=top>
 +
      <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
 +
        <tr style="background:#E0E0E0;" valign=top>
 +
          <td style="padding:2px 6px 1px 6px"><b>Output</b></td>
 +
        </tr>
 +
        <tr style="background:#F8F8F8;" valign=top>
 +
          <td>
 +
            <div id="BGF.MB.Output" style="width:100%;overflow:auto;height:75vh;"></div>
 +
           </td>
 +
        </tr>
 +
      </table>
 +
    </td>
 +
   </tr>
 +
</table>
 +
<template id="BGF.MB.Test.Output.Template">
 +
  <template id="Head"></template>
 +
  <div id="BGF.MB.Test.%%BGFType%%.%%Method%%.%%Name%%.Create.div" style="width:100%;border:0px solid silver;margin:6px 0px 12px 4px;">
 +
    <table style="background:silver;" cellspacing=1 cellpadding=4>
 +
      <tr style="background:#E0E0E0;" valign=top>
 +
        <td style="padding:2px 6px 1px 6px">Test: <b>%%TCTitle%%</b> (%%BGFType%%.%%Method%%.%%Name%%)</td>
 +
      </tr>
 +
      <tr style="background:#F8F8F8;" valign=top>
 +
        <td>
 +
          <table style="background:silver;" width=100% cellspacing=1 cellpadding=4>
 +
            <template id="TabHead"></template>
 +
            <tr style="background:#E0E0E0;" valign=top>
 +
              <td style="padding:2px 6px 1px 6px"><b>Code</b></td>
 +
              <td style="padding:2px 6px 1px 6px"><b>Variables</b></td>
 +
              <td style="padding:2px 6px 1px 6px"><b>Result</b></td>
 +
            </tr>
 +
            <template id="Body"></template>
 +
            <tr style="background:#F8F8F8;" valign=top>
 +
              <td style="padding:2px 6px 1px 6px"><tt>%%Code%%</tt></td>
 +
              <td style="padding:2px 6px 1px 6px">%%Variables%%</td>
 +
              <td style="padding:2px 6px 1px 6px">%%Result%%</td>
 +
            </tr>
 +
            <template id="ResOK"><span style="color:green"><b>OK</b></span></template>
 +
            <template id="ResKO"><span style="color:red"><b>failed</b></span></template>
 +
            <template id="HashBegin">{</template>
 +
            <template id="HashNext">, </template>
 +
            <template id="HashEnd">}</template>
 +
            <template id="ValueOK">%%VarName%%: %%Value%%</template>
 +
            <template id="ValueKO">%%VarName%%: <span style="color:red">%%Value%%</span> <span style="color:green">(%%ValueExp%%)</span></template>
 +
            <template id="ValueKO1"><span style="color:red">%%Value%%</span></template>
 +
            <template id="Foot"></template>
 +
           </table>
 +
        </td>
 +
      </tr>
 +
    </table>
 +
  </div>
 +
</template>
 +
<script src="/bogenwiki_bgf/src/bgf_libaux.js"></script>
 +
<script src="/bogenwiki_bgf/src/bgf_libdebug.js"></script>
 +
<script src="/bogenwiki_bgf/src/bgf_libgui.js"></script>
 +
<script src="/bogenwiki_bgf/src/bgf_mbtypes.js"></script>
 +
<script src="/bogenwiki_bgf/src/bgf_mbtests.js"></script>
 +
<script>
 +
function MGF_MB_OnClick(eElement)
 +
{
 +
  console.log('[MGF_MB_OnClick] eElement.id='+eElement.id);
 +
   var sElementID = eElement.id;
 +
   switch (sElementID) {
 +
    case 'BGF.MB.RunTest':
 +
      var sSelectedTest = document.getElementById('BGF.MB.Tests').value;
 +
      console.log('sSelectedTest = '+sSelectedTest);
 +
      var [sClass,sMethod] = sSelectedTest.split('.');
 +
      ExecTests(sClass,sMethod);
 +
      break;
 +
  }
 +
}
 +
 
 +
sActiveBgColor = '#A0A0A0';
 +
sActiveCaColor = 'white';
 +
sInactiveBgColor = '#E0E0E0';
 +
sInactiveCaColor = 'black';
 +
sHoverBgColor = '#D0D0D0';
 +
sHoverCaColor = 'black';
 +
function BtnPageEvent(sID,sEvent) {
 +
   eButton = document.getElementById(sID);
 +
  switch (sEvent) {
 +
  case 'onmouseenter':
 +
    //console.log(sID,aActiveBtnID[0],aActiveBtnID[1]);
 +
    eButton.style.background=sHoverBgColor;
 +
    eButton.style.color=sHoverCaColor;
 +
    break;
 +
   case 'onmouseleave':
 +
    eButton.style.background=sInactiveBgColor;
 +
    eButton.style.color=sInactiveCaColor;
 +
    break;
 +
   case 'onclick':
 +
    MGF_MB_OnClick(eButton);
 +
    break;
 +
   case 'onload':
 +
    eButton.style.background=sInactiveBgColor;
 +
    eButton.style.color=sInactiveCaColor;
 +
    break;
 +
   }
 +
}
 +
</script>
 +
</html>

Aktuelle Version vom 07:36, 3. Jul. 2024

Tests
Testcases:   
Run
Output