~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to doc/category.html

  • Committer: charliepoole
  • Date: 2004-07-01 18:56:57 UTC
  • Revision ID: vcs-imports@canonical.com-20040701185657-43v1zj0o1b82cxw9
Modify display of alternate languages for examples and change javascript
for compatibility with Mozilla Firefox.

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
                </td>
185
185
        </tr>
186
186
</table>
 
187
 
187
188
<table width="100%" border="0" cellspacing="0" cellpadding="0">
188
189
        <tr>
189
190
                <td valign="top"><br>
204
205
                                at any time.</p>
205
206
 
206
207
                                <script language="JavaScript">
207
 
/*    function doClick(index, numTabs, id) {
208
 
        document.all("tab" + id, index).className = "tab";
209
 
        for (var i=1; i < numTabs; i++) {
210
 
            document.all("tab" + id, (index + i) % numTabs).className = "backtab";
211
 
        }
212
 
        document.all("code" + id, index).style.display = "";
213
 
        for (var j=1; j < numTabs; j++) {
214
 
          document.all("code" + id, (index + j) % numTabs).style.display = "none";
215
 
        }
216
 
        }*/
217
208
        function Show( id ) {
218
 
                id.style.display="";
 
209
                document.getElementById(id).style.display = "";
219
210
        }
220
211
        function Hide( id ) {
221
 
                id.style.display="none";
 
212
                document.getElementById(id).style.display = "none";
222
213
        }
223
214
    function ShowCS()
224
215
        {
225
 
            Show(CS1); Hide(VB1); Hide(MC1); Hide(JS1);
226
 
            Show(CS2); Hide(VB2); Hide(MC2); Hide(JS2);
 
216
            Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
 
217
            Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
227
218
        }
228
219
    function ShowVB()
229
220
        {
230
 
            Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
231
 
            Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
 
221
            Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
 
222
            Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
232
223
        }
233
224
    function ShowMC()
234
225
        {
235
 
            Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
236
 
            Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
 
226
            Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
 
227
            Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
237
228
        }
238
229
    function ShowJS()
239
230
        {
240
 
            Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
241
 
            Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
 
231
            Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
 
232
            Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
242
233
        }
243
234
                        </script>
244
 
                                <style>
245
 
    td.code {
246
 
      border-left:1px solid cccccc; border-bottom:1px solid cccccc; border-top:1px solid cccccc; border-right:1px solid cccccc; background-color:eeffff; padding-left:10; padding-right:10; padding-top:0; padding-bottom:0
247
 
        }
248
 
 
249
 
    div.dropdown {
250
 
      border-left:1px solid cccccc; border-bottom:1px solid cccccc; border-top:1px solid cccccc; border-right:1px solid cccccc; background-color:ffffdd; padding-left:10; padding-right:10; padding-top:0; padding-bottom:0; text-align: left;
251
 
        }
252
 
 
253
 
    td.tab {
254
 
      border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
255
 
      width:15%;
256
 
      padding:3;
257
 
      border-right:0px none black;
258
 
      background-color:eeeeee;
259
 
      cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
260
 
    }
261
 
 
262
 
    td.backtab {
263
 
      border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
264
 
      width:15%;
265
 
      padding:3;
266
 
      border-right:0px none black;
267
 
      background-color:cccccc;
268
 
      cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
269
 
    }
270
 
 
271
 
    td.topspace {
272
 
      border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
273
 
      padding:0;
274
 
      border-bottom:1px none cccccc;
275
 
      border-right:1px none cccccc;
276
 
      background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
277
 
    }
278
 
 
279
 
    td.space {
280
 
      border-left:1px solid black; border-top:0px none cccccc; width:55%;
281
 
      padding:0;
282
 
      border-bottom:1px none cccccc;
283
 
      border-right:1px none cccccc;
284
 
      background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
285
 
    }
286
 
                        </style>
287
 
                                <table cellpadding="0" cellspacing="0" width="95%">
 
235
 
 
236
                                <a href="javascript:Show('DD1')">
 
237
                                <img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
 
238
                                </a>
 
239
                                <div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
 
240
                                         <a href="javascript:ShowCS()">C#</a><br>
 
241
                                         <a href="javascript:ShowVB()">VB</a><br>
 
242
                                         <a href="javascript:ShowMC()">C++</a><br>
 
243
                                         <a href="javascript:ShowJS()">J#</a><br>
 
244
                                </div>
 
245
                        <table cellpadding="0" cellspacing="0">
288
246
                                    <tr>
289
 
                                                <td class="bodytext" colspan="3">
 
247
                                                <td class="bodytext">
290
248
                                                        <b>Test Fixture Syntax</b>
291
249
                                                </td>
292
 
                                                <td class="bodytext" align="right">
293
 
                                <a href="javascript:Show(DD1)">
294
 
                                <img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
295
 
                                </a>
296
 
                                <div id="DD1" class="dropdown" style="position: absolute; display: none;" onclick="Hide(DD1)" onmouseleave="Hide(DD1)">
297
 
                                         <a href="javascript:ShowCS()">C#</a><br>
298
 
                                         <a href="javascript:ShowVB()">VB</a><br>
299
 
                                         <a href="javascript:ShowMC()">C++</a><br>
300
 
                                         <a href="javascript:ShowJS()">J#</a><br>
301
 
                                </div>
302
 
                                                </td>
303
250
                                        <tr>
304
 
                                                <td class="code" colspan="4">
 
251
                                                <td class="code">
305
252
                                                <pre id="CS1" style="display:">namespace NUnit.Tests
306
253
{
307
254
  using System;
360
307
}
361
308
</pre>
362
309
                                                </td>
363
 
                                                <td class="topspace"><br>
364
 
                                                </td>
365
 
                                        </tr>
366
 
<!--                                    <tr>
367
 
                                                <td colspan="5"><br>
368
 
                                                </td>
369
 
                                        </tr>
370
 
                                        <tr>
371
 
                                                <td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
372
 
                                                <b>C#</b> </td>
373
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
374
 
                                                <b>VB</b> </td>
375
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
376
 
                                                <b>Managed C++</b> </td>
377
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
378
 
                                                <b>J#</b> </td>
379
 
                                                <td class="space">&nbsp;</td>
380
 
                                        </tr>-->
381
 
<!--                            </table>
382
 
                                <br>
383
 
                                <table cellpadding="0" cellspacing="0" width="95%"> -->
 
310
                                        </tr>
384
311
                                    <tr>
385
 
                                                <td class="bodytext" colspan="3">
 
312
                                                <td class="bodytext">
386
313
                                                        <b>Test Syntax</b>
387
314
                                                </td>
388
 
                                                <td class="bodytext" align="right">
389
 
                                <a href="javascript:Show(DD2)">
390
 
                                <img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
391
 
                                </a>
392
 
                                <div id="DD2" class="dropdown" style="position: absolute; display: none;" onclick="Hide(DD2)" onmouseleave="Hide(DD2)">
393
 
                                         <a href="javascript:ShowCS()">C#</a><br>
394
 
                                         <a href="javascript:ShowVB()">VB</a><br>
395
 
                                         <a href="javascript:ShowMC()">C++</a><br>
396
 
                                         <a href="javascript:ShowJS()">J#</a><br>
397
 
                                </div>
398
 
                                                </td>
399
315
                                        <tr>
400
 
                                                <td class="code" colspan="4">
 
316
                                                <td class="code">
401
317
                                                <pre id="CS2" style="display:">namespace NUnit.Tests
402
318
{
403
319
  using System;
460
376
}
461
377
</pre>
462
378
                                                </td>
463
 
                                                <td class="topspace"><br>
464
 
                                                </td>
465
 
                                        </tr>
466
 
<!--                                    <tr>
467
 
                                                <td colspan="5"><br>
468
 
                                                </td>
469
 
                                        </tr>
470
 
                                        <tr>
471
 
                                                <td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
472
 
                                                <b>C#</b> </td>
473
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
474
 
                                                <b>VB</b> </td>
475
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
476
 
                                                <b>Managed C++</b> </td>
477
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
478
 
                                                <b>J#</b> </td>
479
 
                                                <td class="space">&nbsp;</td>
480
 
                                        </tr>-->
 
379
                                        </tr>
481
380
                                </table>
482
381
                                </td>
483
382
                        </tr>
484
383
                </table>
485
 
                <table width="90%" border="0" cellspacing="0" cellpadding="0" class="lefttables">
486
 
                        <tr>
 
384
                <div class="copyrighttext">
487
385
                                <br><hr>
488
 
                                <td class="copyrighttext"><br>
 
386
                                <br>
489
387
                                Copyright � 2004 Charlie Poole. All
490
 
                                Rights Reserved. </td>
491
 
                        </tr>
492
 
                </table>
 
388
                                Rights Reserved.
 
389
                </div>
493
390
                </td>
494
391
                <td width="1" valign="top">
495
392
                <img src="img/sideDivider.gif" width="1" height="435" alt="|"></td>