You are viewing a plain text version of this content. The canonical link for it is here.
Posted to watchdog-dev@jakarta.apache.org by rl...@apache.org on 2002/01/29 00:47:41 UTC

cvs commit: jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer negativeBufferOverflowException.jsp negativeDuplicateBufferFatalTranslationError.jsp

rlubke      02/01/28 15:47:41

  Added:       src/server/jsp-tests/jsp/core_syntax/directives/page/buffer
                        negativeBufferOverflowException.jsp
                        negativeDuplicateBufferFatalTranslationError.jsp
  Log:
   - new negative tests for page buffer functionality
  
  Revision  Changes    Path
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/negativeBufferOverflowException.jsp
  
  Index: negativeBufferOverflowException.jsp
  ===================================================================
  <html>
  <title>negativeBufferOverflowException</title>
  <body>
  <% /**	Name: negativeBufferOverflowException
  		Description: Set autoflush to false. Write more
                       date out than the 8KB buffer can handle.
  		Result: An exception should be thrown.
  **/ %>		
  <%@ page autoFlush="false" %>
  <% try {
        for (int d = 0; d < 60000; d++ ) {
            out.print(d+"    ");  
        }
     } catch ( Throwable t ) {
         out.clear();
         out.println( "Buffer overflow occurred.  Exception successfully caught." );
         out.println( "Test status: PASS" );
     }
  %>
  </body>
  </html>
  
  
  
  1.1                  jakarta-watchdog-4.0/src/server/jsp-tests/jsp/core_syntax/directives/page/buffer/negativeDuplicateBufferFatalTranslationError.jsp
  
  Index: negativeDuplicateBufferFatalTranslationError.jsp
  ===================================================================
  <html>
  <title>negativeDuplicateBufferFatalTranslationError</title>
  <body>
  <% /**	Name: negativeDuplicateBufferFatalTranslationError 
  		Description: Verify that multiple uses of buffer attribute
                       result in a fatal translation error.
  		Result: A fatal translation error
  **/ %>		
  <%@ page buffer="12kb" buffer="8kb" %>
  </body>
  </html>
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>