< prev index next >

test/java/awt/font/TextLayout/ArabicDiacriticTest.java

Print this page
rev 17435 : 8183286: Some java/awt and javax/swing tests miss headful jtreg keyword


   5  * This code is free software; you can redistribute it and/or modify it
   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 /* @test

  25  * @summary verify Arab Diacritic Positioning
  26  * @bug 8168759
  27  */
  28 
  29 import java.awt.Font;
  30 import java.awt.GridLayout;
  31 import java.awt.Rectangle;
  32 import java.awt.font.FontRenderContext;
  33 import java.awt.font.TextLayout;
  34 import java.util.Locale;
  35 import javax.swing.JFrame;
  36 import javax.swing.JLabel;
  37 import javax.swing.SwingUtilities;
  38 import javax.swing.WindowConstants;
  39 
  40 public class ArabicDiacriticTest {
  41 
  42     static final String SAMPLE =
  43      "\u0627\u0644\u0639\u064e\u0631\u064e\u0628\u0650\u064a\u064e\u0651\u0629";
  44 




   5  * This code is free software; you can redistribute it and/or modify it
   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 /* @test
  25  * @key headful
  26  * @summary verify Arab Diacritic Positioning
  27  * @bug 8168759
  28  */
  29 
  30 import java.awt.Font;
  31 import java.awt.GridLayout;
  32 import java.awt.Rectangle;
  33 import java.awt.font.FontRenderContext;
  34 import java.awt.font.TextLayout;
  35 import java.util.Locale;
  36 import javax.swing.JFrame;
  37 import javax.swing.JLabel;
  38 import javax.swing.SwingUtilities;
  39 import javax.swing.WindowConstants;
  40 
  41 public class ArabicDiacriticTest {
  42 
  43     static final String SAMPLE =
  44      "\u0627\u0644\u0639\u064e\u0631\u064e\u0628\u0650\u064a\u064e\u0651\u0629";
  45 


< prev index next >