8298709: Fix typos in src/java.desktop/ and various test classes of client component

Co-authored-by: Michael Ernst <mernst@openjdk.org>
Reviewed-by: iris, prr
This commit is contained in:
Jaikiran Pai 2022-12-16 07:10:36 +00:00
parent e41686b405
commit fa322e40b6
16 changed files with 19 additions and 19 deletions

View File

@ -278,7 +278,7 @@ import javax.swing.event.UndoableEditListener;
* <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>.

View File

@ -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

View File

@ -121,7 +121,7 @@ public class ManualHTMLDataFlavorTest extends Applet {
"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",

View File

@ -34,7 +34,7 @@ import javax.print.*;
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",

View File

@ -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 ."

View File

@ -99,7 +99,7 @@ public class ServiceDlgPageRangeTest {
} 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) {

View File

@ -55,7 +55,7 @@ public class SequencerState {
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) {

View File

@ -51,7 +51,7 @@ public class Test4193384 {
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]))) {

View File

@ -52,7 +52,7 @@ import com.sun.swingset3.demos.editorpane.EditorPaneDemo;
/*
* @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

View File

@ -39,7 +39,7 @@ import org.testng.annotations.Listeners;
* @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

View File

@ -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

View File

@ -286,7 +286,7 @@ public class WindowWaiter extends Waiter<Window, Void> implements Timeoutable {
}
/**
* 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
@ -300,7 +300,7 @@ public class WindowWaiter extends Waiter<Window, Void> implements Timeoutable {
}
/**
* 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

View File

@ -252,7 +252,7 @@ public class ComponentOperator extends Operator
/**
* 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.
*

View File

@ -66,7 +66,7 @@ import org.netbeans.jemmy.util.EmptyVisualizer;
* <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>

View File

@ -366,7 +366,7 @@ public abstract class Operator
}
/**
* Returns component visualizer. Visualizer is used from from
* Returns component visualizer. Visualizer is used from
* makeComponentVisible() method.
*
* @return a visualizer assigned to this operator.
@ -378,7 +378,7 @@ public abstract class Operator
}
/**
* 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.
@ -1080,7 +1080,7 @@ public abstract class Operator
}
/**
* 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 {

View File

@ -75,7 +75,7 @@ public class RSLAPITest {
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;
}