Kaydet (Commit) f1f2e282 authored tarafından Andrea Gelmini's avatar Andrea Gelmini Kaydeden (comit) Julien Nabet

Fix typos (including sequenze->sequence)

Change-Id: Icfd6c5cbc405bad51a0d7f10cdb55c70a1fe5b00
Reviewed-on: https://gerrit.libreoffice.org/73078Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
üst 55e89e8f
......@@ -232,7 +232,7 @@ public class FinalizedMandatoryTest
* print all properties with its values to <CODE>logger</CODE>. For debug purposes.
* @see stats.SimpleLogWriter
* @see com.sun.star.beans.PropertyValue
* @param props Sequenze of PropertyValue
* @param props Sequence of PropertyValue
*/
protected void printPropertyValues(PropertyValue[] props)
{
......@@ -249,7 +249,7 @@ public class FinalizedMandatoryTest
}
/**
* returns the value of the specified (<CODE>pName</CODE>) property from a sequenze of <CODE>PropertyValue</CODE>
* returns the value of the specified (<CODE>pName</CODE>) property from a sequence of <CODE>PropertyValue</CODE>
* @param props a sequence of <CODE>PropertyValue</CODE>
* @param pName the name of the property the value should be returned
* @return the value of the property
......@@ -265,8 +265,8 @@ public class FinalizedMandatoryTest
}
/**
* set a value of the specified (<CODE>pName</CODE>) property inside a sequenze of <CODE>PropertyValue</CODE>
* @param props sequenze of <CODE>PropertyValue</CODE>
* set a value of the specified (<CODE>pName</CODE>) property inside a sequence of <CODE>PropertyValue</CODE>
* @param props sequence of <CODE>PropertyValue</CODE>
* @param pName name of the property which should be changed
* @param pValue the value the property should be assigned
*/
......
......@@ -186,15 +186,15 @@ public class dbg {
/**
* Print the names and the values of a sequenze of <code>PropertyValue</code>
* Print the names and the values of a sequence of <code>PropertyValue</code>
* to a print writer.
* @param ps The property which should displayed
* @param out The print writer which is used as output.
* @see com.sun.star.beans.PropertyValue
*/
private static void printProperyValueSequenzePairs(PropertyValue[] ps, PrintWriter out){
private static void printPropertyValueSequencePairs(PropertyValue[] ps, PrintWriter out){
for( int i = 0; i < ps.length; i++){
printProperyValuePairs(ps[i], out);
printPropertyValuePairs(ps[i], out);
}
}
......@@ -206,7 +206,7 @@ public class dbg {
* @param out The print writer which is used as output.
* @see com.sun.star.beans.PropertyValue
*/
private static void printProperyValuePairs(PropertyValue ps, PrintWriter out){
private static void printPropertyValuePairs(PropertyValue ps, PrintWriter out){
if (ps.Value instanceof String[] ){
String[] values = (String[]) ps.Value;
......@@ -227,13 +227,13 @@ public class dbg {
} else if (ps.Value instanceof PropertyValue){
out.println("--------");
out.println(" Name: '" + ps.Name + "' contains PropertyValue:");
printProperyValuePairs((PropertyValue)ps.Value, out);
printPropertyValuePairs((PropertyValue)ps.Value, out);
out.println("--------");
} else if (ps.Value instanceof PropertyValue[]){
out.println("--------");
out.println(" Name: '" + ps.Name + "' contains PropertyValue[]:");
printProperyValueSequenzePairs((PropertyValue[])ps.Value, out);
printPropertyValueSequencePairs((PropertyValue[])ps.Value, out);
out.println("--------");
} else {
......
......@@ -70,8 +70,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/**
* This tests removes the object relations <code>TABCONTROL1</code> and
* <code>TABCONTROL1</code>.
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of
* Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p>
*
* The following method tests are to be completed successfully before :
......@@ -119,8 +119,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/**
* Test calls the method with object relation 'TABCONTROL1' as a parameter.<p>
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of
* Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p>
*/
public void _addTabController() {
......@@ -139,8 +139,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/**
* Test calls the method with object relation 'TABCONTROL2' as a parameter.<p>
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of
* Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p>
*
* The following method tests are to be completed successfully before :
......
......@@ -64,7 +64,7 @@ public class _XPropertyAccess extends MultiMethodTest {
}
/**
* Test calls the method and checks if the returned sequenze contanis a propterty which is named
* Test calls the method and checks if the returned sequence contains a property which is named
* in the object relation <code>XPropertyAccess.propertyToChange</code>.
*/
public void _getPropertyValues() {
......
......@@ -66,7 +66,7 @@ public class _XPropertyContainer extends MultiMethodTest {
/**
* Test calls the method and checks if the returned sequence contanis a propterty which is named
* Test calls the method and checks if the returned sequence contains a property which is named
* in the object relation <code>XPropertyAccess.propertyNotRemovable</code>.
*/
public void _addProperty() {
......@@ -214,7 +214,7 @@ public class _XPropertyContainer extends MultiMethodTest {
}
/**
* Test calls the method and checks if the returned sequence contanis a propterty which is named
* Test calls the method and checks if the returned sequence contains a property which is named
* in the object relation <code>XPropertyAccess.propertyNotRemovable</code>.
*/
public void _removeProperty() {
......
......@@ -105,12 +105,12 @@ public class _XModuleManager extends MultiMethodTest {
*/
public void _identify() {
boolean ok = true;
log.println("testing frame sequenze...");
ok &= testSequenze(xFrameSeq);
log.println("testing controller sequenze...");
ok &= testSequenze(xControllerSeq);
log.println("testing model sequenze...");
ok &= testSequenze(xModelSeq);
log.println("testing frame sequence...");
ok &= testSequence(xFrameSeq);
log.println("testing controller sequence...");
ok &= testSequence(xControllerSeq);
log.println("testing model sequence...");
ok &= testSequence(xModelSeq);
tRes.tested("identify()", ok);
log.println("testing invalid objects...");
......@@ -123,26 +123,26 @@ public class _XModuleManager extends MultiMethodTest {
}
}
private boolean testSequenze(PropertyValue[] sequenze){
private boolean testSequence(PropertyValue[] sequence){
boolean ok = true;
for (int i = 0 ; i < sequenze.length; i++){
for (int i = 0 ; i < sequence.length; i++){
try{
log.println("testing '" + sequenze[i].Name + "'");
if (!oObj.identify(sequenze[i].Value).equals(
sequenze[i].Name)) {
log.println("testing '" + sequence[i].Name + "'");
if (!oObj.identify(sequence[i].Value).equals(
sequence[i].Name)) {
log.println("failure: returned value: '" +
oObj.identify(sequenze[i].Value) +
"' ,expected value: '" + sequenze[i].Name + "'");
oObj.identify(sequence[i].Value) +
"' ,expected value: '" + sequence[i].Name + "'");
ok = false;
}
} catch (IllegalArgumentException e){
log.println("Could not get value of sequenze '" +
sequenze[i].Name + "'");
log.println("Could not get value of sequence '" +
sequence[i].Name + "'");
return false;
} catch (UnknownModuleException e){
log.println("Could not indetify value of sequenze '" +
sequenze[i].Name + "'");
log.println("Could not indetify value of sequence '" +
sequence[i].Name + "'");
return false;
}
}
......
......@@ -134,7 +134,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest {
/**
* Object relation <code>xComposer</code> set a complex filter with method
. <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a
* sequenze of <code>PropertyValue</code> which was set with method
* sequence of <code>PropertyValue</code> which was set with method
* <code>setStructuredFilter</code> from <xComposer>.
* Then test has ok status if <getFilter> returns the complex filter.
* <p>
......
......@@ -139,7 +139,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
/**
* Object relation <code>xQueryAna</code> set a complex filter with method
. <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a
* sequenze of <code>PropertyValue</code> which was set with method
* sequence of <code>PropertyValue</code> which was set with method
* <code>setStructuredFilter</code> from <code>xQueryAna</code>.
* Then test has ok status if <code>getFilter</code> returns the complex filter.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment