diff options
Diffstat (limited to 'testautomation')
10 files changed, 138 insertions, 138 deletions
diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml index 4428a95f551b..59791c0509d2 100755 --- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml +++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/build.xml @@ -7,9 +7,9 @@ <import file="nbproject/build-uno-impl.xml"/> <!-- - There exist several targets which are by default empty and which can be - used for execution of your tasks. These targets are usually executed - before and after some main targets. They are: + There exist several targets which are by default empty and which can be + used for execution of your tasks. These targets are usually executed + before and after some main targets. They are: -pre-init: called before initialization of project properties -post-init: called after initialization of project properties @@ -37,12 +37,12 @@ </obfuscate> </target> - For list of available properties check the imported - nbproject/build-impl.xml file. + For list of available properties check the imported + nbproject/build-impl.xml file. Another way to customize the build is by overriding existing main targets. - The targets of interest are: + The targets of interest are: -init-macrodef-javac: defines macro for javac compilation -init-macrodef-junit: defines macro for junit execution @@ -50,7 +50,7 @@ -init-macrodef-java: defines macro for class execution -do-jar-with-manifest: JAR building (if you are using a manifest) -do-jar-without-manifest: JAR building (if you are not using a manifest) - run: execution of project + run: execution of project -javadoc-build: Javadoc generation test-report: JUnit report generation @@ -62,10 +62,10 @@ </exec> </target> - Notice that the overridden target depends on the jar target and not only on - the compile target as the regular run target does. Again, for a list of available + Notice that the overridden target depends on the jar target and not only on + the compile target as the regular run target does. Again, for a list of available properties which you can use, check the target you are overriding in the - nbproject/build-impl.xml file. + nbproject/build-impl.xml file. --> diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml index f01ad79df06e..5a2c591b6ad1 100755 --- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml +++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-impl.xml @@ -28,9 +28,9 @@ is divided into following sections: </condition> </fail> <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> - <!-- + <!-- ====================== - INITIALIZATION SECTION + INITIALIZATION SECTION ====================== --> <target name="-pre-init"> diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml index 25b3f25f86c7..3e75cd5f5f47 100755 --- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml +++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/nbproject/build-uno-impl.xml @@ -13,18 +13,18 @@ <target name="-uno-project-init" depends="-do-init"> <property file="nbproject/project-uno.properties"/> <property name="build.uno.version" value="2.0.6"/> - + <!-- set variablers from SDK and Office --> <echo message="setting up UNO environment ..."/> <property name="office.unopkg" value="${office.program.dir}${file.separator}unopkg"/> <property name="office.soffice" value="${office.program.dir}${file.separator}soffice"/> - - <property name="sdk.idl.dir" location="${oo.sdk.dir}${file.separator}idl"/> + + <property name="sdk.idl.dir" location="${oo.sdk.dir}${file.separator}idl"/> <property name="sdk.idlc" value="${sdk.bin.dir}${file.separator}idlc"/> <property name="sdk.regmerge" value="${ure.bin.dir}${file.separator}regmerge"/> <property name="sdk.javamaker" value="${sdk.bin.dir}${file.separator}javamaker"/> - <dirname property="project.dir" file="build.xml"/> + <dirname property="project.dir" file="build.xml"/> <property name="uno.package.name" value="${project.dir}${file.separator}${dist.dir}${file.separator}${project.name}.oxt"/> <property name="src.dir.absolute" value="${project.dir}${file.separator}${src.dir}"/> @@ -34,10 +34,10 @@ <property name="idl.out.rdb" value="${idl.out}/rdb"/> <property name="idl.rdb.name" value="types.rdb"/> <property name="idl.rdb.fullpath" value="${idl.out.rdb}/${idl.rdb.name}"/> - + <property name="images.base.dir" value="${build.dir}/img"/> <property name="build.registry.dir" value="${build.dir}/cpreg"/> - + <mkdir dir="${idl.out}"/> <mkdir dir="${idl.out.urd}"/> <mkdir dir="${idl.out.rdb}"/> @@ -53,50 +53,50 @@ <!-- handle images --> <target name="-uno-images-condition" description="check images" depends="-uno-project-init"> <available file="${images.dir}" type="dir" property="images.required"/> - </target> - + </target> + <target name="images" description="copy images" depends="-uno-images-condition" if="images.required"> <mkdir dir="${images.base.dir}/${images.dir}"/> <copy todir="${images.base.dir}/${images.dir}"> <fileset dir="${images.dir}"/> </copy> - </target> - + </target> + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <!-- handle xcu/xcs files with package names --> - + <target name="-uno-registryfiles-condition" description="check xcu and xcs files" depends="-uno-project-init"> <available file="${registry.dir}" type="dir" property="xcuxcs.required"/> - </target> - + </target> + <target name="registry" description="copy registry files" depends="-uno-registryfiles-condition" if="xcuxcs.required"> <mkdir dir="${build.registry.dir}/${registry.dir}"/> <copy todir="${build.registry.dir}/${registry.dir}"> <fileset dir="${registry.dir}" includes="**/*.xcu,**/*.xcs"/> </copy> - </target> - + </target> + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - + <target name="-uno-idl-idlc-condition" description="check idlc dependencies" depends="-uno-project-init"> <uptodate property="idlc.notRequired" targetfile ="${build.dir}/idlc.compile"> <srcfiles dir= "${src.dir}" includes="**/*.idl"/> </uptodate> - </target> - + </target> + <!-- compile UNO idl files: execution --> <target name="-uno-idl-idlc" description="Compile the IDL Conditionally" depends="-uno-idl-idlc-condition" unless="idlc.notRequired"> <apply executable="${sdk.idlc}" dir="${office.program.dir}" failonerror="true"> <env key="PATH" path="${office.tool.path}"/> - <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/> + <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/> <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/> <arg value="-C"/> <arg value="-O"/> <arg value="${idl.out.urd}"/> <arg value="-I"/> <arg value="${src.dir.absolute}"/> - <arg value="-I"/> - <arg value="${sdk.idl.dir}"/> + <arg value="-I"/> + <arg value="${sdk.idl.dir}"/> <fileset dir="${src.dir}" includes="**/*.idl" casesensitive="yes" id="idl.list.id"/> </apply> <!-- list for copying idl files in own jar --> @@ -113,11 +113,11 @@ <!-- merge urd files: execution --> <target name="-uno-idl-regmerge" description="Merge urd Files Conditionally" depends="-uno-idl-idlc,-uno-idl-idlc-condition" unless="idlc.notRequired"> <!-- to only extract the new files, delete the old rdb --> - <delete file="${idl.rdb.fullpath}"/> + <delete file="${idl.rdb.fullpath}"/> <apply executable="${sdk.regmerge}" dir="${office.program.dir}" failonerror="true"> <env key="PATH" path="${office.tool.path}"/> <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/> - <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/> + <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/> <arg file="${idl.rdb.fullpath}"/> <arg value="/UCR"/> <fileset dir="${idl.out.urd}" includes="**/*.urd" casesensitive="yes"/> @@ -130,14 +130,14 @@ <target name="-uno-idl-javamaker-condition" description="check if rdb was created" depends="-uno-idl-regmerge,-uno-idl-idlc-condition"> <available file="${idl.rdb.name}" filepath="${idl.out.rdb}" property="javamaker.Required"/> </target> - + <!-- generate Java class files from type library: execution --> <target name="-uno-idl-javamaker" depends="-uno-idl-regmerge,-uno-idl-idlc-condition,-uno-idl-javamaker-condition" if="javamaker.Required" unless="idlc.notRequired"> <echo message="generating java class files from rdb..."/> <exec executable="${sdk.javamaker}" dir="${office.program.dir}" failonerror="true"> - <env key="PATH" path="${office.tool.path}"/> + <env key="PATH" path="${office.tool.path}"/> <env key="LD_LIBRARY_PATH" path="${office.tool.path}"/> - <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/> + <env key="DYLD_LIBRARY_PATH" path="${office.tool.path}"/> <arg value="-BUCR"/> <arg value="-O"/> <arg value="${idl.classes.dir}"/> @@ -153,11 +153,11 @@ <touch file="${build.dir}/idlc.compile"/> <echo message="build UNO idl files finished"/> </target> - + <!-- the main target, called in recursive builds --> <target name="uno-idl-compile" description="Compiles UNO idl files" depends="-uno-idl-result"/> - <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> <target name="jar" depends="-uno-project-init,uno-idl-compile,-jar-idl-types,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-openoffice-manifest,-post-jar"> <jar basedir="${build.classes.dir}" compress="true" filesonly="true" manifest="${build.dir}/MANIFEST.MF" jarfile="${dist.jar}" excludes="**/*.xml,**/*.txt,${idl.file.list},${build.classes.excludes}"/> @@ -173,7 +173,7 @@ </target> <target name="-do-openoffice-manifest" depends="-copy-user-manifest,-external-jars,-do-registration,-do-class-path"/> - + <!-- macro for checking manifest entries from a user manifest --> <macrodef name="check-manifest-entry"> <attribute name="entry.name"/> @@ -182,7 +182,7 @@ <condition property="@{condition.property.name}"> <and> <!-- if file does not exist, "isfileselected" is not executed --> - <!-- necessary construct because available is not allowed here + <!-- necessary construct because available is not allowed here but should be according to documentation --> <istrue value="${build.manifest.exists}"/> <!-- produces an error if file is not there --> @@ -193,28 +193,28 @@ </condition> </sequential> </macrodef> - + <!-- enter the class path with external jars, if external jars exit and the user did not enter his own --> <target name="-do-class-path" depends="-external-jars,-check-class-path" unless="class.path.exists"> <manifest file="${build.dir}/MANIFEST.MF" mode="update"> - <attribute name="Class-Path" value="${external.jars}"/> - </manifest> + <attribute name="Class-Path" value="${external.jars}"/> + </manifest> </target> <target name="-check-class-path"> <check-manifest-entry condition.property.name="class.path.exists" entry.name="Class-Path"/> </target> - + <!-- enter idl type definitions if it exists and if the user did not overwrite it --> <target name="-do-uno-types" depends="-do-empty-unopath,-do-idl-unopath"/> <target name="-do-idl-unopath" depends="-check-uno-types" if="own.idl.files" unless="uno.path.exists"> <manifest file="${build.dir}/MANIFEST.MF" mode="update"> - <attribute name="UNO-Type-Path" value="${idl_types.jar}"/> - </manifest> + <attribute name="UNO-Type-Path" value="${idl_types.jar}"/> + </manifest> </target> <target name="-do-empty-unopath" depends="-check-uno-types" if="no.idl.files" unless="uno.path.exists"> <manifest file="${build.dir}/MANIFEST.MF" mode="update"> - <attribute name="UNO-Type-Path" value=""/> - </manifest> + <attribute name="UNO-Type-Path" value=""/> + </manifest> </target> <target name="-check-uno-types"> <property file="${idl.out}/idl_list.properties"/> @@ -228,12 +228,12 @@ </not> </condition> </target> - + <!-- enter the registration classes unless the user did not enter his own. Do nothing when the project is old --> - <target name="-do-registration" depends="-do-central-registration,-check-registration-classes-name" + <target name="-do-registration" depends="-do-central-registration,-check-registration-classes-name" if="new.project.registration" unless="do.no.registration"> <manifest file="${build.dir}/MANIFEST.MF" mode="update"> - <section name="${slash.registration.class}"> + <section name="${slash.registration.class}"> <attribute name="RegistrationClasses" value="${registration.classname}"/> </section> </manifest> @@ -247,7 +247,7 @@ </or> </condition> </target> - + <!-- enter the registration class name unless the user did not enter his own. Do nothing when the project is old --> <target name="-do-central-registration" depends="-check-registration-class-name,-do-old-project-registration" if="new.project.registration" unless="registration.class.exists"> <property name="regclass.properties" value="${build.dir}/regclass.properties"/> @@ -264,7 +264,7 @@ <target name="-check-registration-class-name"> <check-manifest-entry condition.property.name="registration.class.exists" entry.name="RegistrationClassName"/> </target> - + <!-- Do the registration for older projects without a central registration class --> <target name="-do-old-project-registration" depends="-check-for-old-project" if="old.project.registration" unless="registration.class.exists"> <manifest file="${build.dir}/MANIFEST.MF" mode="update"> @@ -294,7 +294,7 @@ <isfalse value="${old.project.registration}"/> </condition> </target> - + <!-- copy the user manifest if it exists --> <target name="-copy-user-manifest" depends="-check-user-manifest" if="user.manifest.exists"> <copy file="manifest.mf" tofile="${build.dir}/MANIFEST.MF" overwrite="true"/> @@ -303,10 +303,10 @@ <target name="-check-user-manifest"> <available file="manifest.mf" property="user.manifest.exists"/> </target> - + <!-- handle the class path for external jar files unless there is a user overwrite --> <target name="-external-jars" depends="-rm-external-jars,-add-external-jars"/> - + <target name="-add-external-jars" depends="-external-jars-condition" if="do.externalJars"> <!-- get property external.jars for classpath from props file --> <property file="${dist.dir}/${external.jar.dir}/jars.properties"/> @@ -316,17 +316,17 @@ <!-- empty property, if no jars --> <property name="external.jars" value=""/> </target> - + <target name="-external-jars-condition"> <available file="${dist.dir}/${external.jar.dir}" type="dir" property="do.externalJars"/> </target> - + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - + <target name="-delete-uno-package"> <delete failonerror="false" file="${uno.package.name}"/> </target> - + <target name="-pre-uno-package"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> @@ -335,7 +335,7 @@ <target name="-license-exists"> <available file="${project.dir}/${licenses.dir}" type="dir" property="do.license"/> </target> - + <!-- test for licenses dir is necessary because zipfileset fails if dir not there --> <target name="-uno-package-with-license" depends="-license-exists" if="do.license"> <zip update="true" destfile="${uno.package.name}"> @@ -346,7 +346,7 @@ <target name="-description-exists"> <available file="${project.dir}/${description.dir}" type="dir" property="do.description"/> </target> - + <!-- test for description dir is necessary because zipfileset fails if dir not there --> <target name="-uno-package-with-description" depends="-description-exists" if="do.description"> <zip update="true" destfile="${uno.package.name}"> @@ -357,25 +357,25 @@ <target name="-help-exists"> <available file="${project.dir}/${help.dir}" type="dir" property="do.help"/> </target> - + <!-- test for help dir is necessary because zipfileset fails if dir not there --> <target name="-uno-package-with-help" depends="-help-exists" if="do.help"> <zip update="true" destfile="${uno.package.name}"> <zipfileset dir="${help.dir}" includes="${help.content.extensions}" prefix="${help.dir}"/> </zip> - </target> - + </target> + <target name="-dialogs-exists"> <available file="${project.dir}/${dialogs.dir}" type="dir" property="do.dialogs"/> </target> - + <!-- test for dialogs dir is necessary because zipfileset fails if dir not there --> <target name="-uno-package-with-dialogs" depends="-dialogs-exists" if="do.dialogs"> <zip update="true" destfile="${uno.package.name}"> <zipfileset dir="${dialogs.dir}" includes="${dialog.content.extensions}" prefix="dialogs"/> </zip> - </target> - + </target> + <target name="-do-uno-package" description="Creates UNO extension pacakge" depends="-uno-package-with-license,-uno-package-with-help,-uno-package-with-dialogs,-uno-package-with-description"> <echo message="creating UNO extension package ..."/> <zip update="true" destfile="${uno.package.name}"> @@ -388,7 +388,7 @@ <zipfileset dir="${src.dir}" includes="uno-extension-manifest.xml" fullpath="META-INF/manifest.xml"/> </zip> </target> - + <target name="-post-uno-package"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> @@ -396,19 +396,19 @@ <target name="uno-package" description="Creates UNO extension pacakge" depends="jar,images,registry,-delete-uno-package,-pre-uno-package,-do-uno-package,-post-uno-package"/> - <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> + <!-- <target name="uno-deploy" description="Deploys UNO extension package" depends="uno-package"> <echo message="deploying UNO extension package ..."/> <echo message="${office.unopkg} gui -f ${uno.package.name}"/> <echo message="${office.soffice} ${uno.package.name}"/> <exec executable="${office.soffice}" dir="${office.program.dir}" failonerror="true"> <arg file="${uno.package.name}"/> - </exec> + </exec> </target> --> - - <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - + + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> + <target name="uno-run" description="Run OpenOffice.org" depends="uno-package,-run-oo"/> <!-- subtargets for different office versions --> @@ -424,9 +424,9 @@ <arg value="${office.startup.options}"/> </exec> </target> - - <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> - + + <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> + <target name="uno-debug" description="Debugss UNO extension package in Target Office" depends="uno-package,-oo-debug"/> <target name="-oo-debug"> @@ -458,5 +458,5 @@ <env key="JAVA_TOOL_OPTIONS" value=""-Xdebug" "-Xrunjdwp:transport=dt_socket,address=${jpda.address}""/> </exec> </target> - + </project> diff --git a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java index 599850e00ef1..fe4ee300d29d 100755 --- a/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java +++ b/testautomation/extensions/optional/input/extension_sources/TaskPaneComponent/src/com/example/ToolPanelUIElement.java @@ -48,14 +48,14 @@ import java.util.logging.Logger; */ public class ToolPanelUIElement extends ComponentBase implements XUIElement { - + protected final XFrame m_docFrame; protected final XWindow m_parentWindow; private XWindow m_panelRootWindow = null; private Object m_toolPanel = null; XComponentContext context = null; - - + + protected ToolPanelUIElement( XComponentContext _context, final XFrame i_docFrame, final XWindow i_parentWindow ) { context = _context; @@ -102,7 +102,7 @@ public class ToolPanelUIElement extends ComponentBase implements XUIElement { return "TaskPaneComponentUI"; } - + // ComponentBase overridables protected void postDisposing() @@ -115,7 +115,7 @@ public class ToolPanelUIElement extends ComponentBase implements XUIElement XComponent panelWindowComp = UnoRuntime.queryInterface( XComponent.class, m_panelRootWindow ); panelWindowComp.dispose(); m_panelRootWindow = null; - + } m_toolPanel = null; } @@ -142,7 +142,7 @@ public class ToolPanelUIElement extends ComponentBase implements XUIElement UnoRuntime.queryInterface( XWindowPeer.class, m_parentWindow ), null ); - + } catch ( final Exception e ) { diff --git a/testautomation/global/input/java/Clock.java b/testautomation/global/input/java/Clock.java index d99baaf603a7..50348de629fa 100755 --- a/testautomation/global/input/java/Clock.java +++ b/testautomation/global/input/java/Clock.java @@ -1,21 +1,21 @@ /* * Copyright (c) 2004 Sun Microsystems, Inc. All Rights Reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * -Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. - * + * * -Redistribution in binary form must reproduct the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the distribution. - * + * * Neither the name of Sun Microsystems, Inc. or the names of contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. - * + * * This software is provided "AS IS," without a warranty of any kind. ALL * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE @@ -27,14 +27,14 @@ * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE, EVEN * IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - * + * * You acknowledge that Software is not designed, licensed or intended for * use in the design, construction, operation or maintenance of any nuclear * facility. */ /* - * @(#)Clock.java 1.13 03/12/19 + * @(#)Clock.java 1.13 03/12/19 */ import java.util.*; @@ -51,7 +51,7 @@ import java.text.*; public class Clock extends Applet implements Runnable { private volatile Thread timer; // The thread that displays clock private int lastxs, lastys, lastxm, - lastym, lastxh, lastyh; // Dimensions used to draw hands + lastym, lastxh, lastyh; // Dimensions used to draw hands private SimpleDateFormat formatter; // Formats the date displayed private String lastdate; // String to hold date displayed private Font clockFaceFont; // Font for number display on clock @@ -63,7 +63,7 @@ public class Clock extends Applet implements Runnable { public void init() { int x,y; lastxs = lastys = lastxm = lastym = lastxh = lastyh = 0; - formatter = new SimpleDateFormat ("EEE MMM dd hh:mm:ss yyyy", + formatter = new SimpleDateFormat ("EEE MMM dd hh:mm:ss yyyy", Locale.getDefault()); currentDate = new Date(); lastdate = formatter.format(currentDate); @@ -99,7 +99,7 @@ public class Clock extends Applet implements Runnable { String today; currentDate = new Date(); - + formatter.applyPattern("s"); try { s = Integer.parseInt(formatter.format(currentDate)); @@ -111,14 +111,14 @@ public class Clock extends Applet implements Runnable { m = Integer.parseInt(formatter.format(currentDate)); } catch (NumberFormatException n) { m = 10; - } + } formatter.applyPattern("h"); try { h = Integer.parseInt(formatter.format(currentDate)); } catch (NumberFormatException n) { h = 10; } - + // Set position of the ends of the hands xs = (int) (Math.cos(s * Math.PI / 30 - Math.PI / 2) * 45 + xcenter); ys = (int) (Math.sin(s * Math.PI / 30 - Math.PI / 2) * 45 + ycenter); @@ -128,7 +128,7 @@ public class Clock extends Applet implements Runnable { + xcenter); yh = (int) (Math.sin((h*30 + m / 2) * Math.PI / 180 - Math.PI / 2) * 30 + ycenter); - + // Get the date to print at the bottom formatter.applyPattern("EEE MMM dd HH:mm:ss yyyy"); today = formatter.format(currentDate); @@ -142,16 +142,16 @@ public class Clock extends Applet implements Runnable { } if (xm != lastxm || ym != lastym) { g.drawLine(xcenter, ycenter-1, lastxm, lastym); - g.drawLine(xcenter-1, ycenter, lastxm, lastym); + g.drawLine(xcenter-1, ycenter, lastxm, lastym); } if (xh != lastxh || yh != lastyh) { g.drawLine(xcenter, ycenter-1, lastxh, lastyh); - g.drawLine(xcenter-1, ycenter, lastxh, lastyh); + g.drawLine(xcenter-1, ycenter, lastxh, lastyh); } // Draw date and hands g.setColor(numberColor); - g.drawString(today, 5, 125); + g.drawString(today, 5, 125); g.drawLine(xcenter, ycenter, xs, ys); g.setColor(handColor); g.drawLine(xcenter, ycenter-1, xm, ym); @@ -171,20 +171,20 @@ public class Clock extends Applet implements Runnable { g.setColor(handColor); g.drawArc(xcenter-50, ycenter-50, 100, 100, 0, 360); g.setColor(numberColor); - g.drawString("9", xcenter-45, ycenter+3); + g.drawString("9", xcenter-45, ycenter+3); g.drawString("3", xcenter+40, ycenter+3); g.drawString("12", xcenter-5, ycenter-37); g.drawString("6", xcenter-3, ycenter+45); // Draw date and hands g.setColor(numberColor); - g.drawString(lastdate, 5, 125); + g.drawString(lastdate, 5, 125); g.drawLine(xcenter, ycenter, lastxs, lastys); g.setColor(handColor); g.drawLine(xcenter, ycenter-1, lastxm, lastym); g.drawLine(xcenter-1, ycenter, lastxm, lastym); g.drawLine(xcenter, ycenter-1, lastxh, lastyh); - g.drawLine(xcenter-1, ycenter, lastxh, lastyh); + g.drawLine(xcenter-1, ycenter, lastxh, lastyh); } public void start() { @@ -212,14 +212,14 @@ public class Clock extends Applet implements Runnable { + "Author: Rachel Gollub, 1995 \n" + "An analog clock."; } - + public String[][] getParameterInfo() { String[][] info = { - {"bgcolor", "hexadecimal RGB number", + {"bgcolor", "hexadecimal RGB number", "The background color. Default is the color of your browser."}, - {"fgcolor1", "hexadecimal RGB number", + {"fgcolor1", "hexadecimal RGB number", "The color of the hands and dial. Default is blue."}, - {"fgcolor2", "hexadecimal RGB number", + {"fgcolor2", "hexadecimal RGB number", "The color of the second hand and numbers. Default is dark gray."} }; return info; diff --git a/testautomation/tools/analyze/make_summary.pl b/testautomation/tools/analyze/make_summary.pl index f3509f72fbb8..328bfa10948f 100755 --- a/testautomation/tools/analyze/make_summary.pl +++ b/testautomation/tools/analyze/make_summary.pl @@ -3,7 +3,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite @@ -27,7 +27,7 @@ # #************************************************************************* # -# short description : +# short description : # This Perl sciprt summarizes the number of errors and warnings in # the set of *.res files of qatesttool. #************************************************************************* @@ -43,7 +43,7 @@ sub usage { $0 file... Description: - This Perl sciprt summarizes the number of errors and warnings + This Perl sciprt summarizes the number of errors and warnings reported in a set of the *.res files produced by qatesttool. Examples: diff --git a/testautomation/tools/analyze/translate_res_file.pl b/testautomation/tools/analyze/translate_res_file.pl index a69908cad1ec..f8a100cc534a 100755 --- a/testautomation/tools/analyze/translate_res_file.pl +++ b/testautomation/tools/analyze/translate_res_file.pl @@ -3,7 +3,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite @@ -27,8 +27,8 @@ # #************************************************************************* # -# short description : -# This Perl sciprt translates *.res files of qatesttool into human +# short description : +# This Perl sciprt translates *.res files of qatesttool into human # readable format #************************************************************************* @@ -49,7 +49,7 @@ sub usage { --with-color outputs colored translated messages using ANSI color sequence code Description: - This Perl sciprt translates *.res files produced by qatesttool + This Perl sciprt translates *.res files produced by qatesttool into human readable text file format. Examples: @@ -92,7 +92,7 @@ $BaseDir = undef; sub substitution { my ($file, $lineno, $line) = @_; - my ($id, $arg1, $arg2, $arg3) = + my ($id, $arg1, $arg2, $arg3) = ($line =~ m/\%ResId=([0-9]+)\% (?:\%Arg1=(.+?)\%)? (?:\%Arg2=(.+?)\%)? @@ -205,7 +205,7 @@ sub load_app_srs { $x = $1; $fallback = $text if ($x eq "en-US"); $text = $2 if ($x eq $lang); - } + } } close FH; } diff --git a/testautomation/tools/hid/hid.pl b/testautomation/tools/hid/hid.pl index 3a36b02cb31e..b512edaa44bd 100755 --- a/testautomation/tools/hid/hid.pl +++ b/testautomation/tools/hid/hid.pl @@ -1,6 +1,6 @@ #************************************************************************** # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite @@ -62,7 +62,7 @@ for (@ary) { @ary = @ary[ sort{ # sort @longnum[$a] <=> @longnum[$b] || - @longname[$a] cmp @longname[$b] + @longname[$a] cmp @longname[$b] }0..$#ary ]; @@ -82,7 +82,7 @@ for (@ary) { @ary = grep( !/^ *$/, @ary); -# to insert the constant entries at the beginning, read it and write it out +# to insert the constant entries at the beginning, read it and write it out open (CON,"<".@ARGV[2]) || die "Can't find constant entries-file: const.txt (third argument)"; @const=( <CON> ); close CON; diff --git a/testautomation/tools/run_tests/run_tests.sh b/testautomation/tools/run_tests/run_tests.sh index 0c4dc85bcc1f..e8aa4d700e1a 100755 --- a/testautomation/tools/run_tests/run_tests.sh +++ b/testautomation/tools/run_tests/run_tests.sh @@ -2,7 +2,7 @@ #************************************************************************* #* # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite @@ -28,7 +28,7 @@ # # Owner : andreschnabel@openoffice.org # -# short description : run several testscripts on unix +# short description : run several testscripts on unix # list of scripts to run is read from stdin # this script has been derived from former ooo_releasetests.sh # @@ -54,7 +54,7 @@ function GetValueFromSection () { $AWK -v sVarName="$1" -v sSectionName="$2" \ 'BEGIN { bInSection = 0} - { if ( index ($0 ,"[" sSectionName "]") > 0 ) + { if ( index ($0 ,"[" sSectionName "]") > 0 ) bInSection = 1 else if ( (bInSection == 1) && (substr ($0,1,1) == "[") ) bInSection = 0 @@ -62,9 +62,9 @@ function GetValueFromSection () sub(/\r$/,"") print substr ($0,index ($0 ,"=") + 1) } - }' < "$3" + }' < "$3" } - + #------------------------------------------------------------------------ #--- the main script starts here --- #------------------------------------------------------------------------ @@ -89,11 +89,11 @@ case `uname -s` in esac # if sLocation is not set manuall try to get the location form testtoolrc -if [ -z "$sLocation" ] +if [ -z "$sLocation" ] then # first read the profile sProfile=`GetValueFromSection CurrentProfile Misc "$testtoolrc"` - # then read the BaseDir for the profile + # then read the BaseDir for the profile sLocation=`GetValueFromSection BaseDir "$sProfile" "$testtoolrc"` sLocation="$sLocation/" fi @@ -147,10 +147,10 @@ while read x ; do echo "Running soffices' processes: " # kill office, if exists - `$KILLOFFICEALL` - + `$KILLOFFICEALL` + echo "****************************************************" - x=`echo "$x"|sed s/[[:blank:]]*$//` #cut all trailing blanks + x=`echo "$x"|sed s/[[:blank:]]*$//` #cut all trailing blanks sTest="$sLocation$x" if [ -f "$sTest" ]; then @@ -173,7 +173,7 @@ do fi ######### wait until Testtool has finished & closed - while [ `ps -A | grep -v "grep" | grep $testtoolpid | wc -l` -gt 0 ] ; + while [ `ps -A | grep -v "grep" | grep $testtoolpid | wc -l` -gt 0 ] ; do sleep 5 i=$((i+5)) @@ -189,7 +189,7 @@ do fi done -echo "Duration:" $((i/60)) "min" $((i%60)) "sec " +echo "Duration:" $((i/60)) "min" $((i%60)) "sec " echo "****************************************************" echo "************ FINISHED ************" diff --git a/testautomation/xml/optional/input/docbook/note.001.xml b/testautomation/xml/optional/input/docbook/note.001.xml index 214c5466b175..bd0f09b7e7f2 100755 --- a/testautomation/xml/optional/input/docbook/note.001.xml +++ b/testautomation/xml/optional/input/docbook/note.001.xml @@ -10,9 +10,9 @@ </author> </articleinfo> -<note> -<title>Who can do this</title> -<para>All operators</para> -</note> +<note> +<title>Who can do this</title> +<para>All operators</para> +</note> </article> |