Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8298709: Fix typos in src/java.desktop/ and various test classes of c…
…lient component

Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: iris, prr
  • Loading branch information
jaikiran and Michael Ernst committed Dec 16, 2022
1 parent e41686b commit fa322e4
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 19 deletions.
Expand Up @@ -278,7 +278,7 @@
* <p>Removing text from a DefaultStyledDocument is similar to removing text from
* a PlainDocument. The only difference is the extra level of Elements.
* Consider what would happen if you deleted two characters at Offset 1
* from Figure 10, above. Since the the second Element of Paragraph 1 is
* from Figure 10, above. Since the second Element of Paragraph 1 is
* completely contained in the deleted region, it would be removed.
* Assuming the attributes of Paragraph 1's first child matched those of
* Paragraph2's first child, the results would be those shown in <u>Figure 11</u>.
Expand Down
Expand Up @@ -24,7 +24,7 @@
* @test
* @bug 6614214 8198613
* @summary Verifies that we enter the fs mode on the correct screen.
* Here is how to test: start the test on on a multi-screen system.
* Here is how to test: start the test on a multi-screen system.
* Verify that the display is correctly tracked by dragging the frame back
* and forth between screens. Then verify that the correct device enters
* the full-screen mode - when "Enter FS mode" is pressed it should enter on
Expand Down
Expand Up @@ -121,7 +121,7 @@ public void init() {
"6) The output should contain data in three different formats",
" provided by the system clipboard",
" - Data after the \"ALL:\" marker should include the data",
" from the the \"SELECTION:\" marker",
" from the \"SELECTION:\" marker",
" - Data after the \"FRAGMENT\" marker should include the data",
" from the \"SELECTION:\" marker and may be some closing",
" tags could be added to the mark-up",
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/java/awt/print/PrinterJob/PageFormatChange.java
Expand Up @@ -34,7 +34,7 @@
public class PageFormatChange {

static String[] text = {
"This is is a manual test intended to be run on Windows, and you",
"This is a manual test intended to be run on Windows, and you",
"must have at least two printers installed, and ideally the second",
"printer should support large paper sizes. When the pageDialog appears",
"first change printers, then choose a large paper size, then OK",
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/imageio/stream/DeleteOnExitTest.sh
Expand Up @@ -22,7 +22,7 @@
# @test
# @bug 6291034
# @run shell DeleteOnExitTest.sh
# @summary Verify that temporary imageio files files are deleted on VM exit.
# @summary Verify that temporary imageio files are deleted on VM exit.

if [ -z "${TESTSRC}" ]; then
echo "TESTSRC undefined: defaulting to ."
Expand Down
Expand Up @@ -99,7 +99,7 @@ public static void main(java.lang.String[] args) throws Exception {
} catch (InterruptedException e) {
if (!testPassed && testGeneratedInterrupt) {
throw new RuntimeException("PageRanges option is not disabled "
+ "for for Non serv-formatted flvrs");
+ "for Non serv-formatted flvrs");
}
}
if (!testGeneratedInterrupt) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/sound/midi/Sequencer/SequencerState.java
Expand Up @@ -55,7 +55,7 @@ private static boolean hasSequencer() {


public static void main(String[] args) throws Exception {
out("4913027: several Sequencer methods should should specify behaviour on closed Sequencer");
out("4913027: several Sequencer methods should specify behaviour on closed Sequencer");
if (hasSequencer()) {
boolean passed = testAll();
if (passed) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/javax/swing/JColorChooser/Test4193384.java
Expand Up @@ -51,7 +51,7 @@ private static void test(Color[] colors) {
float[] hsb = new float[3];
for (int i = 0; i < colors.length; i++) {
Color color = colors[i];
// Make sure sure that there wasn't a regression
// Make sure that there wasn't a regression
// in java.awt.Color and the conversion methods
Color.RGBtoHSB(color.getRed(), color.getGreen(), color.getBlue(), hsb);
if (!color.equals(Color.getHSBColor(hsb[0], hsb[1], hsb[2]))) {
Expand Down
Expand Up @@ -52,7 +52,7 @@
/*
* @test
* @key headful screenshots
* @summary Verifies SwingSet3 EditorPaneDemo by navigating and and validating
* @summary Verifies SwingSet3 EditorPaneDemo by navigating and validating
* the page contents in all pages
*
* @library /sanity/client/lib/jemmy/src
Expand Down
Expand Up @@ -39,7 +39,7 @@
* @test
* @key headful
* @summary Verifies SwingSet3 TabbedPaneDemo by iterating through tab placement
* positions, opening each tab and verifying the the tab gets selected.
* positions, opening each tab and verifying the tab gets selected.
*
* @library /sanity/client/lib/jemmy/src
* @library /sanity/client/lib/Extensions/src
Expand Down
@@ -1,6 +1,6 @@
### Tree Demo ###

TreeDemo.accessible_description=This demo shows shows a sample usage of a JTree component.
TreeDemo.accessible_description=This demo shows a sample usage of a JTree component.
TreeDemo.tooltip=JTree demo
TreeDemo.name=Tree Demo
TreeDemo.music=Music
Expand Down
Expand Up @@ -286,7 +286,7 @@ public Window waitWindow(Window o, ComponentChooser ch)
}

/**
* Wait till the count of windows which meet the the search criteria becomes
* Wait till the count of windows which meet the search criteria becomes
* equal to count.
*
* @param ch a component chooser used to define and apply the search
Expand All @@ -300,7 +300,7 @@ public static void waitWindowCount(ComponentChooser ch, int count)
}

/**
* Wait till the count of windows which meet the the search criteria becomes
* Wait till the count of windows which meet the search criteria becomes
* equal to count.
*
* @param owner The owner window of all the windows to be checked
Expand Down
Expand Up @@ -252,7 +252,7 @@ public ComponentOperator(ContainerOperator<?> cont, int index) {

/**
* Constructor. Waits for a component in a container to show. The component
* is is the first {@code java.awt.Component} that shows and that lies
* is the first {@code java.awt.Component} that shows and that lies
* below the container in the display containment hierarchy. Uses cont's
* timeout and output for waiting and to init operator.
*
Expand Down
Expand Up @@ -66,7 +66,7 @@
* <BR><BR>Timeouts used: <BR>
* JTreeOperator.WaitNodeExpandedTimeout - time to wait node expanded <BR>
* JTreeOperator.WaitNodeCollapsedTimeout - time to wait node collapsed <BR>
* JTreeOperator.WaitAfterNodeExpandedTimeout - time to to sleep after node
* JTreeOperator.WaitAfterNodeExpandedTimeout - time to sleep after node
* expanded <BR>
* JTreeOperator.WaitNextNodeTimeout - time to wait next node displayed <BR>
* JTreeOperator.WaitNodeVisibleTimeout - time to wait node visible <BR>
Expand Down
Expand Up @@ -366,7 +366,7 @@ public Timeouts getTimeouts() {
}

/**
* Returns component visualizer. Visualizer is used from from
* Returns component visualizer. Visualizer is used from
* makeComponentVisible() method.
*
* @return a visualizer assigned to this operator.
Expand All @@ -378,7 +378,7 @@ public ComponentVisualizer getVisualizer() {
}

/**
* Changes component visualizer. Visualizer is used from from
* Changes component visualizer. Visualizer is used from
* makeComponentVisible() method.
*
* @param vo a visualizer to assign to this operator.
Expand Down Expand Up @@ -1080,7 +1080,7 @@ public String map() {
}

/**
* Interface used to make component visible & ready to to make operations
* Interface used to make component visible & ready to make operations
* with.
*/
public interface ComponentVisualizer {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/sun/java2d/pipe/hw/RSLAPITest/RSLAPITest.java
Expand Up @@ -75,7 +75,7 @@ private static void testInvalidType(AccelSurface surface, int type) {
if (ret != 0l) {
System.err.printf(
"FAILED: surface.getNativeResource(%d) returned" +
" 0x%s. It should have have returned 0L\n",
" 0x%s. It should have returned 0L\n",
type, ret);
failed = true;
}
Expand Down

1 comment on commit fa322e4

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.