< prev index next >

test/java/awt/TextField/EOLTest/EOLTest.java

Print this page
rev 14836 : 8159690: [TESTBUG] Mark 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 8055197 7186036
  27  @summary TextField should replace EOL character with space character
  28  @run main EOLTest
  29  */
  30 
  31 import java.awt.Frame;
  32 import java.awt.TextField;
  33 import java.io.ByteArrayInputStream;
  34 import java.io.ByteArrayOutputStream;
  35 import java.io.ObjectInput;
  36 import java.io.ObjectInputStream;
  37 import java.io.ObjectOutput;
  38 import java.io.ObjectOutputStream;
  39 
  40 public class EOLTest {
  41 
  42     private Frame mainFrame;
  43     private TextField textField;
  44     private String testStrEOL;
  45     private boolean isTestFail;




   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 8055197 7186036
  28  @summary TextField should replace EOL character with space character
  29  @run main EOLTest
  30  */
  31 
  32 import java.awt.Frame;
  33 import java.awt.TextField;
  34 import java.io.ByteArrayInputStream;
  35 import java.io.ByteArrayOutputStream;
  36 import java.io.ObjectInput;
  37 import java.io.ObjectInputStream;
  38 import java.io.ObjectOutput;
  39 import java.io.ObjectOutputStream;
  40 
  41 public class EOLTest {
  42 
  43     private Frame mainFrame;
  44     private TextField textField;
  45     private String testStrEOL;
  46     private boolean isTestFail;


< prev index next >