< prev index next >

test/javax/swing/text/JTextComponent/5074573/bug5074573.java

Print this page
rev 14989 : 8160974: [TESTBUG] Mark more headful tests with @key headful.


   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test

  26  * @bug 5074573
  27  * @summary tests delte-next-word and delete-prev-word actions for all text compnents and all look&feels
  28  * @author Igor Kushnirskiy
  29  * @run main bug5074573
  30  */
  31 
  32 import java.util.*;
  33 import java.awt.Robot;
  34 import java.awt.Toolkit;
  35 import java.awt.event.*;
  36 import javax.swing.*;
  37 import javax.swing.text.*;
  38 
  39 public class bug5074573 {
  40 
  41     private static JTextComponent textComponent;
  42     final static String testString = "123 456 789";
  43     final static String resultString = "456 ";
  44     final static List<Class<? extends JTextComponent>> textClasses = Arrays.asList(
  45             JTextArea.class, JEditorPane.class, JTextPane.class,




   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @key headful
  27  * @bug 5074573
  28  * @summary tests delte-next-word and delete-prev-word actions for all text compnents and all look&feels
  29  * @author Igor Kushnirskiy
  30  * @run main bug5074573
  31  */
  32 
  33 import java.util.*;
  34 import java.awt.Robot;
  35 import java.awt.Toolkit;
  36 import java.awt.event.*;
  37 import javax.swing.*;
  38 import javax.swing.text.*;
  39 
  40 public class bug5074573 {
  41 
  42     private static JTextComponent textComponent;
  43     final static String testString = "123 456 789";
  44     final static String resultString = "456 ";
  45     final static List<Class<? extends JTextComponent>> textClasses = Arrays.asList(
  46             JTextArea.class, JEditorPane.class, JTextPane.class,


< prev index next >