001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package gui;
043:
044: import gui.action.CreateRubyProject;
045: import gui.action.EditorMenuPopup;
046: import gui.action.PageUpPageDownScriptingEditor;
047: import gui.action.SaveModifiedScriptingFiles;
048: import gui.action.ScriptingExpandFolder;
049: import gui.action.TypingInScriptingEditor;
050: import gui.menu.ScriptingNodePopup;
051: import gui.menu.ScriptingProjectNodePopup;
052: import org.netbeans.junit.NbTestSuite;
053:
054: /**
055: *
056: * @author mkhramov@netbeans.org
057: */
058: public class ScriptingMeasureActions {
059: public static NbTestSuite suite() {
060: NbTestSuite suite = new NbTestSuite();
061:
062: suite.addTest(new CreateRubyProject("testCreateRubyProject",
063: "Create Ruby project"));
064: suite.addTest(new CreateRubyProject(
065: "testCreateRubyOnRailsProject",
066: "Create Ruby on Rails project"));
067:
068: suite.addTest(new ScriptingExpandFolder(
069: "testExpandRubyProjectNode",
070: "testExpandRubyProjectNode"));
071: suite.addTest(new ScriptingExpandFolder(
072: "testExpandFolderWith100RubyFiles",
073: "testExpandFolderWith100RubyFiles"));
074: suite.addTest(new ScriptingExpandFolder(
075: "testExpandRailsProjectNode",
076: "testExpandRailsProjectNode"));
077: suite.addTest(new ScriptingExpandFolder(
078: "testExpandFolderWith100RailsFiles",
079: "testExpandFolderWith100RailsFiles"));
080: suite.addTest(new ScriptingExpandFolder(
081: "testExpandFolderWith100JSFiles",
082: "testExpandFolderWith100JSFiles"));
083: suite.addTest(new ScriptingExpandFolder(
084: "testExpandFolderWith100CssFiles",
085: "testExpandFolderWith100CssFiles"));
086:
087: suite.addTest(new EditorMenuPopup("test_RB_EditorPopup",
088: " Ruby editor node popup test"));
089: suite.addTest(new EditorMenuPopup("test_RHTML_EditorPopup",
090: "RHTML editor node popup test"));
091: suite.addTest(new EditorMenuPopup("test_JS_EditorPopup",
092: "Java Script editor node popup test"));
093: suite.addTest(new EditorMenuPopup("test_JSON_EditorPopup",
094: "JSON editor node popup test"));
095: suite.addTest(new EditorMenuPopup("test_CSS_EditorPopup",
096: "CSS editor node popup test"));
097: suite.addTest(new EditorMenuPopup("test_YML_EditorPopup",
098: "YML editor node popup test"));
099: suite.addTest(new EditorMenuPopup("test_BAT_EditorPopup",
100: "BAT editor node popup test"));
101: suite.addTest(new EditorMenuPopup("test_DIFF_EditorPopup",
102: " editor node popup test"));
103: suite.addTest(new EditorMenuPopup("test_MANIFEST_EditorPopup",
104: "MANIFEST editor node popup test"));
105: suite.addTest(new EditorMenuPopup("test_SH_EditorPopup",
106: "Shell Script editor node popup test"));
107:
108: suite.addTest(new TypingInScriptingEditor(
109: "test_RB_EditorTyping", "test_RB_EditorTyping"));
110: suite.addTest(new TypingInScriptingEditor(
111: "test_RHTML_EditorTyping", "test_RHTML_EditorTyping"));
112: suite.addTest(new TypingInScriptingEditor(
113: "test_JScript_EditorTyping",
114: "test_JScript_EditorTyping"));
115:
116: /*
117:
118: suite.addTest(new OpenRubyProject("testOpenRubyProject","Open Ruby Project"));
119: suite.addTest(new OpenRubyProject("testOpenRailsProject","Open Ruby on Rails Project"));
120:
121: */
122:
123: // Saving modified document
124: suite.addTest(new SaveModifiedScriptingFiles(
125: "test_SaveRuby_File", " Save Ruby file test"));
126: suite.addTest(new SaveModifiedScriptingFiles(
127: "test_SaveRHTML_File", " Save RHTML file test"));
128: suite.addTest(new SaveModifiedScriptingFiles(
129: "test_SaveJS_File", " Save Java Script file test"));
130: suite.addTest(new SaveModifiedScriptingFiles(
131: "test_SaveJSON_File", " Save JSON file test"));
132: suite.addTest(new SaveModifiedScriptingFiles(
133: "test_SaveCSS_File", " Save CSS file test"));
134: suite.addTest(new SaveModifiedScriptingFiles(
135: "test_SaveYML_File", " Save YML file test"));
136: suite.addTest(new SaveModifiedScriptingFiles(
137: "test_SaveBAT_File", " Save BAT file test"));
138: suite.addTest(new SaveModifiedScriptingFiles(
139: "test_SaveDIFF_File", " Save DIFF file test"));
140: suite.addTest(new SaveModifiedScriptingFiles(
141: "test_SaveMANIFEST_File", " Save MANIFEST file test"));
142: suite.addTest(new SaveModifiedScriptingFiles(
143: "test_SaveSH_File", " Save SH file test"));
144:
145: // Page Up and Down in scripting editor
146: suite.addTest(new PageUpPageDownScriptingEditor(
147: "testPgUp_In_RBEditor", "test PgUp_In_RBEditor"));
148: suite.addTest(new PageUpPageDownScriptingEditor(
149: "testPgDn_In_RBEditor", "test PgDn_In_RBEditor"));
150: suite.addTest(new PageUpPageDownScriptingEditor(
151: "testPgUp_In_RHTMLEditor", "test PgUp_In_RHTMLEditor"));
152: suite.addTest(new PageUpPageDownScriptingEditor(
153: "testPgDn_In_RHTMLEditor", "test PgDn_In_RHTMLEditor"));
154: suite.addTest(new PageUpPageDownScriptingEditor(
155: "testPgUp_In_JSEditor", "test PgUp_In_JSEditor"));
156: suite.addTest(new PageUpPageDownScriptingEditor(
157: "testPgDn_In_JSEditor", "test PgDn_In_JSEditor"));
158: suite.addTest(new PageUpPageDownScriptingEditor(
159: "testPgUp_In_CSSEditor", "test PgUp_In_CSSEditor"));
160: suite.addTest(new PageUpPageDownScriptingEditor(
161: "testPgDn_In_CSSEditor", "test PgDn_In_CSSEditor"));
162: return suite;
163: }
164: }
|