alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

/*
 *                 Sun Public License Notice
 *
 * The contents of this file are subject to the Sun Public License
 * Version 1.0 (the "License"). You may not use this file except in
 * compliance with the License. A copy of the License is available at
 * http://www.sun.com/
 *
 * The Original Code is NetBeans. The Initial Developer of the Original
 * Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
 * Microsystems, Inc. All Rights Reserved.
 */

package gui;


import org.netbeans.junit.NbTestSuite;
import gui.menu.*;
import gui.window.*;
import gui.action.*;

/**
 * Measure UI-RESPONSIVENES and WINDOW_OPENING.
 *
 * @author  mmirilovic@netbeans.org
 */
public class MeasureEditor  {
    
    public static void main(java.lang.String[] args) {
        junit.textui.TestRunner.run(suite());
    }
    
    public static NbTestSuite suite() {
        NbTestSuite suite = new NbTestSuite();

        suite.addTest(new PasteInJspEditor("index.jsp", "measureTime", "Paste in the JSP Editor"));
        suite.addTest(new PasteInJspEditor("BigJSP.jsp", "measureTime", "Paste in the JSP Editor with large file"));
        suite.addTest(new PageUpPageDownInJspEditor("Test.jsp", "measureTime", "Press Page Up in the JSP Editor", true));
        suite.addTest(new PageUpPageDownInJspEditor("Test.jsp", "measureTime", "Press Page Down in the JSP Editor", false));
        suite.addTest(new PageUpPageDownInJspEditor("BigJSP.jsp", "measureTime", "Press Page Up in the JSP Editor with large file", true));
        suite.addTest(new PageUpPageDownInJspEditor("BigJSP.jsp", "measureTime", "Press Page Down in the JSP Editor with large file", false));
        
        //suite.addTest(new JavaCompletionInJspEditor("measureTime", "Invoke Code Completion dialog in JSP Editor"));
        suite.addTest(new TypingInJspEditor("Test.jsp", 12, "measureTime", "Type a character in JSP Editor"));
        suite.addTest(new TypingInJspEditor("BigJSP.jsp", 12, "measureTime", "Type a character in JSP Editor with large file"));

        suite.addTest(new TypingInJspEditor("BigJSP2.jsp", 12, "measureTime", "Type a character in JSP Editor at the beginning of another large file"));
        suite.addTest(new TypingInJspEditor("BigJSP2.jsp", 850, "measureTime", "Type a character in JSP Editor at the middle of another large file"));
        suite.addTest(new TypingInJspEditor("BigJSP2.jsp", 1760, "measureTime", "Type a character in JSP Editor at the end of another large file"));
        
        suite.addTest(new JavaCompletionInJspEditor("testScriptletCC", "Invoke Code Completion dialog inside jsp scriptlet"));
        suite.addTest(new JavaCompletionInJspEditor("testScriptletCC", "Invoke Code Completion dialog inside jsp scriptlet II"));
        suite.addTest(new JavaCompletionInJspEditor("testExpressionCC", "Invoke Code Completion dialog inside jsp expression"));
        suite.addTest(new JavaCompletionInJspEditor("testDeclarationCC", "Invoke Code Completion dialog inside jsp declaration"));
        suite.addTest(new JavaCompletionInJspEditor("testAllTags", "Invoke Code Completion dialog after <"));
        suite.addTest(new JavaCompletionInJspEditor("testTagAttribute1", "Invoke Code Completion dialog after <%@page"));
        suite.addTest(new JavaCompletionInJspEditor("testTagAttribute2", "Invoke Code Completion dialog after 
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.