From 1c65cdb68a001cb24243ceb1b9afad2da6eb73bc Mon Sep 17 00:00:00 2001 From: charliepoole <> Date: Thu, 1 Jul 2004 18:56:57 +0000 Subject: [PATCH] Modify display of alternate languages for examples and change javascript for compatibility with Mozilla Firefox. --- doc/category.html | 151 ++++++------------------------------- doc/css/styleGuide.css | 18 +++++ doc/css/styleGuideIE.css | 18 +++++ doc/css/styleGuideNN.css | 18 +++++ doc/exception.html | 106 ++++++++------------------ doc/explicit.html | 155 ++++++++++++++------------------------ doc/ignore.html | 159 ++++++++++++++------------------------- doc/setupTeardown.html | 158 +++++++++++++++----------------------- doc/suite.html | 67 +---------------- doc/test.html | 118 +++++++++++------------------ doc/testFixture.html | 115 ++++++++++------------------ 11 files changed, 367 insertions(+), 716 deletions(-) diff --git a/doc/category.html b/doc/category.html index b2474dfa..10c824e9 100644 --- a/doc/category.html +++ b/doc/category.html @@ -184,6 +184,7 @@ + diff --git a/doc/css/styleGuide.css b/doc/css/styleGuide.css index 8c20c9f6..14d0a533 100644 --- a/doc/css/styleGuide.css +++ b/doc/css/styleGuide.css @@ -45,6 +45,16 @@ a:active { padding: 0px 0px 0px 5px; } +.dropdown { + position: absolute; + border: 1px solid cccccc; + background-color:ffffdd; + padding-left:10; + padding-right:10; + padding-top:0; + padding-bottom:0; + text-align: left; +} .rightimg { background: #FFFFFF url(../img/sideImg.gif); @@ -118,6 +128,9 @@ a:active { .copyrighttext { + margin-left: 5%; + margin-right: 5%; + text-align: center; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 0.61em; letter-spacing: 1em @@ -141,6 +154,11 @@ a:active { color: #000000; } +.code { + border: 1px solid cccccc; + background-color:eeffff; + padding-left:10; padding-right:10; padding-top:0; padding-bottom +} .tableRowSpace { background:#999999 diff --git a/doc/css/styleGuideIE.css b/doc/css/styleGuideIE.css index 508360b0..76ae874f 100644 --- a/doc/css/styleGuideIE.css +++ b/doc/css/styleGuideIE.css @@ -43,6 +43,16 @@ a:active { padding: 0px 0px 0px 5px; } +.dropdown { + position: absolute; + border: 1px solid cccccc; + background-color:ffffdd; + padding-left:10; + padding-right:10; + padding-top:0; + padding-bottom:0; + text-align: left; +} .rightimg { background: #FFFFFF url('../img/sideImg.gif') repeat-y; @@ -116,6 +126,9 @@ a:active { .copyrighttext { + margin-left: 5%; + margin-right: 5%; + text-align: center; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 0.61em; letter-spacing: 0em @@ -140,6 +153,11 @@ a:active { color: #000000; } +.code { + border: 1px solid cccccc; + background-color:eeffff; + padding-left:10; padding-right:10; padding-top:0; padding-bottom +} .tableRowSpace { background:#999999 diff --git a/doc/css/styleGuideNN.css b/doc/css/styleGuideNN.css index b7a96a86..ffba408b 100644 --- a/doc/css/styleGuideNN.css +++ b/doc/css/styleGuideNN.css @@ -42,6 +42,16 @@ a:active { padding: 0px 0px 0px 5px; } +.dropdown { + position: absolute; + border: 1px solid cccccc; + background-color:ffffdd; + padding-left:10; + padding-right:10; + padding-top:0; + padding-bottom:0; + text-align: left; +} .rightimg { background-repeat: repeat-y; @@ -115,6 +125,9 @@ a:active { .copyrighttext { + margin-left: 5%; + margin-right: 5%; + text-align: center; font-family: "Verdana", "Arial", "Helvetica", sans-serif; font-size: 0.61em; letter-spacing: 1em @@ -138,6 +151,11 @@ a:active { color: #000000; } +.code { + border: 1px solid cccccc; + background-color:eeffff; + padding-left:10; padding-right:10; padding-top:0; padding-bottom +} .tableRowSpace { background:#999999 diff --git a/doc/exception.html b/doc/exception.html index 04b10724..da0cfccb 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -196,66 +196,40 @@ The runner will execute the test and if it throws the specific exception, then the test passes. If it throws a different exception the test will fail. This is true even if the thrown exception inherits from - the expected exception.
-
- ExpectedException Example:

-

+ the expected exception.

+

Example:

- -

-

@@ -204,104 +205,50 @@ at any time.

- - - - -
- Test Fixture Syntax - - + Language Filter -
- - +


-
- -

+
Copyright © 2004 Charlie Poole. All - Rights Reserved.
+ Rights Reserved. +
|
+ + Language Filter + + +
- - - - - - - - - - -
-
namespace NUnit.Tests
+						
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -270,7 +244,7 @@
   }
 }
 
-

-
- C# - VB - Managed C++  
diff --git a/doc/explicit.html b/doc/explicit.html index b16ab3e3..c42245c2 100644 --- a/doc/explicit.html +++ b/doc/explicit.html @@ -202,64 +202,53 @@ it as if it had been ignored. The progress bar turns yellow and the test is listed in the report of tests not run

-

Test Fixture Syntax
-
- -

- + + Language Filter + + +
- + + + - + + - - - - - - - - - -
-
namespace NUnit.Tests
+						
+ Test Fixture Syntax +
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -271,7 +260,7 @@
   }
 }
 
-

+
+ Test Syntax

-
- C# - VB - Managed C++ - J#  
-
- Test Syntax
-
- - - - - - - - - - - - - -
-
namespace NUnit.Tests
+						
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -354,7 +326,7 @@ public class ExplicitTests
     { /* ... */ }
 }
 
-

-

-
- C# - VB - Managed C++ - J#  
diff --git a/doc/ignore.html b/doc/ignore.html index 8b1cfc37..d3e4433f 100644 --- a/doc/ignore.html +++ b/doc/ignore.html @@ -202,66 +202,55 @@ This is a better mechanism than commenting out the test or renaming methods, since the tests will be compiled with the rest of the code and there is an indication at run time that a test is not being - run. This insures that tests will not be forgotten.
-

-

Test Fixture Syntax
-
+ run. This insures that tests will not be forgotten.

+ - -

- + + Language Filter + + +
- + + + - + + - - - - - - - - - -
-
namespace NUnit.Tests
+						
+ Test Fixture Syntax +
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -274,7 +263,7 @@
   }
 }
 
-

+
+ Test Syntax

-
- C# - VB - Managed C++ - J#  
-
- Test Syntax
-
- - - - - - - - - - - - - -
-
namespace NUnit.Tests
+						
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -358,7 +330,7 @@ public class SuccessTests
     { /* ... */ }
 }
 
-

-

-
- C# - VB - Managed C++ - J#  
diff --git a/doc/setupTeardown.html b/doc/setupTeardown.html index 1d7c885c..05bfb3da 100644 --- a/doc/setupTeardown.html +++ b/doc/setupTeardown.html @@ -188,62 +188,49 @@ have only one TestFixtureSetUp method and only one TestFixtureTearDown method. If more than one of each type is defined the TestFixture will not be run. It will compile however.

-

TestFixtureSetUp/TestFixtureTearDown Example:

-

- - + + Language Filter + + +
- - - - - - - - - - -
-
namespace NUnit.Tests
+					
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -262,7 +249,7 @@
   }
 }
 
-

- C# - - VB - - Managed C++ - - J# -  

SetUp/TearDown (NUnit 2.0)
@@ -357,11 +326,20 @@ public class SuccessTests compile however.

-

SetUp/TearDown Example:

- +

Example:

+ + Language Filter + + +
- - - - - - - - - - -
-
namespace NUnit.Tests
+					
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -380,7 +358,7 @@ public class SuccessTests
   }
 }
 
-

- C# - - VB - - Managed C++ - - J# -  


SetUp/TearDown Inheritance
diff --git a/doc/suite.html b/doc/suite.html index 23ca033e..4166f1d7 100644 --- a/doc/suite.html +++ b/doc/suite.html @@ -184,61 +184,10 @@

Suite Attribute syntax

- - - +
- - - - - - - - -
-
namespace NUnit.Tests
+					
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -261,16 +210,6 @@
 }
 

- C# -  
diff --git a/doc/test.html b/doc/test.html index e9b9e162..45eec7ee 100644 --- a/doc/test.html +++ b/doc/test.html @@ -185,62 +185,49 @@ that does not have the correct signature it will not be run and it will appear in the Test Not Run area in the UI that ran the program.

-

Test Example:

- - - + + Language Filter + + +
- - - - - - - - - - - -
-
namespace NUnit.Tests
+					
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -256,7 +243,7 @@
   }
 }
 
-
 

- C# - - VB - - Managed C++ - - J# -  

diff --git a/doc/testFixture.html b/doc/testFixture.html index 93d11c05..34609fbb 100644 --- a/doc/testFixture.html +++ b/doc/testFixture.html @@ -181,63 +181,45 @@

Note: There are a few restrictions. The class must have a default constructor. The class must also be a publicly exported type or the program that dynamically builds suites will not see it.

-

TestFixture Example:

+

Example:

- - - + + Language Filter + + +
- - - - - - - - - - - -
-
namespace NUnit.Tests
+					
+
namespace NUnit.Tests
 {
   using System;
   using NUnit.Framework;
@@ -249,7 +231,7 @@
   }
 }
 
-
 

- C# - - VB - - Managed C++ - - J# -