| <!DOCTYPE html> |
| <html> |
| <head> |
| <link href="../generic.css" rel="stylesheet"/> |
| <script type="text/javascript" src="OutlineTest.js"></script> |
| <script> |
| function performTest() |
| { |
| Outline_init(); |
| if (Outline_detectSectionNumbering()) |
| setupOutlineNumbering(); |
| PostponedActions_perform(); |
| |
| // Add a table of contents |
| Selection_set(document.body,0,document.body,0); |
| Outline_insertTableOfContents(); |
| PostponedActions_perform(); |
| } |
| </script> |
| </head> |
| <body> |
| <h1>Section 1</h1> |
| <p>Content 1 A</p> |
| <p>Content 1 B</p> |
| <h2>Section 2</h2> |
| <p>Content 2 A</p> |
| <p>Content 2 B</p> |
| <h2>Section 3</h2> |
| <p>Content 3 A</p> |
| <p>Content 3 B</p> |
| <h1>Section 4</h1> |
| <p>Content 4 A</p> |
| <p>Content 4 B</p> |
| <h2>Section 5</h2> |
| <p>Content 5 A</p> |
| <p>Content 5 B</p> |
| <h3>Section 6</h3> |
| <p>Content 6 A</p> |
| <p>Content 6 B</p> |
| <h3>Section 7</h3> |
| <p>Content 7 A</p> |
| <p>Content 7 B</p> |
| <h2>Section 8</h2> |
| <p>Content 8 A</p> |
| <p>Content 8 B</p> |
| <h3>Section 9</h3> |
| <p>Content 9 A</p> |
| <p>Content 9 B</p> |
| <h3>Section 10</h3> |
| <p>Content 10 A</p> |
| <p>Content 10 B</p> |
| </body> |
| </html> |