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 ...@@ -232,7 +232,7 @@ public class FinalizedMandatoryTest
* print all properties with its values to <CODE>logger</CODE>. For debug purposes. * print all properties with its values to <CODE>logger</CODE>. For debug purposes.
* @see stats.SimpleLogWriter * @see stats.SimpleLogWriter
* @see com.sun.star.beans.PropertyValue * @see com.sun.star.beans.PropertyValue
* @param props Sequenze of PropertyValue * @param props Sequence of PropertyValue
*/ */
protected void printPropertyValues(PropertyValue[] props) protected void printPropertyValues(PropertyValue[] props)
{ {
...@@ -249,7 +249,7 @@ public class FinalizedMandatoryTest ...@@ -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 props a sequence of <CODE>PropertyValue</CODE>
* @param pName the name of the property the value should be returned * @param pName the name of the property the value should be returned
* @return the value of the property * @return the value of the property
...@@ -265,8 +265,8 @@ public class FinalizedMandatoryTest ...@@ -265,8 +265,8 @@ public class FinalizedMandatoryTest
} }
/** /**
* set a value of the specified (<CODE>pName</CODE>) property inside a sequenze of <CODE>PropertyValue</CODE> * set a value of the specified (<CODE>pName</CODE>) property inside a sequence of <CODE>PropertyValue</CODE>
* @param props sequenze of <CODE>PropertyValue</CODE> * @param props sequence of <CODE>PropertyValue</CODE>
* @param pName name of the property which should be changed * @param pName name of the property which should be changed
* @param pValue the value the property should be assigned * @param pValue the value the property should be assigned
*/ */
......
...@@ -186,15 +186,15 @@ public class dbg { ...@@ -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. * to a print writer.
* @param ps The property which should displayed * @param ps The property which should displayed
* @param out The print writer which is used as output. * @param out The print writer which is used as output.
* @see com.sun.star.beans.PropertyValue * @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++){ for( int i = 0; i < ps.length; i++){
printProperyValuePairs(ps[i], out); printPropertyValuePairs(ps[i], out);
} }
} }
...@@ -206,7 +206,7 @@ public class dbg { ...@@ -206,7 +206,7 @@ public class dbg {
* @param out The print writer which is used as output. * @param out The print writer which is used as output.
* @see com.sun.star.beans.PropertyValue * @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[] ){ if (ps.Value instanceof String[] ){
String[] values = (String[]) ps.Value; String[] values = (String[]) ps.Value;
...@@ -227,13 +227,13 @@ public class dbg { ...@@ -227,13 +227,13 @@ public class dbg {
} else if (ps.Value instanceof PropertyValue){ } else if (ps.Value instanceof PropertyValue){
out.println("--------"); out.println("--------");
out.println(" Name: '" + ps.Name + "' contains PropertyValue:"); out.println(" Name: '" + ps.Name + "' contains PropertyValue:");
printProperyValuePairs((PropertyValue)ps.Value, out); printPropertyValuePairs((PropertyValue)ps.Value, out);
out.println("--------"); out.println("--------");
} else if (ps.Value instanceof PropertyValue[]){ } else if (ps.Value instanceof PropertyValue[]){
out.println("--------"); out.println("--------");
out.println(" Name: '" + ps.Name + "' contains PropertyValue[]:"); out.println(" Name: '" + ps.Name + "' contains PropertyValue[]:");
printProperyValueSequenzePairs((PropertyValue[])ps.Value, out); printPropertyValueSequencePairs((PropertyValue[])ps.Value, out);
out.println("--------"); out.println("--------");
} else { } else {
......
...@@ -70,8 +70,8 @@ public class _XUnoControlContainer extends MultiMethodTest { ...@@ -70,8 +70,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/** /**
* This tests removes the object relations <code>TABCONTROL1</code> and * This tests removes the object relations <code>TABCONTROL1</code> and
* <code>TABCONTROL1</code>. * <code>TABCONTROL1</code>.
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> * Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of * get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p> * <code>XTabController[]</code> get after calling method.<p>
* *
* The following method tests are to be completed successfully before : * The following method tests are to be completed successfully before :
...@@ -119,8 +119,8 @@ public class _XUnoControlContainer extends MultiMethodTest { ...@@ -119,8 +119,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/** /**
* Test calls the method with object relation 'TABCONTROL1' as a parameter.<p> * Test calls the method with object relation 'TABCONTROL1' as a parameter.<p>
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> * Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of * get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p> * <code>XTabController[]</code> get after calling method.<p>
*/ */
public void _addTabController() { public void _addTabController() {
...@@ -139,8 +139,8 @@ public class _XUnoControlContainer extends MultiMethodTest { ...@@ -139,8 +139,8 @@ public class _XUnoControlContainer extends MultiMethodTest {
/** /**
* Test calls the method with object relation 'TABCONTROL2' as a parameter.<p> * Test calls the method with object relation 'TABCONTROL2' as a parameter.<p>
* Has <b> OK </b> status if the sequenze of <code>XTabController[]</code> * Has <b> OK </b> status if the sequence of <code>XTabController[]</code>
* get before calling method is smaller then sequenze of * get before calling method is smaller then sequence of
* <code>XTabController[]</code> get after calling method.<p> * <code>XTabController[]</code> get after calling method.<p>
* *
* The following method tests are to be completed successfully before : * The following method tests are to be completed successfully before :
......
...@@ -64,7 +64,7 @@ public class _XPropertyAccess extends MultiMethodTest { ...@@ -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>. * in the object relation <code>XPropertyAccess.propertyToChange</code>.
*/ */
public void _getPropertyValues() { public void _getPropertyValues() {
......
...@@ -66,7 +66,7 @@ public class _XPropertyContainer extends MultiMethodTest { ...@@ -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>. * in the object relation <code>XPropertyAccess.propertyNotRemovable</code>.
*/ */
public void _addProperty() { public void _addProperty() {
...@@ -214,7 +214,7 @@ public class _XPropertyContainer extends MultiMethodTest { ...@@ -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>. * in the object relation <code>XPropertyAccess.propertyNotRemovable</code>.
*/ */
public void _removeProperty() { public void _removeProperty() {
......
...@@ -105,12 +105,12 @@ public class _XModuleManager extends MultiMethodTest { ...@@ -105,12 +105,12 @@ public class _XModuleManager extends MultiMethodTest {
*/ */
public void _identify() { public void _identify() {
boolean ok = true; boolean ok = true;
log.println("testing frame sequenze..."); log.println("testing frame sequence...");
ok &= testSequenze(xFrameSeq); ok &= testSequence(xFrameSeq);
log.println("testing controller sequenze..."); log.println("testing controller sequence...");
ok &= testSequenze(xControllerSeq); ok &= testSequence(xControllerSeq);
log.println("testing model sequenze..."); log.println("testing model sequence...");
ok &= testSequenze(xModelSeq); ok &= testSequence(xModelSeq);
tRes.tested("identify()", ok); tRes.tested("identify()", ok);
log.println("testing invalid objects..."); log.println("testing invalid objects...");
...@@ -123,26 +123,26 @@ public class _XModuleManager extends MultiMethodTest { ...@@ -123,26 +123,26 @@ public class _XModuleManager extends MultiMethodTest {
} }
} }
private boolean testSequenze(PropertyValue[] sequenze){ private boolean testSequence(PropertyValue[] sequence){
boolean ok = true; boolean ok = true;
for (int i = 0 ; i < sequenze.length; i++){ for (int i = 0 ; i < sequence.length; i++){
try{ try{
log.println("testing '" + sequenze[i].Name + "'"); log.println("testing '" + sequence[i].Name + "'");
if (!oObj.identify(sequenze[i].Value).equals( if (!oObj.identify(sequence[i].Value).equals(
sequenze[i].Name)) { sequence[i].Name)) {
log.println("failure: returned value: '" + log.println("failure: returned value: '" +
oObj.identify(sequenze[i].Value) + oObj.identify(sequence[i].Value) +
"' ,expected value: '" + sequenze[i].Name + "'"); "' ,expected value: '" + sequence[i].Name + "'");
ok = false; ok = false;
} }
} catch (IllegalArgumentException e){ } catch (IllegalArgumentException e){
log.println("Could not get value of sequenze '" + log.println("Could not get value of sequence '" +
sequenze[i].Name + "'"); sequence[i].Name + "'");
return false; return false;
} catch (UnknownModuleException e){ } catch (UnknownModuleException e){
log.println("Could not indetify value of sequenze '" + log.println("Could not indetify value of sequence '" +
sequenze[i].Name + "'"); sequence[i].Name + "'");
return false; return false;
} }
} }
......
...@@ -134,7 +134,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest { ...@@ -134,7 +134,7 @@ public class _XSingleSelectQueryAnalyzer extends MultiMethodTest {
/** /**
* Object relation <code>xComposer</code> set a complex filter with method * Object relation <code>xComposer</code> set a complex filter with method
. <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a . <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>. * <code>setStructuredFilter</code> from <xComposer>.
* Then test has ok status if <getFilter> returns the complex filter. * Then test has ok status if <getFilter> returns the complex filter.
* <p> * <p>
......
...@@ -139,7 +139,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest { ...@@ -139,7 +139,7 @@ public class _XSingleSelectQueryComposer extends MultiMethodTest {
/** /**
* Object relation <code>xQueryAna</code> set a complex filter with method * Object relation <code>xQueryAna</code> set a complex filter with method
. <code>setFilter</code>. Then <code>getStructuredFilter</code> returns a . <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>. * <code>setStructuredFilter</code> from <code>xQueryAna</code>.
* Then test has ok status if <code>getFilter</code> returns the complex filter. * 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