1 19 20 package gui; 21 22 23 import gui.action.JavaCompletionInJspEditor; 24 import gui.action.PageUpPageDownInJspEditor; 25 import gui.action.ToggleBreakpoint; 26 import org.netbeans.junit.NbTestCase; 27 import org.netbeans.junit.NbTestSuite; 28 import org.netbeans.test.web.performance.WebPerfTestSuite; 29 30 35 public class MeasureEditor extends NbTestCase { 36 37 private MeasureEditor(String name) { 38 super(name); 39 } 40 41 public static void main(java.lang.String [] args) { 42 junit.textui.TestRunner.run(suite()); 43 } 44 45 public static NbTestSuite suite() { 46 WebPerfTestSuite suite = new WebPerfTestSuite(); 47 suite.addTest(new PageUpPageDownInJspEditor("Test.jsp", "measureTime", 53 "Press Page Up in the JSP Editor", true)); 54 suite.addTest(new PageUpPageDownInJspEditor("Test.jsp", "measureTime", 55 "Press Page Down in the JSP Editor", false)); 56 suite.addTest(new PageUpPageDownInJspEditor("BigJSP.jsp", "measureTime", 59 "Press Page Down in the JSP Editor with large file", false)); 60 61 64 71 74 81 suite.addTest(new ToggleBreakpoint("Test.jsp", "measureTime", 82 "Toggle Breakpoint")); 83 84 suite.addTest(new JavaCompletionInJspEditor("testScriptletCC", 85 "Invoke Code Completion dialog inside jsp scriptlet")); 86 suite.addTest(new JavaCompletionInJspEditor("testScriptletCC", 87 "Invoke Code Completion dialog inside jsp scriptlet II")); 88 suite.addTest(new JavaCompletionInJspEditor("testExpressionCC", 89 "Invoke Code Completion dialog inside jsp expression")); 90 suite.addTest(new JavaCompletionInJspEditor("testDeclarationCC", 91 "Invoke Code Completion dialog inside jsp declaration")); 92 suite.addTest(new JavaCompletionInJspEditor("testAllTags", 93 "Invoke Code Completion dialog after <")); 94 suite.addTest(new JavaCompletionInJspEditor("testTagAttribute1", 95 "Invoke Code Completion dialog after <%@page")); 96 suite.addTest(new JavaCompletionInJspEditor("testTagAttribute2", 97 "Invoke Code Completion dialog after <jsp:useBean")); 98 suite.addTest(new JavaCompletionInJspEditor("testAttributeValue2", 99 "Invoke Code Completion dialog after <%@include file=")); 100 suite.addTest(new JavaCompletionInJspEditor("testAttributeValue3", 101 "Invoke Code Completion dialog after <jsp:useBean scope=")); 102 suite.addTest(new JavaCompletionInJspEditor("testAttributeValue5", 103 "Invoke Code Completion dialog after <jsp:getProperty name=bean " + 104 "property=")); 105 suite.addUnstableTest(new JavaCompletionInJspEditor("testAttributeValue6", 106 "Invoke Code Completion dialog after <%@taglib tagdir=")); 107 suite.addTest(new JavaCompletionInJspEditor("testAttributeValue1", 108 "Invoke Code Completion dialog after <%@page import=")); 109 suite.addTest(new JavaCompletionInJspEditor("testAttributeValue4", 110 "Invoke Code Completion dialog after <jsp:useBean class=")); 111 112 return suite; 113 } 114 115 } 116 | Popular Tags |