~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to doc/ignore.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:
202
202
                                This is a better mechanism than commenting out the test or renaming
203
203
                                methods, since the tests will be compiled with the rest of the code
204
204
                                and there is an indication at run time that a test is not being
205
 
                                run. This insures that tests will not be forgotten. <br>
206
 
                                </p>
207
 
                                <p><b>Test Fixture Syntax</b><br>
208
 
                                <br>
 
205
                                run. This insures that tests will not be forgotten.</p>
 
206
 
209
207
                                <script language="JavaScript">
210
 
    function doClick(index, numTabs, id) {
211
 
        document.all("tab" + id, index).className = "tab";
212
 
        for (var i=1; i < numTabs; i++) {
213
 
            document.all("tab" + id, (index + i) % numTabs).className = "backtab";
214
 
        }
215
 
        document.all("code" + id, index).style.display = "";
216
 
        for (var j=1; j < numTabs; j++) {
217
 
          document.all("code" + id, (index + j) % numTabs).style.display = "none";
218
 
        }
219
 
    }
 
208
        function Show( id ) {
 
209
                document.getElementById(id).style.display = "";
 
210
        }
 
211
        function Hide( id ) {
 
212
                document.getElementById(id).style.display = "none";
 
213
        }
 
214
    function ShowCS()
 
215
        {
 
216
            Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
 
217
            Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
 
218
        }
 
219
    function ShowVB()
 
220
        {
 
221
            Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
 
222
            Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
 
223
        }
 
224
    function ShowMC()
 
225
        {
 
226
            Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
 
227
            Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
 
228
        }
 
229
    function ShowJS()
 
230
        {
 
231
            Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
 
232
            Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
 
233
        }
220
234
                        </script>
221
 
                                <style>
222
 
    td.code {
223
 
      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
224
 
    }
225
 
 
226
 
    td.tab {
227
 
      border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
228
 
      width:15%;
229
 
      padding:3;
230
 
      border-right:0px none black;
231
 
      background-color:eeeeee;
232
 
      cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
233
 
    }
234
 
 
235
 
    td.backtab {
236
 
      border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
237
 
      width:15%;
238
 
      padding:3;
239
 
      border-right:0px none black;
240
 
      background-color:cccccc;
241
 
      cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
242
 
    }
243
 
 
244
 
    td.topspace {
245
 
      border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
246
 
      padding:0;
247
 
      border-bottom:1px none cccccc;
248
 
      border-right:1px none cccccc;
249
 
      background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
250
 
    }
251
 
 
252
 
    td.space {
253
 
      border-left:1px solid black; border-top:0px none cccccc; width:55%;
254
 
      padding:0;
255
 
      border-bottom:1px none cccccc;
256
 
      border-right:1px none cccccc;
257
 
      background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
258
 
    }
259
 
                        </style>
260
 
                                </p>
261
 
                                <table cellpadding="0" cellspacing="0" width="95%">
262
 
                                        <tr>
263
 
                                                <td class="code" colspan="4">
264
 
                                                <pre id="code_ctl2" style="display:">namespace NUnit.Tests
 
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">
 
246
                                        <tr>
 
247
                                                <td class="bodytext">
 
248
                                                        <b>Test Fixture Syntax</b>
 
249
                                                </td>
 
250
                                        </tr>
 
251
                                        <tr>
 
252
                                                <td class="code">
 
253
                                                <pre id="CS1" style="display:">namespace NUnit.Tests
265
254
{
266
255
  using System;
267
256
  using NUnit.Framework;
274
263
  }
275
264
}
276
265
</pre>
277
 
                                                <pre id="code_ctl2" style="display:none">Imports System
 
266
                                                <pre id="VB1" style="display:none">Imports System
278
267
Imports Nunit.Framework
279
268
 
280
269
Namespace Nunit.Tests
285
274
  End Class
286
275
End Namespace
287
276
</pre>
288
 
                                                <pre id="code_ctl2" style="display:none">#using &lt;Nunit.Framework.dll&gt;
 
277
                                                <pre id="MC1" style="display:none">#using &lt;Nunit.Framework.dll&gt;
289
278
using namespace System;
290
279
using namespace NUnit::Framework;
291
280
 
305
294
  // ...
306
295
}
307
296
</pre>
308
 
                                                <pre id="code_ctl2" style="display:none">package NUnit.Tests;
 
297
                                                <pre id="JS1" style="display:none">package NUnit.Tests;
309
298
 
310
299
import System.*;
311
300
import NUnit.Framework.TestFixture;
319
308
}
320
309
</pre>
321
310
                                                </td>
322
 
                                                <td class="topspace"><br>
323
 
                                                </td>
324
 
                                        </tr>
325
 
                                        <tr>
326
 
                                                <td colspan="5"><br>
327
 
                                                </td>
328
 
                                        </tr>
329
 
                                        <tr>
330
 
                                                <td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
331
 
                                                <b>C#</b> </td>
332
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
333
 
                                                <b>VB</b> </td>
334
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
335
 
                                                <b>Managed C++</b> </td>
336
 
                                                <td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
337
 
                                                <b>J#</b> </td>
338
 
                                                <td class="space">&nbsp;</td>
339
 
                                        </tr>
340
 
                                </table>
341
 
                                <br>
342
 
                                <b>Test Syntax</b><br>
343
 
                                <br>
344
 
                                <table cellpadding="0" cellspacing="0" width="95%">
345
 
                                        <tr>
346
 
                                                <td class="code" colspan="4">
347
 
                                                <pre id="code_ctl3" style="display:">namespace NUnit.Tests
 
311
                                        </tr>
 
312
                                        <tr>
 
313
                                                <td class="bodytext">
 
314
                                                        <b>Test Syntax</b><br>
 
315
                                                </td>
 
316
                                        </tr>
 
317
                                        <tr>
 
318
                                                <td class="code">
 
319
                                                <pre id="CS2" style="display:">namespace NUnit.Tests
348
320
{
349
321
  using System;
350
322
  using NUnit.Framework;
358
330
    { /* ... */ }
359
331
}
360
332
</pre>
361
 
                                                <pre id="code_ctl3" style="display:none">Imports System
 
333
                                                <pre id="VB2" style="display:none">Imports System
362
334
Imports Nunit.Framework
363
335
 
364
336
Namespace Nunit.Tests
371
343
  End Class
372
344
End Namespace
373
345
</pre>
374
 
                                                <pre id="code_ctl3" style="display:none">#using &lt;Nunit.Framework.dll&gt;
 
346
                                                <pre id="MC2" style="display:none">#using &lt;Nunit.Framework.dll&gt;
375
347
using namespace System;
376
348
using namespace NUnit::Framework;
377
349
 
390
362
  // ...
391
363
}
392
364
</pre>
393
 
                                                <pre id="code_ctl3" style="display:none">package NUnit.Tests;
 
365
                                                <pre id="JS2" style="display:none">package NUnit.Tests;
394
366
 
395
367
import System.*;
396
368
import NUnit.Framework.TestFixture;
406
378
}
407
379
</pre>
408
380
                                                </td>
409
 
                                                <td class="topspace"><br>
410
 
                                                </td>
411
 
                                        </tr>
412
 
                                        <tr>
413
 
                                                <td colspan="5"><br>
414
 
                                                </td>
415
 
                                        </tr>
416
 
                                        <tr>
417
 
                                                <td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
418
 
                                                <b>C#</b> </td>
419
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
420
 
                                                <b>VB</b> </td>
421
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
422
 
                                                <b>Managed C++</b> </td>
423
 
                                                <td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
424
 
                                                <b>J#</b> </td>
425
 
                                                <td class="space">&nbsp;</td>
426
381
                                        </tr>
427
382
                                </table>
428
383
                                </td>