update
git-svn-id: svn://10.0.0.236/trunk@242093 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
5
mozilla/java/plugins/test/README
Normal file
5
mozilla/java/plugins/test/README
Normal file
File diff suppressed because one or more lines are too long
@@ -1,114 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
|
||||
* Ed Burns >edburns@acm.org<
|
||||
|
||||
|
||||
-->
|
||||
|
||||
<project name="SimpleTestPluglet" default="main" basedir=".">
|
||||
|
||||
<property name="Name" value="pluglets"/>
|
||||
<property name="name" value="pluglets"/>
|
||||
<property name="version" value="20060619"/>
|
||||
|
||||
<!-- ************ Per user local properties ******************************* -->
|
||||
|
||||
<property file="${user.home}/build.properties"/> <!-- User local -->
|
||||
<property file="build.properties"/> <!-- Component local -->
|
||||
<property file="../../build.properties"/> <!-- java-supplement local -->
|
||||
<property environment="myenv" />
|
||||
|
||||
<!-- ************ Compiler Defaults *************************************** -->
|
||||
|
||||
<!-- Should Java compilations set the 'debug' compiler option? -->
|
||||
<property name="compile.debug" value="true"/>
|
||||
|
||||
<!-- Should Java compilations set the 'deprecation' compiler option? -->
|
||||
<property name="compile.deprecation" value="false"/>
|
||||
|
||||
<!-- Should Java compilations set the 'optimize' compiler option? -->
|
||||
<property name="compile.optimize" value="false"/>
|
||||
|
||||
<!-- ************ Where are we building into? ***************************** -->
|
||||
|
||||
<!-- The base directory for component sources -->
|
||||
<property name="source.home" value="${basedir}/classes"/>
|
||||
|
||||
<!-- Construct compile classpath -->
|
||||
<path id="compile.classpath">
|
||||
<pathelement location="${build.home}"/>
|
||||
</path>
|
||||
|
||||
<target name="prepare">
|
||||
|
||||
<condition property="PATH_SEP" value=";">
|
||||
<and>
|
||||
<os family="windows" />
|
||||
</and>
|
||||
</condition>
|
||||
|
||||
<condition property="PATH_SEP" value=":">
|
||||
<and>
|
||||
<os family="unix" />
|
||||
</and>
|
||||
</condition>
|
||||
|
||||
</target>
|
||||
|
||||
<target name="main"
|
||||
depends="prepare,compile.examples"/>
|
||||
|
||||
<target name="clean" >
|
||||
<delete dir="${basedir}/build" />
|
||||
</target>
|
||||
|
||||
<target name="compile.examples">
|
||||
|
||||
<mkdir dir="build" />
|
||||
|
||||
<javac destdir="${basedir}/build"
|
||||
debug="${compile.debug}"
|
||||
source="${compile.source}"
|
||||
deprecation="${compile.deprecation}"
|
||||
optimize="${compile.optimize}" srcdir="${basedir}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
<include name="test.java" />
|
||||
</javac>
|
||||
|
||||
<jar jarfile="${basedir}/build/test.jar">
|
||||
<manifest>
|
||||
<attribute name="MIMEDescription" value="application/x-simple-pluglet"/>
|
||||
<attribute name="Pluglet-Class" value="test"/>
|
||||
</manifest>
|
||||
<fileset dir="${basedir}/build">
|
||||
<include name="*.class" />
|
||||
</fileset>
|
||||
</jar>
|
||||
|
||||
<copy todir="${myenv.MOZ_SRC}/mozilla/dist/bin/plugins"
|
||||
file="${basedir}/build/test.jar" />
|
||||
|
||||
</target>
|
||||
|
||||
</project>
|
||||
@@ -1,23 +0,0 @@
|
||||
## The timeouts of test execution
|
||||
DELAY=60
|
||||
DELAY_OF_CYCLE=5
|
||||
DELAY_INTERNAL=40
|
||||
|
||||
## The names of files for writing log and result by test
|
||||
LOG_FILE=PlugletTest.log
|
||||
RESULT_FILE=PlugletTest.res
|
||||
|
||||
## File separator property, used to specify PLUGLET variable
|
||||
## Under Win32
|
||||
FSEP=\
|
||||
|
||||
## Under Unix
|
||||
#FSEP=/
|
||||
|
||||
## The root directory of the this pluglet API test suite
|
||||
TEST_TOP_DIR=C:\sync
|
||||
|
||||
## The URL of directory where the htmls of tests are placed
|
||||
## The path to this directory should be pointed in set_env.bat to be used
|
||||
## during building
|
||||
HTML_ROOT=file:/c:/sync/build/htroot
|
||||
@@ -1,348 +0,0 @@
|
||||
#
|
||||
# SecurityTests.keys
|
||||
#
|
||||
# Configuration key values
|
||||
#
|
||||
|
||||
#
|
||||
# DeleteFileTest.java test properties
|
||||
#
|
||||
DeleteFileTest.mustPass=true
|
||||
DeleteFileTest.FileName=foo
|
||||
|
||||
#
|
||||
# GetClipboardTest.java test properties
|
||||
#
|
||||
GetClipboardTest.mustPass=true
|
||||
|
||||
#
|
||||
# GetSysPropsTest.java test properties
|
||||
#
|
||||
GetSysPropsTest.mustPass=true
|
||||
GetSysPropsTest.propertyName=path
|
||||
|
||||
#
|
||||
# OpenWinTest.java test properties
|
||||
#
|
||||
OpenWinTest.mustPass=true
|
||||
|
||||
#
|
||||
# PrintTest.java test properties
|
||||
#
|
||||
PrintTest.mustPass=true
|
||||
|
||||
#
|
||||
# ReadFileTest.java test properties
|
||||
#
|
||||
ReadFileTest.mustPass=true
|
||||
ReadFileTest.FileName=TestProperties
|
||||
|
||||
#
|
||||
# RemoteConnectTest.java test properties
|
||||
#
|
||||
RemoteConnectTest.mustPass=true
|
||||
RemoteConnectTest.URL=http://sirius
|
||||
|
||||
#
|
||||
# RunProgramTest.java test properties
|
||||
#
|
||||
RunProgramTest.mustPass=true
|
||||
RunProgramTest.command=ls -l
|
||||
|
||||
#
|
||||
# SecTestCanRead.java test properties
|
||||
#
|
||||
SecTestCanRead.mustPass=true
|
||||
SecTestCanRead.fName=TestProperties
|
||||
#
|
||||
# SecTestCanWrite.java test properties
|
||||
#
|
||||
SecTestCanWrite.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestClipboard.java test properties
|
||||
#
|
||||
SecTestClipboard.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestDelete.java test properties
|
||||
#
|
||||
SecTestDelete.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestEnv.java test properties
|
||||
#
|
||||
SecTestEnv.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestExists.java test properties
|
||||
#
|
||||
SecTestExists.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorIn.java test properties
|
||||
#
|
||||
SecTestFileDescriptorIn.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorOut.java test properties
|
||||
#
|
||||
SecTestFileDescriptorOut.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileInputStream.java test properties
|
||||
#
|
||||
SecTestFileInputStream.mustPass=true
|
||||
SecTestFileInputStream.fName=TestProperties
|
||||
|
||||
#
|
||||
# SecTestFileOutputStream.java test properties
|
||||
#
|
||||
SecTestFileOutputStream.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetAbsolutePath.java test properties
|
||||
#
|
||||
SecTestGetAbsolutePath.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetCanonicalPath.java test properties
|
||||
#
|
||||
SecTestGetCanonicalPath.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetContent.java test properties
|
||||
#
|
||||
SecTestGetContent.mustPass=true
|
||||
SecTestGetContent.fName=TestProperties
|
||||
|
||||
#
|
||||
# SecTestGetParent.java test properties
|
||||
#
|
||||
SecTestGetParent.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetPath.java test properties
|
||||
#
|
||||
SecTestGetPath.mustPass=true
|
||||
SecTestGetPath.fName=foo
|
||||
|
||||
#
|
||||
# SecTestGetProps.java test properties
|
||||
#
|
||||
SecTestGetProps.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetSecMgr.java test properties
|
||||
#
|
||||
SecTestGetSecMgr.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestIsDirectory.java test properties
|
||||
#
|
||||
SecTestIsDirectory.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestIsFile.java test properties
|
||||
#
|
||||
SecTestIsFile.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestLastModified.java test properties
|
||||
#
|
||||
SecTestLastModified.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestLength.java test properties
|
||||
#
|
||||
SecTestLength.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestList.java test properties
|
||||
#
|
||||
SecTestList.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestListJSFilter.java test properties
|
||||
#
|
||||
SecTestListJSFilter.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestMkdir.java test properties
|
||||
#
|
||||
SecTestMkdir.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestMkdirs.java test properties
|
||||
#
|
||||
SecTestMkdirs.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestOpenConx.java test properties
|
||||
#
|
||||
SecTestOpenConx.mustPass=true
|
||||
SecTestOpenConx.URL=http://sirius
|
||||
#
|
||||
# SecTestPrintStream.java test properties
|
||||
#
|
||||
SecTestPrintStream.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRandomAccess.java test properties
|
||||
#
|
||||
SecTestRandomAccess.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRandomAccessRW.java test properties
|
||||
#
|
||||
SecTestRandomAccessRW.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRenameTo.java test properties
|
||||
#
|
||||
SecTestRenameTo.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRunExec.java test properties
|
||||
#
|
||||
SecTestRunExec.mustPass=true
|
||||
SecTestRunExec.fExec=ls -l
|
||||
|
||||
#
|
||||
# SecTestRunExit.java test properties
|
||||
#
|
||||
SecTestRunExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRunLoad.java test properties
|
||||
#
|
||||
SecTestRunLoad.mustPass=true
|
||||
SecTestRunLoad.libName=java
|
||||
# SecTestRunLoadLib.java test properties
|
||||
#
|
||||
SecTestRunLoadLib.mustPass=true
|
||||
SecTestRunLoadLib.libName=plugletjni
|
||||
|
||||
#
|
||||
# SecTestSetSecMgr.java test properties
|
||||
#
|
||||
SecTestSetSecMgr.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestSocket.java test properties
|
||||
#
|
||||
SecTestSocket.mustPass=true
|
||||
SecTestSocket.fHost=sirius
|
||||
SecTestSocket.fPort=80
|
||||
|
||||
#
|
||||
# SecTestSysExit.java test properties
|
||||
#
|
||||
SecTestSysExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestURLFac.java test properties
|
||||
#
|
||||
SecTestURLFac.mustPass=true
|
||||
#
|
||||
# SecTestXAccept.java test properties
|
||||
#
|
||||
SecTestXAccept.mustPass=true
|
||||
SecTestXAccept.fHost=sirius
|
||||
SecTestXAccept.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXAccess.java test properties
|
||||
#
|
||||
SecTestXAccess.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXAccessTG.java test properties
|
||||
#
|
||||
SecTestXAccessTG.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXAccessTop.java test properties
|
||||
#
|
||||
SecTestXAccessTop.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXCCL.java test properties
|
||||
#
|
||||
SecTestXCCL.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXConn.java test properties
|
||||
#
|
||||
SecTestXConn.mustPass=true
|
||||
SecTestXConn.fHost=sirius
|
||||
SecTestXConn.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXDelete.java test properties
|
||||
#
|
||||
SecTestXDelete.mustPass=true
|
||||
SecTestXDelete.fName=foo
|
||||
|
||||
#
|
||||
# SecTestXExec.java test properties
|
||||
#
|
||||
SecTestXExec.mustPass=true
|
||||
SecTestXExec.fExec=ls -l
|
||||
|
||||
#
|
||||
# SecTestXExit.java test properties
|
||||
#
|
||||
SecTestXExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXLink.java test properties
|
||||
#
|
||||
SecTestXLink.mustPass=true
|
||||
SecTestXLink.fLink=sirius
|
||||
#
|
||||
# SecTestXListen.java test properties
|
||||
#
|
||||
SecTestXListen.mustPass=true
|
||||
SecTestXListen.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXPakAcc.java test properties
|
||||
#
|
||||
SecTestXPakAcc.mustPass=true
|
||||
SecTestXPakAcc.packageName=java.awt
|
||||
|
||||
#
|
||||
# SecTestXPakDef.java test properties
|
||||
#
|
||||
SecTestXPakDef.mustPass=true
|
||||
SecTestXPakDef.packageName=java.awt
|
||||
|
||||
#
|
||||
# SecTestXPropAcc.java test properties
|
||||
#
|
||||
SecTestXPropAcc.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXRead.java test properties
|
||||
#
|
||||
SecTestXRead.mustPass=true
|
||||
SecTestXRead.fName=foo
|
||||
|
||||
#
|
||||
# SecTestXSetFac.java test properties
|
||||
#
|
||||
SecTestXSetFac.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXWrite.java test properties
|
||||
#
|
||||
SecTestXWrite.mustPass=true
|
||||
SecTestXWrite.fName=foo
|
||||
|
||||
#
|
||||
# WriteFileTest.java test properties
|
||||
#
|
||||
WriteFileTest.mustPass=true
|
||||
WriteFileTest.FileName=foo
|
||||
|
||||
@@ -1,351 +0,0 @@
|
||||
#
|
||||
# SecurityTests.template
|
||||
#
|
||||
# This is a template file for the security tests properties.
|
||||
#
|
||||
|
||||
#
|
||||
# DeleteFileTest.java test properties
|
||||
#
|
||||
DeleteFileTest.mustPass=true
|
||||
DeleteFileTest.FileName=foo
|
||||
|
||||
#
|
||||
# GetClipboardTest.java test properties
|
||||
#
|
||||
GetClipboardTest.mustPass=true
|
||||
|
||||
#
|
||||
# GetSysPropsTest.java test properties
|
||||
#
|
||||
GetSysPropsTest.mustPass=true
|
||||
GetSysPropsTest.propertyName=path
|
||||
|
||||
#
|
||||
# OpenWinTest.java test properties
|
||||
#
|
||||
OpenWinTest.mustPass=true
|
||||
|
||||
#
|
||||
# PrintTest.java test properties
|
||||
#
|
||||
PrintTest.mustPass=true
|
||||
|
||||
#
|
||||
# ReadFileTest.java test properties
|
||||
#
|
||||
ReadFileTest.mustPass=true
|
||||
ReadFileTest.FileName=foo
|
||||
|
||||
#
|
||||
# RemoteConnectTest.java test properties
|
||||
#
|
||||
RemoteConnectTest.mustPass=true
|
||||
RemoteConnectTest.URL=http://sirius
|
||||
|
||||
#
|
||||
# RunProgramTest.java test properties
|
||||
#
|
||||
RunProgramTest.mustPass=true
|
||||
RunProgramTest.command=ls -l
|
||||
|
||||
#
|
||||
# SecTestCanRead.java test properties
|
||||
#
|
||||
SecTestCanRead.mustPass=true
|
||||
SecTestCanRead.fName=TestProperties
|
||||
#
|
||||
# SecTestCanWrite.java test properties
|
||||
#
|
||||
SecTestCanWrite.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestClipboard.java test properties
|
||||
#
|
||||
SecTestClipboard.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestDelete.java test properties
|
||||
#
|
||||
SecTestDelete.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestEnv.java test properties
|
||||
#
|
||||
SecTestEnv.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestExists.java test properties
|
||||
#
|
||||
SecTestExists.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorIn.java test properties
|
||||
#
|
||||
SecTestFileDescriptorIn.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorOut.java test properties
|
||||
#
|
||||
SecTestFileDescriptorOut.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestFileInputStream.java test properties
|
||||
#
|
||||
SecTestFileInputStream.mustPass=true
|
||||
SecTestFileInputStream.fName=TestProperties
|
||||
|
||||
#
|
||||
# SecTestFileOutputStream.java test properties
|
||||
#
|
||||
SecTestFileOutputStream.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetAbsolutePath.java test properties
|
||||
#
|
||||
SecTestGetAbsolutePath.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetCanonicalPath.java test properties
|
||||
#
|
||||
SecTestGetCanonicalPath.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetContent.java test properties
|
||||
#
|
||||
SecTestGetContent.mustPass=true
|
||||
SecTestGetContent.fName=TestProperties
|
||||
|
||||
#
|
||||
# SecTestGetParent.java test properties
|
||||
#
|
||||
SecTestGetParent.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetPath.java test properties
|
||||
#
|
||||
SecTestGetPath.mustPass=true
|
||||
SecTestGetPath.fName=foo
|
||||
|
||||
#
|
||||
# SecTestGetProps.java test properties
|
||||
#
|
||||
SecTestGetProps.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestGetSecMgr.java test properties
|
||||
#
|
||||
SecTestGetSecMgr.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestIsDirectory.java test properties
|
||||
#
|
||||
SecTestIsDirectory.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestIsFile.java test properties
|
||||
#
|
||||
SecTestIsFile.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestLastModified.java test properties
|
||||
#
|
||||
SecTestLastModified.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestLength.java test properties
|
||||
#
|
||||
SecTestLength.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestList.java test properties
|
||||
#
|
||||
SecTestList.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestListJSFilter.java test properties
|
||||
#
|
||||
SecTestListJSFilter.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestMkdir.java test properties
|
||||
#
|
||||
SecTestMkdir.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestMkdirs.java test properties
|
||||
#
|
||||
SecTestMkdirs.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestOpenConx.java test properties
|
||||
#
|
||||
SecTestOpenConx.mustPass=true
|
||||
SecTestOpenConx.URL=http://sirius
|
||||
|
||||
#
|
||||
# SecTestPrintStream.java test properties
|
||||
#
|
||||
SecTestPrintStream.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRandomAccess.java test properties
|
||||
#
|
||||
SecTestRandomAccess.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRandomAccessRW.java test properties
|
||||
#
|
||||
SecTestRandomAccessRW.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRenameTo.java test properties
|
||||
#
|
||||
SecTestRenameTo.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRunExec.java test properties
|
||||
#
|
||||
SecTestRunExec.mustPass=true
|
||||
SecTestRunExec.fExec=ls -l
|
||||
|
||||
#
|
||||
# SecTestRunExit.java test properties
|
||||
#
|
||||
SecTestRunExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestRunLoad.java test properties
|
||||
#
|
||||
SecTestRunLoad.mustPass=true
|
||||
SecTestRunLoad.libName=java
|
||||
#
|
||||
# SecTestRunLoadLib.java test properties
|
||||
#
|
||||
SecTestRunLoadLib.mustPass=true
|
||||
SecTestRunLoadLib.libName=plugletjni
|
||||
|
||||
#
|
||||
# SecTestSetSecMgr.java test properties
|
||||
#
|
||||
SecTestSetSecMgr.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestSocket.java test properties
|
||||
#
|
||||
SecTestSocket.mustPass=true
|
||||
SecTestSocket.fHost=sirius
|
||||
SecTestSocket.fPort=80
|
||||
|
||||
#
|
||||
# SecTestSysExit.java test properties
|
||||
#
|
||||
SecTestSysExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestURLFac.java test properties
|
||||
#
|
||||
SecTestURLFac.mustPass=true
|
||||
#
|
||||
# SecTestXAccept.java test properties
|
||||
#
|
||||
SecTestXAccept.mustPass=true
|
||||
SecTestXAccept.fHost=sirius
|
||||
SecTestXAccept.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXAccess.java test properties
|
||||
#
|
||||
SecTestXAccess.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXAccessTG.java test properties
|
||||
#
|
||||
SecTestXAccessTG.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXAccessTop.java test properties
|
||||
#
|
||||
SecTestXAccessTop.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXCCL.java test properties
|
||||
#
|
||||
SecTestXCCL.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXConn.java test properties
|
||||
#
|
||||
SecTestXConn.mustPass=true
|
||||
SecTestXConn.fHost=sirius
|
||||
SecTestXConn.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXDelete.java test properties
|
||||
#
|
||||
SecTestXDelete.mustPass=true
|
||||
SecTestXDelete.fName=foo
|
||||
|
||||
#
|
||||
# SecTestXExec.java test properties
|
||||
#
|
||||
SecTestXExec.mustPass=true
|
||||
SecTestXExec.fExec=ls -l
|
||||
|
||||
#
|
||||
# SecTestXExit.java test properties
|
||||
#
|
||||
SecTestXExit.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXLink.java test properties
|
||||
#
|
||||
SecTestXLink.mustPass=true
|
||||
SecTestXLink.fLink=sirius
|
||||
|
||||
#
|
||||
# SecTestXListen.java test properties
|
||||
#
|
||||
SecTestXListen.mustPass=true
|
||||
SecTestXListen.fPort=80
|
||||
|
||||
#
|
||||
# SecTestXPakAcc.java test properties
|
||||
#
|
||||
SecTestXPakAcc.mustPass=true
|
||||
SecTestXPakAcc.packageName=java.awt
|
||||
|
||||
#
|
||||
# SecTestXPakDef.java test properties
|
||||
#
|
||||
SecTestXPakDef.mustPass=true
|
||||
SecTestXPakDef.packageName=java.awt
|
||||
|
||||
#
|
||||
# SecTestXPropAcc.java test properties
|
||||
#
|
||||
SecTestXPropAcc.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXRead.java test properties
|
||||
#
|
||||
SecTestXRead.mustPass=true
|
||||
SecTestXRead.fName=foo
|
||||
|
||||
#
|
||||
# SecTestXSetFac.java test properties
|
||||
#
|
||||
SecTestXSetFac.mustPass=true
|
||||
|
||||
#
|
||||
# SecTestXWrite.java test properties
|
||||
#
|
||||
SecTestXWrite.mustPass=true
|
||||
SecTestXWrite.fName=foo
|
||||
|
||||
#
|
||||
# WriteFileTest.java test properties
|
||||
#
|
||||
WriteFileTest.mustPass=true
|
||||
WriteFileTest.FileName=foo
|
||||
|
||||
@@ -1,351 +0,0 @@
|
||||
#
|
||||
# SecurityTests.template
|
||||
#
|
||||
# This is a template file for the security tests properties.
|
||||
#
|
||||
|
||||
#
|
||||
# DeleteFileTest.java test properties
|
||||
#
|
||||
DeleteFileTest.mustPass=<DeleteFileTest.mustPass>
|
||||
DeleteFileTest.FileName=<DeleteFileTest.FileName>
|
||||
|
||||
#
|
||||
# GetClipboardTest.java test properties
|
||||
#
|
||||
GetClipboardTest.mustPass=<GetClipboardTest.mustPass>
|
||||
|
||||
#
|
||||
# GetSysPropsTest.java test properties
|
||||
#
|
||||
GetSysPropsTest.mustPass=<GetSysPropsTest.mustPass>
|
||||
GetSysPropsTest.propertyName=<GetSysPropsTest.propertyName>
|
||||
|
||||
#
|
||||
# OpenWinTest.java test properties
|
||||
#
|
||||
OpenWinTest.mustPass=<OpenWinTest.mustPass>
|
||||
|
||||
#
|
||||
# PrintTest.java test properties
|
||||
#
|
||||
PrintTest.mustPass=<PrintTest.mustPass>
|
||||
|
||||
#
|
||||
# ReadFileTest.java test properties
|
||||
#
|
||||
ReadFileTest.mustPass=<ReadFileTest.mustPass>
|
||||
ReadFileTest.FileName=<ReadFileTest.FileName>
|
||||
|
||||
#
|
||||
# RemoteConnectTest.java test properties
|
||||
#
|
||||
RemoteConnectTest.mustPass=<RemoteConnectTest.mustPass>
|
||||
RemoteConnectTest.URL=<RemoteConnectTest.URL>
|
||||
|
||||
#
|
||||
# RunProgramTest.java test properties
|
||||
#
|
||||
RunProgramTest.mustPass=<RunProgramTest.mustPass>
|
||||
RunProgramTest.command=<RunProgramTest.command>
|
||||
|
||||
#
|
||||
# SecTestCanRead.java test properties
|
||||
#
|
||||
SecTestCanRead.mustPass=<SecTestCanRead.mustPass>
|
||||
SecTestCanRead.fName=<SecTestCanRead.fName>
|
||||
#
|
||||
# SecTestCanWrite.java test properties
|
||||
#
|
||||
SecTestCanWrite.mustPass=<SecTestCanWrite.mustPass>
|
||||
|
||||
#
|
||||
# SecTestClipboard.java test properties
|
||||
#
|
||||
SecTestClipboard.mustPass=<SecTestClipboard.mustPass>
|
||||
|
||||
#
|
||||
# SecTestDelete.java test properties
|
||||
#
|
||||
SecTestDelete.mustPass=<SecTestDelete.mustPass>
|
||||
|
||||
#
|
||||
# SecTestEnv.java test properties
|
||||
#
|
||||
SecTestEnv.mustPass=<SecTestEnv.mustPass>
|
||||
|
||||
#
|
||||
# SecTestExists.java test properties
|
||||
#
|
||||
SecTestExists.mustPass=<SecTestExists.mustPass>
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorIn.java test properties
|
||||
#
|
||||
SecTestFileDescriptorIn.mustPass=<SecTestFileDescriptorIn.mustPass>
|
||||
|
||||
#
|
||||
# SecTestFileDescriptorOut.java test properties
|
||||
#
|
||||
SecTestFileDescriptorOut.mustPass=<SecTestFileDescriptorOut.mustPass>
|
||||
|
||||
#
|
||||
# SecTestFileInputStream.java test properties
|
||||
#
|
||||
SecTestFileInputStream.mustPass=<SecTestFileInputStream.mustPass>
|
||||
SecTestFileInputStream.fName=<SecTestFileInputStream.fName>
|
||||
|
||||
#
|
||||
# SecTestFileOutputStream.java test properties
|
||||
#
|
||||
SecTestFileOutputStream.mustPass=<SecTestFileOutputStream.mustPass>
|
||||
|
||||
#
|
||||
# SecTestGetAbsolutePath.java test properties
|
||||
#
|
||||
SecTestGetAbsolutePath.mustPass=<SecTestGetAbsolutePath.mustPass>
|
||||
|
||||
#
|
||||
# SecTestGetCanonicalPath.java test properties
|
||||
#
|
||||
SecTestGetCanonicalPath.mustPass=<SecTestGetCanonicalPath.mustPass>
|
||||
|
||||
#
|
||||
# SecTestGetContent.java test properties
|
||||
#
|
||||
SecTestGetContent.mustPass=<SecTestGetContent.mustPass>
|
||||
SecTestGetContent.fName=<SecTestGetContent.fName>
|
||||
|
||||
#
|
||||
# SecTestGetParent.java test properties
|
||||
#
|
||||
SecTestGetParent.mustPass=<SecTestGetParent.mustPass>
|
||||
|
||||
#
|
||||
# SecTestGetPath.java test properties
|
||||
#
|
||||
SecTestGetPath.mustPass=<SecTestGetPath.mustPass>
|
||||
SecTestGetPath.fName=<SecTestGetPath.fName>
|
||||
|
||||
#
|
||||
# SecTestGetProps.java test properties
|
||||
#
|
||||
SecTestGetProps.mustPass=<SecTestGetProps.mustPass>
|
||||
|
||||
#
|
||||
# SecTestGetSecMgr.java test properties
|
||||
#
|
||||
SecTestGetSecMgr.mustPass=<SecTestGetSecMgr.mustPass>
|
||||
|
||||
#
|
||||
# SecTestIsDirectory.java test properties
|
||||
#
|
||||
SecTestIsDirectory.mustPass=<SecTestIsDirectory.mustPass>
|
||||
|
||||
#
|
||||
# SecTestIsFile.java test properties
|
||||
#
|
||||
SecTestIsFile.mustPass=<SecTestIsFile.mustPass>
|
||||
|
||||
#
|
||||
# SecTestLastModified.java test properties
|
||||
#
|
||||
SecTestLastModified.mustPass=<SecTestLastModified.mustPass>
|
||||
|
||||
#
|
||||
# SecTestLength.java test properties
|
||||
#
|
||||
SecTestLength.mustPass=<SecTestLength.mustPass>
|
||||
|
||||
#
|
||||
# SecTestList.java test properties
|
||||
#
|
||||
SecTestList.mustPass=<SecTestList.mustPass>
|
||||
|
||||
#
|
||||
# SecTestListJSFilter.java test properties
|
||||
#
|
||||
SecTestListJSFilter.mustPass=<SecTestListJSFilter.mustPass>
|
||||
|
||||
#
|
||||
# SecTestMkdir.java test properties
|
||||
#
|
||||
SecTestMkdir.mustPass=<SecTestMkdir.mustPass>
|
||||
|
||||
#
|
||||
# SecTestMkdirs.java test properties
|
||||
#
|
||||
SecTestMkdirs.mustPass=<SecTestMkdir.mustPass>
|
||||
|
||||
#
|
||||
# SecTestOpenConx.java test properties
|
||||
#
|
||||
SecTestOpenConx.mustPass=<SecTestOpenConx.mustPass>
|
||||
SecTestOpenConx.URL=<SecTestOpenConx.URL>
|
||||
|
||||
#
|
||||
# SecTestPrintStream.java test properties
|
||||
#
|
||||
SecTestPrintStream.mustPass=<SecTestPrintStream.mustPass>
|
||||
|
||||
#
|
||||
# SecTestRandomAccess.java test properties
|
||||
#
|
||||
SecTestRandomAccess.mustPass=<SecTestRandomAccess.mustPass>
|
||||
|
||||
#
|
||||
# SecTestRandomAccessRW.java test properties
|
||||
#
|
||||
SecTestRandomAccessRW.mustPass=<SecTestRandomAccess.mustPass>
|
||||
|
||||
#
|
||||
# SecTestRenameTo.java test properties
|
||||
#
|
||||
SecTestRenameTo.mustPass=<SecTestRenameTo.mustPass>
|
||||
|
||||
#
|
||||
# SecTestRunExec.java test properties
|
||||
#
|
||||
SecTestRunExec.mustPass=<SecTestRunExec.mustPass>
|
||||
SecTestRunExec.fExec=<SecTestRunExec.fExec>
|
||||
|
||||
#
|
||||
# SecTestRunExit.java test properties
|
||||
#
|
||||
SecTestRunExit.mustPass=<SecTestRunExit.mustPass>
|
||||
|
||||
#
|
||||
# SecTestRunLoad.java test properties
|
||||
#
|
||||
SecTestRunLoad.mustPass=<SecTestRunLoad.mustPass>
|
||||
SecTestRunLoad.libName=<SecTestRunLoad.libName>
|
||||
#
|
||||
# SecTestRunLoadLib.java test properties
|
||||
#
|
||||
SecTestRunLoadLib.mustPass=<SecTestRunLoadLib.mustPass>
|
||||
SecTestRunLoadLib.libName=<SecTestRunLoadLib.libName>
|
||||
|
||||
#
|
||||
# SecTestSetSecMgr.java test properties
|
||||
#
|
||||
SecTestSetSecMgr.mustPass=<SecTestSetSecMgr.mustPass>
|
||||
|
||||
#
|
||||
# SecTestSocket.java test properties
|
||||
#
|
||||
SecTestSocket.mustPass=<SecTestSocket.mustPass>
|
||||
SecTestSocket.fHost=<SecTestSocket.fHost>
|
||||
SecTestSocket.fPort=<SecTestSocket.fPort>
|
||||
|
||||
#
|
||||
# SecTestSysExit.java test properties
|
||||
#
|
||||
SecTestSysExit.mustPass=<SecTestSysExit.mustPass>
|
||||
|
||||
#
|
||||
# SecTestURLFac.java test properties
|
||||
#
|
||||
SecTestURLFac.mustPass=<SecTestURLFac.mustPass>
|
||||
#
|
||||
# SecTestXAccept.java test properties
|
||||
#
|
||||
SecTestXAccept.mustPass=<SecTestXAccept.mustPass>
|
||||
SecTestXAccept.fHost=<SecTestXAccept.fHost>
|
||||
SecTestXAccept.fPort=<SecTestXAccept.fPort>
|
||||
|
||||
#
|
||||
# SecTestXAccess.java test properties
|
||||
#
|
||||
SecTestXAccess.mustPass=<SecTestXAccess.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXAccessTG.java test properties
|
||||
#
|
||||
SecTestXAccessTG.mustPass=<SecTestXAccess.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXAccessTop.java test properties
|
||||
#
|
||||
SecTestXAccessTop.mustPass=<SecTestXAccess.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXCCL.java test properties
|
||||
#
|
||||
SecTestXCCL.mustPass=<SecTestXCCL.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXConn.java test properties
|
||||
#
|
||||
SecTestXConn.mustPass=<SecTestXConn.mustPass>
|
||||
SecTestXConn.fHost=<SecTestXConn.fHost>
|
||||
SecTestXConn.fPort=<SecTestXConn.fPort>
|
||||
|
||||
#
|
||||
# SecTestXDelete.java test properties
|
||||
#
|
||||
SecTestXDelete.mustPass=<SecTestXDelete.mustPass>
|
||||
SecTestXDelete.fName=<SecTestXDelete.fName>
|
||||
|
||||
#
|
||||
# SecTestXExec.java test properties
|
||||
#
|
||||
SecTestXExec.mustPass=<SecTestXExec.mustPass>
|
||||
SecTestXExec.fExec=<SecTestXExec.fExec>
|
||||
|
||||
#
|
||||
# SecTestXExit.java test properties
|
||||
#
|
||||
SecTestXExit.mustPass=<SecTestXExit.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXLink.java test properties
|
||||
#
|
||||
SecTestXLink.mustPass=<SecTestXLink.mustPass>
|
||||
SecTestXLink.fLink=<SecTestXLink.fLink>
|
||||
|
||||
#
|
||||
# SecTestXListen.java test properties
|
||||
#
|
||||
SecTestXListen.mustPass=<SecTestXListen.mustPass>
|
||||
SecTestXListen.fPort=<SecTestXListen.fPort>
|
||||
|
||||
#
|
||||
# SecTestXPakAcc.java test properties
|
||||
#
|
||||
SecTestXPakAcc.mustPass=<SecTestXPakAcc.mustPass>
|
||||
SecTestXPakAcc.packageName=<SecTestXPakAcc.packageName>
|
||||
|
||||
#
|
||||
# SecTestXPakDef.java test properties
|
||||
#
|
||||
SecTestXPakDef.mustPass=<SecTestXPakDef.mustPass>
|
||||
SecTestXPakDef.packageName=<SecTestXPakDef.packageName>
|
||||
|
||||
#
|
||||
# SecTestXPropAcc.java test properties
|
||||
#
|
||||
SecTestXPropAcc.mustPass=<SecTestXPropAcc.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXRead.java test properties
|
||||
#
|
||||
SecTestXRead.mustPass=<SecTestXRead.mustPass>
|
||||
SecTestXRead.fName=<SecTestXRead.fName>
|
||||
|
||||
#
|
||||
# SecTestXSetFac.java test properties
|
||||
#
|
||||
SecTestXSetFac.mustPass=<SecTestXSetFac.mustPass>
|
||||
|
||||
#
|
||||
# SecTestXWrite.java test properties
|
||||
#
|
||||
SecTestXWrite.mustPass=<SecTestXWrite.mustPass>
|
||||
SecTestXWrite.fName=<SecTestXWrite.fName>
|
||||
|
||||
#
|
||||
# WriteFileTest.java test properties
|
||||
#
|
||||
WriteFileTest.mustPass=<WriteFileTest.mustPass>
|
||||
WriteFileTest.FileName=<WriteFileTest.FileName>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# The directory where html files of tests should be placed
|
||||
# The URL of this directory should be pointed in HTML_ROOT
|
||||
set HTML_ROOT_DIR=h:\apache\share\htdocs\pl_tests
|
||||
|
||||
@@ -1,709 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Browser side Pluglet API tests description</title>
|
||||
</head>
|
||||
<body bgcolor=White>
|
||||
<pre>
|
||||
<B>Browser side Pluglet API tests description.</B>
|
||||
(first draft,30 November 1999)
|
||||
|
||||
Contents:
|
||||
|
||||
<A href=#1.>1.</A> Methods of interface PlugletManager:
|
||||
<A href=#1.1>1.1</A> getURL
|
||||
<!-- <A href=#1.2>1.2</A> getValue -->
|
||||
<A href=#1.3>1.3</A> postURL
|
||||
<A href=#1.4>1.4</A> reloadPluglets
|
||||
<A href=#1.5>1.5</A> userAgent
|
||||
<A href=#2.>2.</A> Methods of interface PlugletPeer:
|
||||
<A href=#2.1>2.1</A> getMIMEType
|
||||
<A href=#2.2>2.2</A> getMode
|
||||
<A href=#2.3>2.3</A> getTagInfo
|
||||
<A href=#2.4>2.4</A> getValue
|
||||
<A href=#2.5>2.5</A> newStream
|
||||
<A href=#2.6>2.6</A> setWindowSize
|
||||
<A href=#2.7>2.7</A> showStatus
|
||||
<A href=#3.>3.</A> Methods of interface PlugletStreamInfo:
|
||||
<A href=#3.1>3.1</A> getContentType
|
||||
<A href=#3.2>3.2</A> getLastModified
|
||||
<A href=#3.3>3.3</A> getLength
|
||||
<A href=#3.4>3.4</A> getURL
|
||||
<A href=#3.5>3.5</A> isSeekable
|
||||
<A href=#3.6>3.6</A> requestRead
|
||||
<A href=#4.>4.</A> Methods of interface PlugletTagInfo:
|
||||
<A href=#4.2>4.2</A> getAttribute
|
||||
<A href=#4.3>4.3</A> getAttributes
|
||||
<A href=#5.>5.</A> Methods of interface PlugletTagInfo2:
|
||||
<A href=#5.1>5.1</A> getAlignment
|
||||
<A href=#5.2>5.2</A> getAttribute
|
||||
<A href=#5.3>5.3</A> getAttributes
|
||||
<A href=#5.4>5.4</A> getBorderHorizSpace
|
||||
<A href=#5.5>5.5</A> getBorderVertSpace
|
||||
<A href=#5.6>5.6</A> getDocumentBase
|
||||
<A href=#5.7>5.7</A> getDocumentEncoding
|
||||
<A href=#5.8>5.8</A> getHeight
|
||||
<A href=#5.9>5.9</A> getTagText
|
||||
<A href=#5.10>5.10</A> getTagType
|
||||
<A href=#5.11>5.11</A> getUniqueID
|
||||
<A href=#5.12>5.12</A> getWidth
|
||||
|
||||
Description:
|
||||
|
||||
<A name=1.>1. Methods of PlugletManager interface
|
||||
<A name=1.1>1.1 Tests for method getURL of PlugletManager interface.
|
||||
Method description:
|
||||
Via this method pluglet can request any URL
|
||||
and paint it on browser window or fetch it self.
|
||||
Method's state: doesn't work(Pluglet's plugin code doesn't exist)
|
||||
|
||||
Test IDs: basic/api/PlugletManager_getURL:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletManager_getURL
|
||||
Recent files:
|
||||
PlugletManager_getURL_128.java
|
||||
PlugletManager_getURL_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Possible a good way to do it
|
||||
is JavaScript, well received and rendered page can
|
||||
say pluglet:"All OK :)"
|
||||
Comments:
|
||||
Now test just iterate a set of arguments and call method.
|
||||
JNI realization of this method is not yet implemented,
|
||||
so can't check results of it execution.
|
||||
<A name=1.3>1.3 Tests for method postURL of PlugletManager interface.
|
||||
Method description:
|
||||
This method used for post some data and get browser's answer.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletManager_postURL:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletManager_postURL
|
||||
Recent files:
|
||||
PlugletManager_postURL_9216.java
|
||||
PlugletManager_postURL_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Not implemented.Possible a good way to do it is CGI script
|
||||
for receive and check posted data and generate valid answer.
|
||||
Comments:
|
||||
Now test just iterate a set of arguments and call method.
|
||||
JNI realization of this method is not yet implemented,
|
||||
so can't check results of it execution.
|
||||
|
||||
<A name=1.4>1.4 Tests for method reloadPluglets of PlugletManager interface.
|
||||
Method description:
|
||||
Via this method pluglet can request browser
|
||||
to reload pluglets from disk, so if new pluglet
|
||||
jars available in the pluglets location dir, new
|
||||
mime types should be handled successfully.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletManager_reloadPluglets:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletManager_reloadPluglets
|
||||
Recent files:
|
||||
PlugletManager_reloadPluglets_2.java
|
||||
PlugletManager_reloadPluglets_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
From current point of view a good way to check such
|
||||
behavior is verify output from second pluglet.
|
||||
Now this test used 2 pluglets main and second,
|
||||
second pluglet located in test dir, SecondPluglet.jar
|
||||
and copied to pluglets dir during test execution.
|
||||
Also applet used to delete a SecondPluglet.jar from pluglet's dir
|
||||
(it can appear here from previous tests).
|
||||
Sequence:
|
||||
1.First page with DelApp delete SecondPluglet.jar from pluglet's dir
|
||||
and load page with test pluglet.
|
||||
2.TestPluglet copying SecondPluglet.jar to the pluglet's dir ,
|
||||
call reloadPluglets method of PlugletManager and load page
|
||||
with SecondPluglet.
|
||||
3.If pluglets was successfully reloaded then SecondPluglet
|
||||
initialized and say to test context:"All O
|
||||
Comments:
|
||||
You must grant permissions for test and applet for copying and deletion
|
||||
files on your filesystem.
|
||||
NOTE:Check for page reloading should be added
|
||||
|
||||
<A name=1.5>1.5 Tests for method userAgent of PlugletManager interface.
|
||||
Method description:
|
||||
Via this method pluglet can access
|
||||
to the current user agent name.
|
||||
Method's state: Methods work correctly
|
||||
|
||||
Test ID: basic/api/PlugletManager_userAgent
|
||||
Test Directory: PlugletManager_userAgent
|
||||
Recent files:
|
||||
PlugletManager_userAgent_0.java
|
||||
PlugletManager_userAgent_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
JavaScript used to check result of this method execution.
|
||||
JavaScript window.navigator.userAgent value transfered
|
||||
to pluglet and compared with value, returned by method.
|
||||
If values are equals then test PASSED.
|
||||
Comments:
|
||||
Now a static string is used to identify the userAgent in
|
||||
plugins and this string is different from window.navigator.userAgent
|
||||
|
||||
<A name=2.>2. Methods of PlugletPeer interface
|
||||
<A name=2.1>2.1 Tests for method getMIMEType of PlugletPeer interface.
|
||||
Method description:
|
||||
Via this method pluglet can access to MIME type,
|
||||
witch it was instantiated.
|
||||
Method's state: work now.
|
||||
|
||||
Test ID: basic/api/PlugletPeer_getMIMEType
|
||||
Test Directory: PlugletPeer_getMIMEType
|
||||
Recent files:
|
||||
PlugletPeer_getMIMEType_0.java
|
||||
PlugletPeer_getMIMEType_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
MIME type value transfered to pluglet via JavaScript
|
||||
and compared with returned by getMIMEType method.
|
||||
If values are equals then test PASSED
|
||||
Comments:
|
||||
Test for pluglet with multiple mime-types should be added.
|
||||
<A name=2.2>2.2 Tests for method getMode of PlugletPeer interface.
|
||||
Method description:
|
||||
This method returns a pluglet mode,possible modes is
|
||||
full page and embedded.
|
||||
Method's state:
|
||||
Method always return 1(corresponds to embedded pluglets)
|
||||
Test IDs: basic/api/PlugletPeer_getMode
|
||||
Test Directory: PlugletPeer_getMode
|
||||
Recent files:
|
||||
PlugletPeer_getMode_0.java
|
||||
PlugletPeer_getMode_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Expected value of instantiation mode pluglet read from TestProperties(located in test dir).
|
||||
Expected value compared with returned by getMode method and if they are equals then
|
||||
test PASSED.
|
||||
Comments:
|
||||
Test for full page pluglets should be added.
|
||||
<A name=2.3>2.3 Tests for method getTagInfo of PlugletPeer interface.
|
||||
Method description:
|
||||
This method return a PlugletTagInfo object.
|
||||
Via this object pluglet can access to miscellaneous tag information.
|
||||
Method's state: work
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_getTagInfo:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletPeer_getTagInfo
|
||||
Recent files:
|
||||
PlugletPeer_getTagInfo_0.java
|
||||
PlugletPeer_getTagInfo_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
For verify results PlugletTagInfo.getAttribute method used.
|
||||
Returned by getAttribute value compared with value, transfered to
|
||||
pluglet via JavaScript and if they equals then test PASSED.
|
||||
Now "type" attribute used to verify a validity of PlugletTagInfo object
|
||||
Comments:
|
||||
<A name=2.4>2.4 Tests for method getValue of PlugletPeer interface.
|
||||
Method description:
|
||||
This method returns value of variable, associated
|
||||
with PlugletPeer.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_getValue:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletPeer_getValue
|
||||
Recent files:
|
||||
PlugletPeer_getValue_3.java
|
||||
PlugletPeer_getValue_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Method doesn't work, check not implemented
|
||||
Comments:
|
||||
|
||||
<A name=2.5>2.5 Tests for method newStream of PlugletPeer interface.
|
||||
Method description:
|
||||
This method used to create stream for transfer data from pluglet to browser,
|
||||
browser should render, save, .. etc received data corresponding to data's MIME type.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_newStream_0:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletPeer_newStream_0
|
||||
Recent files:
|
||||
PlugletPeer_newStream_4.java
|
||||
PlugletPeer_newStream_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
This test just iterate method's arguments,
|
||||
can't verify results, because method doesn't work.
|
||||
Possible a good way to check result is JavaScript,
|
||||
embedded in send ed data or in another frame of frameset
|
||||
Comments:
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_newStream_1:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
PlugletPeer_newStream_1 PlugletPeer_newStream_1
|
||||
Recent files:
|
||||
PlugletPeer_newStream_4.java
|
||||
PlugletPeer_newStream_Iterator.java
|
||||
Arguments:
|
||||
In test dir PlugletPeer_newStream_1 see ParamCombinations
|
||||
and TestParameters for argument's values.
|
||||
Check result:
|
||||
This test used text/html MIME type for new stream,
|
||||
so check implemented via JavaScript, embedded in posted data.
|
||||
If page correctly loaded and rendered, then JavaScript just
|
||||
say pluglet: "All OK"
|
||||
Comments:
|
||||
|
||||
<A name=2.6>2.6 Tests for method setWindowSize of PlugletPeer interface.
|
||||
Method description: This method used to change browser widow size.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_setWindowSize:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletPeer_setWindowSize
|
||||
Recent files:
|
||||
PlugletPeer_setWindowSize_9.java
|
||||
PlugletPeer_setWindowSize_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
JavaScript used to verify results.
|
||||
Sequence:
|
||||
1.Page with test pluglet loaded,pluglet instantiated
|
||||
2.After some time (about 5 seconds after page initialization) JavaScript transfer
|
||||
current window size to pluglet.
|
||||
3.Pluglet compare values from JavaScript and arguments of setWindowSize method
|
||||
and if they equals then test PASSED.
|
||||
Comments:
|
||||
<A name=2.7>2.7 Tests for method showStatus of PlugletPeer interface.
|
||||
Method description:
|
||||
This method used to display a string in the browser's status line.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletPeer_showStatus:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletPeer_showStatus
|
||||
Recent files:
|
||||
PlugletPeer_showStatus_2.java
|
||||
PlugletPeer_showStatus_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Implemented via JavaScript, after small timeout
|
||||
value of window.status transfered to pluglet and
|
||||
compared with argument of showStatus.If they values are equals
|
||||
then test PASSED.
|
||||
Comments:
|
||||
|
||||
<A name=3.>3. Methods of PlugletStreamInfo interface
|
||||
<A name=3.1>3.1 Tests for method getContentType of PlugletStreamInfo interface.
|
||||
Method description:
|
||||
This method used to get stream's content type
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletStreamInfo_getContentType
|
||||
Test Directory: PlugletStreamInfo_getContentType
|
||||
Recent files:
|
||||
PlugletStreamInfo_getContentType_0.java
|
||||
PlugletStreamInfo_getContentType_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Check result implemented via JavaScript,
|
||||
when pluglet instantiated JavaScript transfer
|
||||
content type of src data to pluglet.Pluglet
|
||||
compare it with value, returned by getContentType
|
||||
method and if they equals then method PASSED
|
||||
Comments:
|
||||
|
||||
<A name=3.2>3.2 Tests for method getLastModified of PlugletStreamInfo interface.
|
||||
Method description:
|
||||
This method used for access to Last Modified
|
||||
stream field.
|
||||
Method's state: doesn't work
|
||||
|
||||
Test ID: basic/api/PlugletStreamInfo_getLastModified
|
||||
Test Directory: PlugletStreamInfo_getLastModified
|
||||
Recent files:
|
||||
PlugletStreamInfo_getLastModified_0.java
|
||||
PlugletStreamInfo_getLastModified_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Not implemented.Possible a good way to check result
|
||||
is create from pluglet URLConnection to file,
|
||||
used in src and compare URLConnection's LastModified
|
||||
values with returned by getLasModified method.Or
|
||||
use CGI script to generate Last Modified field.
|
||||
Comments:
|
||||
Always return 0 now.
|
||||
<A name=3.3>3.3 Tests for method getLength of PlugletStreamInfo interface.
|
||||
Method description:
|
||||
This method used to get length of stream's data.(Content Length field)
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletStreamInfo_getLength
|
||||
Test Directory: PlugletStreamInfo_getLength
|
||||
Recent files:
|
||||
PlugletStreamInfo_getLength_0.java
|
||||
PlugletStreamInfo_getLength_Iterator.java
|
||||
Arguments:
|
||||
Check result:
|
||||
Java Script used to transfer file name, used in embed's src attribute.
|
||||
Pluglet used a URLConnection.getContentLength method to get
|
||||
right value for ContentLength field. And then compare it
|
||||
with value, returned by getLength method.If they values are
|
||||
equals then test PASSED.
|
||||
Comments:
|
||||
<A name=3.4>3.4 Tests for method getURL of PlugletStreamInfo interface.
|
||||
Method description: This method used for access to stream's URL
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletStreamInfo_getURL
|
||||
Test Directory: PlugletStreamInfo_getURL
|
||||
Recent files:
|
||||
PlugletStreamInfo_getURL_0.java
|
||||
PlugletStreamInfo_getURL_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Java Script used to transfer file name, used in embed's src attribute.
|
||||
Pluglet use HTML_ROOT property(from CommonProperties) and src's file
|
||||
name to construct expected URL.Expected value compared with returned
|
||||
by getURL method and if they equals then test PASSED
|
||||
Comments:
|
||||
<A name=3.5>3.5 Tests for method isSeekable of PlugletStreamInfo interface.
|
||||
Method description:
|
||||
Method's state: always return true
|
||||
|
||||
Test ID: basic/api/PlugletStreamInfo_isSeekable
|
||||
Test Directory: PlugletStreamInfo_isSeekable
|
||||
Recent files:
|
||||
PlugletStreamInfo_isSeekable_0.java
|
||||
PlugletStreamInfo_isSeekable_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Now expected result specified via properties.For most streams
|
||||
seekable is false.Additional test should be added for another
|
||||
streams
|
||||
Comments:
|
||||
<A name=3.6>3.6 Tests for method requestRead of PlugletStreamInfo interface.
|
||||
Method description: This method allow to pluglet request data from stream
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletStreamInfo_requestRead:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletStreamInfo_requestRead
|
||||
Recent files:
|
||||
PlugletStreamInfo_requestRead_2.java
|
||||
PlugletStreamInfo_requestRead_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Not implemented
|
||||
Comments:
|
||||
<A name=4.>4. Methods of PlugletTagInfo interface
|
||||
|
||||
<A name=4.1>4.1 Tests for method getAttribute of PlugletTagInfo interface.
|
||||
Method description: This method used to get tag attributes
|
||||
Method's state: work
|
||||
|
||||
Test IDs: basic/api/PlugletTagInfo_getAttribute:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletTagInfo_getAttribute
|
||||
Recent files:
|
||||
PlugletTagInfo_getAttribute_2.java
|
||||
PlugletTagInfo_getAttribute_Iterator.java
|
||||
Arguments:
|
||||
String attrName
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Check implemeted via JavaScript function, that analyze embed or
|
||||
object tag node and transfer all tag's attributes to pluglet.
|
||||
Pluglet can verify they values and compare with returned by
|
||||
getAttribute.
|
||||
Comments:
|
||||
<A name=4.2>4.2 Tests for method getAttributes of PlugletTagInfo interface.
|
||||
Method description:
|
||||
This method allow to pluglet get all tag attributes.
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo_getAttributes
|
||||
Test Directory: PlugletTagInfo_getAttributes
|
||||
Recent files:
|
||||
PlugletTagInfo_getAttributes_0.java
|
||||
PlugletTagInfo_getAttributes_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Check implemeted via JavaScript function, that analyze embed or
|
||||
object tag node and transfer all tag's attributes to pluglet.
|
||||
Pluglet can verify they values and compare with returned by
|
||||
getAttributes.
|
||||
Comments:
|
||||
|
||||
|
||||
<A name=5.>5. Methods of PlugletTagInfo2 interface
|
||||
<A name=5.1>5.1 Tests for method getAlignment of PlugletTagInfo2 interface.
|
||||
Method description:
|
||||
Method's state: doesn't work
|
||||
|
||||
Test IDs: basic/api/PlugletTagInfo2_getAlignment
|
||||
Test Directory: PlugletTagInfo2_getAlignment
|
||||
Recent files:
|
||||
PlugletTagInfo2_getAlignment_0.java
|
||||
PlugletTagInfo2_getAlignment_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Not implemented.
|
||||
Comments:
|
||||
|
||||
<A name=5.2>5.2 Tests for method getAttribute of PlugletTagInfo2 interface.
|
||||
Method description: This method used to get tag attributes
|
||||
Method's state: work
|
||||
|
||||
Test IDs: basic/api/PlugletTagInfo2_getAttribute:n (where n integer, see BWTest.lst.ORIG for it values)
|
||||
Test Directory: PlugletTagInfo2_getAttribute
|
||||
Recent files:
|
||||
PlugletTagInfo2_getAttribute_2.java
|
||||
PlugletTagInfo2_getAttribute_Iterator.java
|
||||
Arguments:
|
||||
String attrName
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
Check implemeted via JavaScript function, that analyze embed or
|
||||
object tag node and transfer all tag's attributes to pluglet.
|
||||
Pluglet can verify they values and compare with returned by
|
||||
getAttribute.
|
||||
Comments:
|
||||
|
||||
<A name=5.3>5.3 Tests for method getAttributes of PlugletTagInfo2 interface.
|
||||
Method description:
|
||||
This method allow to pluglet get all tag attributes.
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getAttributes
|
||||
Test Directory: PlugletTagInfo2_getAttributes
|
||||
Recent files:
|
||||
PlugletTagInfo2_getAttributes_0.java
|
||||
PlugletTagInfo2_getAttributes_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Check implemeted via JavaScript function, that analyze embed or
|
||||
object tag node and transfer all tag's attributes to pluglet.
|
||||
Pluglet can verify they values and compare with returned by
|
||||
getAttributes.
|
||||
Comments:
|
||||
|
||||
<A name=5.4>5.4 Tests for method getBorderHorizSpace of PlugletTagInfo2 interface.
|
||||
Method description: This method used for access hspace attribute value
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getBorderHorizSpace
|
||||
Test Directory: PlugletTagInfo2_getBorderHorizSpace
|
||||
Recent files:
|
||||
PlugletTagInfo2_getBorderHorizSpace_0.java
|
||||
PlugletTagInfo2_getBorderHorizSpace_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test EMBED tag doesn't contains hspace attribute,
|
||||
so default value should be returned.
|
||||
Comments:
|
||||
Test ID: basic/api/PlugletTagInfo2_getBorderHorizSpace_1
|
||||
Test Directory: PlugletTagInfo2_getBorderHorizSpace_1
|
||||
Recent files:
|
||||
PlugletTagInfo2_getBorderHorizSpace_0.java
|
||||
PlugletTagInfo2_getBorderHorizSpace_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test tag EMBED has hspace attribute and it value
|
||||
transfered to pluglet via JavaScript.Then this value compared
|
||||
with returned by getBorderHorizSpace and if they equals then test PASSED
|
||||
Comments:
|
||||
|
||||
<A name=5.5>5.5 Tests for method getBorderVertSpace of PlugletTagInfo2 interface.
|
||||
Method description: This method used for access vspace attribute.
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getBorderVertSpace
|
||||
Test Directory: PlugletTagInfo2_getBorderVertSpace
|
||||
Recent files:
|
||||
PlugletTagInfo2_getBorderVertSpace_0.java
|
||||
PlugletTagInfo2_getBorderVertSpace_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
At this test EMBED tag doesn't contains vspace attribute,
|
||||
so default value should be returned.
|
||||
Comments:
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getBorderVertSpace_1
|
||||
Test Directory: PlugletTagInfo2_getBorderVertSpace_1
|
||||
Recent files:
|
||||
PlugletTagInfo2_getBorderVertSpace_0.java
|
||||
PlugletTagInfo2_getBorderVertSpace_Iterator.java
|
||||
Arguments:
|
||||
See ParamCombinations and TestParameters
|
||||
for argument's values.
|
||||
Check result:
|
||||
At this test tag EMBED has vspace attribute and it value
|
||||
transfered to pluglet via JavaScript.Then this value compared
|
||||
with returned by getBorderHorizSpace and if they equals then test PASSED
|
||||
Comments:
|
||||
|
||||
<A name=5.6>5.6 Tests for method getDocumentBase of PlugletTagInfo2 interface.
|
||||
Method description: Returns the URL of the document containing a pluglet instance
|
||||
Method's state: work
|
||||
|
||||
Test IDs: basic/api/PlugletTagInfo2_getDocumentBase
|
||||
Test Directory: PlugletTagInfo2_getDocumentBase
|
||||
Recent files:
|
||||
PlugletTagInfo2_getDocumentBase_0.java
|
||||
PlugletTagInfo2_getDocumentBase_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Check implemeted via JavaScriptfunction, that transfer
|
||||
window.location value from JavaScript to pluglet and
|
||||
compare it with value, returned by getDocumentBase.
|
||||
Comments:
|
||||
|
||||
<A name=5.7>5.7 Tests for method getDocumentEncoding of PlugletTagInfo2 interface.
|
||||
Method description: This method used to access document encoding
|
||||
Method's state: doesn't work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getDocumentEncoding
|
||||
Test Directory: PlugletTagInfo2_getDocumentEncoding
|
||||
Recent files:
|
||||
PlugletTagInfo2_getDocumentEncoding_0.java
|
||||
PlugletTagInfo2_getDocumentEncoding_Iterator.java
|
||||
Arguments: none
|
||||
Check result: Not implemented
|
||||
Comments:
|
||||
|
||||
<A name=5.8>5.8 Tests for method getHeight of PlugletTagInfo2 interface.
|
||||
Method description: This method used to access height attribute value
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getHeight
|
||||
Test Directory: PlugletTagInfo2_getHeight
|
||||
Recent files:
|
||||
PlugletTagInfo2_getHeight_0.java
|
||||
PlugletTagInfo2_getHeight_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test EMBED tag doesn't contains height attribute,
|
||||
so default value should be returned.
|
||||
Comments:
|
||||
Test ID: basic/api/PlugletTagInfo2_getHeight_1
|
||||
Test Directory: PlugletTagInfo2_getHeight_1
|
||||
Recent files:
|
||||
PlugletTagInfo2_getHeight_0.java
|
||||
PlugletTagInfo2_getHeight_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test tag EMBED has height attribute and it value
|
||||
transfered to pluglet via JavaScript.Then this value compared
|
||||
with returned by getHeight and if they equals then test PASSED
|
||||
Comments:
|
||||
<A name=5.9>5.9 Tests for method getTagText of PlugletTagInfo2 interface.
|
||||
Method description: This method used to access full html tag text
|
||||
Method's state: doesn't work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getTagText
|
||||
Test Directory: PlugletTagInfo2_getTagText
|
||||
Recent files:
|
||||
PlugletTagInfo2_getTagText_0.java
|
||||
PlugletTagInfo2_getTagText_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
Not implemented.
|
||||
Possible a good way to check result is JavaScript.
|
||||
Comments:
|
||||
|
||||
<A name=5.10>5.10 Tests for method getTagType of PlugletTagInfo2 interface.
|
||||
Method description:
|
||||
Returns the type of HTML tag used to instantiate this pluglet
|
||||
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getTagType
|
||||
Test Directory: PlugletTagInfo2_getTagType
|
||||
Recent files:
|
||||
PlugletTagInfo2_getTagType_0.java
|
||||
PlugletTagInfo2_getTagType_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test EMBED tag used to instantiate pluglet.The type
|
||||
of tag transfered to pluglet via JavaScript and then compared with
|
||||
returned by getTagType.If they equals then test PASSED.
|
||||
Comments:
|
||||
Test ID: basic/api/PlugletTagInfo2_getTagType_1
|
||||
Test Directory: PlugletTagInfo2_getTagType_1
|
||||
Recent files:
|
||||
PlugletTagInfo2_getTagType_0.java
|
||||
PlugletTagInfo2_getTagType_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test OBJECT tag used to instantiate pluglet.The type
|
||||
of tag transfered to pluglet via JavaScript and then compared with
|
||||
returned by getTagType.If they equals then test PASSED.
|
||||
Comments:
|
||||
<A name=5.11>5.11 Tests for method getUniqueID of PlugletTagInfo2 interface.
|
||||
Method description:
|
||||
This method returns unique ID of current document
|
||||
with this pluglet.
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getUniqueID
|
||||
Test Directory: PlugletTagInfo2_getUniqueID
|
||||
Recent files:
|
||||
PlugletTagInfo2_getUniqueID_0.java
|
||||
PlugletTagInfo2_getUniqueID_Iterator.java
|
||||
and IDPluglet pluglet.
|
||||
Arguments: none
|
||||
Check result:
|
||||
3 IDPluglet used to check results.All pluglets
|
||||
call getUniqueID method and transfer returned value
|
||||
to test pluglet.Test pluglet compare values
|
||||
and if they are equals then test PASSED.
|
||||
Comments:
|
||||
|
||||
<A name=5.12>5.12 Tests for method getWidth of PlugletTagInfo2 interface.
|
||||
Method description:
|
||||
Returns the value of width attribute of HTML tag used to instantiate this pluglet
|
||||
Method's state: work
|
||||
|
||||
Test ID: basic/api/PlugletTagInfo2_getWidth
|
||||
Test Directory: PlugletTagInfo2_getWidth
|
||||
Recent files:
|
||||
PlugletTagInfo2_getWidth_0.java
|
||||
PlugletTagInfo2_getWidth_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test EMBED tag hasn't width attribute.
|
||||
The default value of width attribute transfered to
|
||||
pluglet via JavaScript and then compared with
|
||||
returned by getWidth.If they equals then test PASSED.
|
||||
Comments:
|
||||
Test ID: basic/api/PlugletTagInfo2_getWidth_1
|
||||
Test Directory: PlugletTagInfo2_getWidth_1
|
||||
Recent files:
|
||||
PlugletTagInfo2_getWidth_0.java
|
||||
PlugletTagInfo2_getWidth_Iterator.java
|
||||
Arguments: none
|
||||
Check result:
|
||||
At this test EMBED tag used has width attribute.
|
||||
The value of width attribute transfered to
|
||||
pluglet via JavaScript and then compared with
|
||||
returned by getWidth.If they equals then test PASSED.
|
||||
Comments:
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Browser side Pluglet API tests
|
||||
</title>
|
||||
</head>
|
||||
<body bgcolor=White>
|
||||
<center><HR1>Browser side Pluglet API tests</HR1></center>
|
||||
<OL>
|
||||
<A href=#location><LI></A>Tests location.
|
||||
<A href=#struct><LI></A>Tests struct.
|
||||
<A href=#pre-build><LI></A>Pre-build requirements.
|
||||
<A href=#make><LI></A>Make instructions.
|
||||
<A href=#run><LI></A>Run API tests.
|
||||
<A href=#log><LI></A>Log files.
|
||||
<A href=description.html><LI></A>Testcase description.
|
||||
</OL>
|
||||
<OL>
|
||||
<A name=location><LI>Tests location:
|
||||
<UL>
|
||||
<LI>This document concerned tests in directory <B>src/org/mozilla/pluglet/test/basic/api</B><BR>
|
||||
at the your Pluglet tests location.
|
||||
</UL>
|
||||
<A name=struct>
|
||||
<LI>Tests struct:<BR>
|
||||
Test may contains the next files:
|
||||
<UL>
|
||||
<LI>Test java file - test execution and result verification code
|
||||
<LI>Arguments iterator java - code for read lst file and transfer arguments to TestContext
|
||||
</UL>
|
||||
And test dir with:
|
||||
<UL>
|
||||
<LI>TestProperties file - testcase properties, contains test, iterator and initial html file names
|
||||
<LI>TestParameters file - user/location specific parameters for test arguments
|
||||
<LI>ParamCombinations file - combinations of values for each argument.(for generate default lst file)
|
||||
<LI>TestArguments(.lst) file - list of all combinations of arguments (generated from ParamCombinations file)
|
||||
<LI>Misc HTML files - at least one html file with EMBED(or OBJECT) tag for instantiate pluglet and<BR>
|
||||
other html files needed for testcase.
|
||||
</UL>
|
||||
<I>- Each test contains Test and Iterator java files, TestProperties file and at least one HTML file</I><BR>
|
||||
<I>- TestParameters file exist only for tests with user/location specific parameters</I><BR>
|
||||
<I>- ParamCombinations exist only for tests on methods with arguments</I><BR>
|
||||
<I>- TestArguments(.lst) file created during make combinations from ParamCombinations file and<BR>
|
||||
  only for tests on methods with arguments.
|
||||
<div align=right><A href=#top>index</A></div>
|
||||
<A name=pre-build>
|
||||
<LI>Pre-build requirements:
|
||||
<UL>
|
||||
<LI>Build Mozilla and java plugins
|
||||
<LI>Edit <B>TEST_TOP_DIR/config/CommonProperties</B> to change user/location specific parameters, e.g <B>PLUGLET</B>,<B>HTML_ROOT</B> etc ..
|
||||
<LI>In each test dir edit TestParameters, if it exist(and you want to run this testcase)
|
||||
<LI>Set environment variable HTML_ROOT_DIR to directory on your local filesystem, where test HTMLs will be created
|
||||
<LI>Verify that <B>MOZILLA_FIVE_HOME/dist/classes</B> exist in your <B>CLASSPATH</B>
|
||||
<LI>Place <B>TEST_TOP_DIR/build/classes</B> in your <B>CLASSPATH</B>
|
||||
<LI>Performs make in top level directory <B>basic</B> and verify that TestLoaderPluglet.jar successfully created<BR>
|
||||
and placed to TEST_TOP_DIR/build/classes/org/mozilla/pluglet/test/basic</B><BR>
|
||||
<B>PLUGLET</B> property in <B>CommonProperties</B> should point to it.
|
||||
</UL>
|
||||
<div align=right><A href=#top>index</A></div>
|
||||
<A name=make>
|
||||
<LI>Make instructions:<BR>
|
||||
Top level makefile in the api directory has next targets:
|
||||
<UL>
|
||||
<LI>combinations - used for create BWTest.lst.ORIG for all api tests and generate
|
||||
default lst files for each test (if necessary) or just add test id to BWTest.lst.ORIG
|
||||
<LI>tests - make all in test dirs:<BR>
|
||||
- copy HTML files to HTML_ROOT_DIR/api/test_case_name directory<BR>
|
||||
- replace user/location specific parameters(from CommonProperties) in TestProperties file<BR>
|
||||
- copy TestProperties file to BUILD/test/test_id directory<BR>
|
||||
- replace user-defined parameters in the default lst file
|
||||
and copy it to BUILD/test/test_id directory (if necessary)<BR>
|
||||
<LI>test_pluglet - create jar with test classes
|
||||
<LI>classes - compile all java files in the api directory
|
||||
<LI>clobber - remove builded files:<BR>
|
||||
- remove HTML files from HTML_ROOT_DIR<BR>
|
||||
- remove TestProperties and .lst files from BUILD/test/test_id directory
|
||||
</UL>
|
||||
By default classes, tests and test_pluglet targets executed.<BR>
|
||||
NOTE:<BR>
|
||||
<I>You need to do combinations only one time, and
|
||||
only if you change ParamCombinations file for some
|
||||
tests or add new test cases</I><BR>
|
||||
Build sequence(Win):
|
||||
<UL>
|
||||
<LI>Performs all pre-build instructions.
|
||||
<LI>In the api directory type nmake -f makefile.win
|
||||
</UL>
|
||||
<div align=right><A href=#top>index</A></div>
|
||||
<A name=run>
|
||||
<LI>Run API tests.
|
||||
<UL>
|
||||
<LI>Performs all pre-build and build instructions
|
||||
<LI>For run all API tests copy <B>TEST_TOP_DIR/build/test/basic/api/BWTest.lst.ORIG</B> to
|
||||
the current directory and just type <B>perl autorun.pl</B>
|
||||
<LI>For run selected API tests copy some test IDs from BWTest.lst.ORIG
|
||||
to your custom file(for example custom.lst) and type <B>perl autorun.pl -f custom.lst</B>
|
||||
</UL>
|
||||
<div align=right><A href=#top>index</A></div>
|
||||
<A name=log>
|
||||
<LI>Log files:
|
||||
<UL>
|
||||
<LI>After tests execution all logs located in the <B>TEST_TOP_DIR/log</B> directory
|
||||
<LI>BWTestRun.log contains comments and results from test and test loader
|
||||
<LI>BWTestRun.txt contains status for each test, e.g. PASSED or FAILED
|
||||
<LI>File test_name.log contains Mozilla's output
|
||||
</UL>
|
||||
</OL>
|
||||
<div align=right><A href=#top>index</A></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,54 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Pluglet API automated tests</title>
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<center><H1>Pluglet API automated tests</H1></center>
|
||||
<H2>Table of contents.</H2>
|
||||
<pre>
|
||||
- <a href=test_draft.html>Preliminary specification</a>
|
||||
- <a href=#build>How to build</A>
|
||||
- <a href=#run>How to run</A>
|
||||
Documentation on test cases:
|
||||
- <a href=api/index.html>Browser side api tests </a>
|
||||
- <a href=scenario/scenario.html>Scenario tests </a>
|
||||
- <a href=security/index.html>Security tests </a>
|
||||
- <a href=params/params.html>Tests on passed in client side api parameters </a>
|
||||
- <a href=returns/returns.html>Tests on return values from client side api </a>
|
||||
<!-- - <a href= >Tests on calling browser side api from different threads </a>
|
||||
- <a href= > </a> -->
|
||||
|
||||
<A name=build>How to build.
|
||||
- setup environment for mozilla building and running
|
||||
- goto config directory and fill
|
||||
CommonProperties and set_env.bat files.
|
||||
(or set_env.sh in case of Unix build)
|
||||
- run the config/set_env.bat file
|
||||
(or source set_env.sh in case of Unix build)
|
||||
- goto src/org/mozilla/pluglet/test/basic/ directory
|
||||
and make with makefile in this directory
|
||||
|
||||
<A name=run>How to run.
|
||||
There is autorun.pl script to run test cases and BWTest.lst.ORIG
|
||||
with list of all test cases in src/org/mozilla/pluglet/test/basic/
|
||||
directory.
|
||||
To run all test cases in BWTest.lst.ORIG:
|
||||
|
||||
<B>perl autorun.pl</B>
|
||||
|
||||
It is possible to list required test cases in another file:
|
||||
|
||||
<B>perl autorun.pl -f <i>file_with_sub_list</i></B>
|
||||
|
||||
To run single test case:
|
||||
|
||||
<B>perl autorun.pl -t <i>test_case</i></B>
|
||||
|
||||
</pre>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,438 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Browser side pluglet API arguments partitioning.
|
||||
</title>
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<B>Table of contents</B>
|
||||
<OL>
|
||||
<LI><A href=#intro>Introduction</A>
|
||||
<LI><A href=#PM>PlugletManager interface</A>
|
||||
<LI><A href=#PP>PlugletPeer interface</A>
|
||||
<LI><A href=#PSI>PlugletStreamInfo interface</A>
|
||||
<LI><A href=#PTI>PlugletTagInfo</A>
|
||||
<LI><A href=#PTI2>PlugletTagInfo2</A>
|
||||
</OL>
|
||||
<A name=intro>
|
||||
Below the description of equivalence class partitioning of the browser side pluglet API.<br>
|
||||
This partitioning is based on:
|
||||
<UL>
|
||||
<LI> common partitioning for parameter of given type <BR>
|
||||
(for example <for_string>: null, 0 length, some arbitrary string)
|
||||
<LI>partitioning from point of view of functional sense of this parameter <BR>
|
||||
(for example <for_target>: <for_string>, "_self", "_parent", "_top", "_blank",
|
||||
non-existing and existing named target)
|
||||
</UL>
|
||||
Some commom set of parameters:
|
||||
<table border=1 bgcolor=#99E2EF>
|
||||
<tr><td><for_int></td><td> 0, (+-)MAX, some arbitrary value</td></tr>
|
||||
<tr><td><for_boolean></td><td> true, false</td></tr>
|
||||
<tr><td><for_string></td><td>null, non-null with 0 length, some arbitrary string</td></tr>
|
||||
<tr><td><for_target></td><td> <for_string>, "_self", "_parent", "_top", "_blank", non-existing and
|
||||
existing named target</td></tr>
|
||||
</table>
|
||||
<pre>
|
||||
Comment: <I>
|
||||
- for PlugletManager.getURL and especially for PlugletManager.postURL the number of
|
||||
possible combinations of parameters is very big, so the combinations with more than
|
||||
2 for getURL and 1 for postURL "incorrect" parameters will not be tested.
|
||||
- for methods with non-void return values should be modelled situations such that expected
|
||||
return values cover all significant classes from specified set of return values (
|
||||
for example for PlugletInstancePeer.getMode specified set of return values consist of
|
||||
only two values indicated embedded pluglet or full-page ( not of whole set of int values))
|
||||
- values of arguments for each test you can find in the ParamCombinations file in test dir
|
||||
</I>
|
||||
</pre>
|
||||
<a name=PM>
|
||||
<table BORDER=1 COLS=3 WIDTH=100% bgcolor=#99E2EF><!--#66FFFF-->
|
||||
<tr><td COLSPAN=3 align=center bgcolor=#58B5EF>Interface PlugletManager</td></tr>
|
||||
<tr>
|
||||
<td width=10% align=center>
|
||||
Method
|
||||
</td>
|
||||
<td width=20% align=center>
|
||||
Arguments
|
||||
</td>
|
||||
<td align=center>
|
||||
Values
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=7 width=10% align=center>public void getURL<!--(<BR>PlugletInstance plugletInst,<BR>
|
||||
URL url,<BR> String target,<BR>
|
||||
PlugletStreamListener streamListener,<BR>
|
||||
String altHost,<BR> URL referrer,<BR>
|
||||
boolean forceJSEnabled);</td>-->
|
||||
<td width=20%>PlugletInstance plugletInst</td>
|
||||
<td>null, this and other instance (when method is called inside the pluglet instance)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL url</td>
|
||||
<td>null, http, javascript, ftp, file(win32 & unix), gopher, news
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String target
|
||||
</td>
|
||||
<td><for_target>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PlugletStreamListener streamListener
|
||||
</td>
|
||||
<td>null, new listener and used
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String altHost
|
||||
</td>
|
||||
<td>null, the same as in url, other than in url, bad string(not ip address)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL refferer
|
||||
</td>
|
||||
<td>null, the url of this page - cases of http, javascript, ftp, file(although in
|
||||
last 3 cases there is not refferer)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>boolean forceJSEnabled
|
||||
</td>
|
||||
<td><for_boolean>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr>
|
||||
<td ROWSPAN=12 width=10% align=center>public void postURL<!--(<BR>
|
||||
PlugletInstance plugletInst,<BR>
|
||||
URL url,<BR>
|
||||
int postDataLen, <BR>
|
||||
byte[] postData,<BR>
|
||||
boolean isFile,<BR>
|
||||
String target,<BR>
|
||||
PlugletStreamListener streamListener,<BR>
|
||||
String altHost, <BR>
|
||||
URL referrer,<BR>
|
||||
boolean forceJSEnabled,<BR>
|
||||
int postHeadersLength, <BR>
|
||||
byte[] postHeaders);</td><BR>-->
|
||||
<td>PlugletInstance plugletInst</td>
|
||||
<td>null, this and other instance (when method is called inside the pluglet instance)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL url
|
||||
</td>
|
||||
<td>null, http, javascript, ftp, file(win32 & unix), news, mailto
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>int postDataLen
|
||||
</td>
|
||||
<td><for_int>, equal to actual length, less and great
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>byte[] postData
|
||||
</td>
|
||||
<td>null, 0 byte array, random array fulfiled and not, syntactically
|
||||
correct path + name of existing file and non-existent, also syntactically incorrect path
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>boolean isFile
|
||||
</td>
|
||||
<td><for_boolean>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String target
|
||||
</td>
|
||||
<td><for_target>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>PlugletStreamListener streamListener
|
||||
</td>
|
||||
<td>null, new listener and used
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String altHost
|
||||
</td>
|
||||
<td>null, the same as in url, other than in url, bad string(not ip address)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL referrer
|
||||
</td>
|
||||
<td>null, the url of this page - cases of http, javascript, ftp, file(although in
|
||||
last 3 cases there is not refferer)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>boolean forceJSEnabled
|
||||
</td>
|
||||
<td><for_boolean>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>int postHeadersLength
|
||||
</td>
|
||||
<td><for_int>, equal to actual length, less and great
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>byte[] postHeaders
|
||||
</td>
|
||||
<td>postHeaders
|
||||
null, 0 byte array, correctly formed headers (fulfiled array and not) and not
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public void reloadPluglets
|
||||
</td>
|
||||
<td>boolean reloadPages</td>
|
||||
<td><for_boolean></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String userAgent</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<A name=PP>
|
||||
<table BORDER=1 COLS=3 WIDTH=100% bgcolor=#99E2EF>
|
||||
<tr><td COLSPAN=3 align=center bgcolor=#58B5EF>Interface PlugletPeer</td></tr>
|
||||
<tr>
|
||||
<td width=10% align=center>
|
||||
Method
|
||||
</td>
|
||||
<td width=20% align=center>
|
||||
Arguments
|
||||
</td>
|
||||
<td align=center>
|
||||
Values
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getMIMEType</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getMode</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public PlugletTagInfo getTagInfo</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getValue</td>
|
||||
<td>int variable</td>
|
||||
<td><for_int>, PlugletInstancePeer.NETSCAPE_WINDOW, PlugletManager.APPCONTEXT,
|
||||
PlugletManager.DISPLAY</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=2 width=10% align=center>public OutputStream newStream</td>
|
||||
<td>String type</td>
|
||||
<td><for_string>, text/html, text/plain, image/gif, application/x-java-vm, incorrectly formed</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>String target
|
||||
</td>
|
||||
<td><for_target>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td ROWSPAN=2 width=10% align=center>public void setWindowSize</td>
|
||||
<td>int width</td>
|
||||
<td><for_int></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>int height
|
||||
</td>
|
||||
<td><for_int>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public void showStatus</td>
|
||||
<td>String message</td>
|
||||
<td><for_string></td>
|
||||
</tr>
|
||||
</table>
|
||||
<A name=PSI>
|
||||
<table BORDER=1 COLS=3 WIDTH=100% bgcolor=#99E2EF>
|
||||
<tr><td COLSPAN=3 align=center bgcolor=#58B5EF>Interface PlugletStreamInfo</td></tr>
|
||||
<tr>
|
||||
<td width=10% align=center>
|
||||
Method
|
||||
</td>
|
||||
<td width=20% align=center>
|
||||
Arguments
|
||||
</td>
|
||||
<td align=center>
|
||||
Values
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getContentType</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getLastModified</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getLength</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getURL</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public boolean isSeekable</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public void requestRead</td>
|
||||
<td>ByteRanges ranges</td>
|
||||
<td>null, non-null object with 0 ranges, with 1 range for each combination: <for_int> x <for_int>, with more than 1 range</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<A name=PTI>
|
||||
<table BORDER=1 COLS=3 WIDTH=100% bgcolor=#99E2EF>
|
||||
<tr><td COLSPAN=3 align=center bgcolor=#58B5EF>Interface PlugletTagInfo</td></tr>
|
||||
<tr>
|
||||
<td width=10% align=center>
|
||||
Method
|
||||
</td>
|
||||
<td width=20% align=center>
|
||||
Arguments
|
||||
</td>
|
||||
<td align=center>
|
||||
Values
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getAttribute</td>
|
||||
<td>String name</td>
|
||||
<td><for_string>, existing attribute name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public Properties getAttributes</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<A name=PTI2>
|
||||
<table BORDER=1 COLS=3 WIDTH=100% bgcolor=#99E2EF>
|
||||
<tr><td COLSPAN=3 align=center bgcolor=#58B5EF>Interface PlugletTagInfo2</td></tr>
|
||||
<tr>
|
||||
<td width=10% align=center>
|
||||
Method
|
||||
</td>
|
||||
<td width=20% align=center>
|
||||
Arguments
|
||||
</td>
|
||||
<td align=center>
|
||||
Values
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getAlignment</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getAttribute</td>
|
||||
<td>String name</td>
|
||||
<td><for_string>, existing attribute name</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public Properties getAttributes</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getBorderHorizSpace</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getBorderVertSpace</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getDocumentBase</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getDocumentEncoding</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getHeight</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getParameter</td>
|
||||
<td>String name</td>
|
||||
<td><for_string>, existing parameter name</td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public Properties getParameters</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getTagText</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public String getTagType</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getUniqueID</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ROWSPAN=1 width=10% align=center>public int getWidth</td>
|
||||
<td>none</td>
|
||||
<td>none</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Pluglets Test Plan
|
||||
</title>
|
||||
</head>
|
||||
<body bgcolor=white>
|
||||
<H1>Pluglet Tests:</H1>
|
||||
<UL>
|
||||
<LI><A href=manual.html>Manual Pluglet's tests</A>
|
||||
<LI><A href=automated.html>Automated Pluglet's tests</A>
|
||||
</UL>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,96 +0,0 @@
|
||||
<html>
|
||||
<body bgcolor=white>
|
||||
<center><H1>Manual Pluglets tests</H1></center>
|
||||
At start of your Pluglet test cycle you should verify that Pluglets are permitted to run,
|
||||
correctly loaded and rendered.<BR>
|
||||
<OL>
|
||||
<LI>Follow to <A href="http://www.mozilla.org/projects/blackwood/java-plugins/">instructions</A>
|
||||
and install Java Plugins.
|
||||
<LI>Build the <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/test>TestPluglet</A>
|
||||
<LI>Build the <A href="http://www.mozilla.org/projects/blackwood/java-plugins/#Demos">Pluglet demos</A>.
|
||||
<LI>Put JAR archieves with test pluglet and demos to the directory on your filesystem and point
|
||||
<B>PLUGLET</B> variable to this dir.
|
||||
<LI>Performs steps from following table for verify Pluglets behaviour.
|
||||
|
||||
<table border=1 BGCOLOR=white CELLPADDING=10>
|
||||
<tr>
|
||||
<td>
|
||||
Test Pluglet
|
||||
<OL>
|
||||
<LI>Load HTML document with <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/test/test.html>TestPluglet</A>
|
||||
</OL>
|
||||
</td>
|
||||
<td width=10%>
|
||||
<UL>
|
||||
<LI>Verify that pluglet loaded and window with List rendered.
|
||||
<LI>Load any other <A href=http://www.mozilla.org>page</A>, make <B>Back</B> and verify that
|
||||
pluglet rendered against.
|
||||
</UL>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
MediaPlayer
|
||||
<OL>
|
||||
<LI>Follow to instruction from MediaPlayer <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/examples/MediaPlayer/README>README</A>
|
||||
to correct media player installation.
|
||||
<LI>Load <B>play.html</B> from place, where your MediaPlayer example installed.
|
||||
</OL>
|
||||
</td>
|
||||
<td>
|
||||
<UL>
|
||||
<LI>Verify that player correctly loaded and works.
|
||||
</UL>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
PDF Viewer
|
||||
<OL>
|
||||
<LI>Follow to instruction from PDF Viewer <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/examples/pdf/README>README</A>
|
||||
to correct viewer installation.
|
||||
<LI>Load <B>pdf.html</B> from place, where your PDF Viewer example installed.
|
||||
</OL>
|
||||
</td>
|
||||
<td>
|
||||
<UL>
|
||||
<LI>Verify that viewer correctly loaded and works.
|
||||
</UL>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
RTF Viewer
|
||||
<OL>
|
||||
<LI>Load HTML document with <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/examples/rtf/view.html>RTF Viewer</A>
|
||||
</OL>
|
||||
</td>
|
||||
<td>
|
||||
<UL>
|
||||
<LI>Verify that example correctly displayed RTF Viewer <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/examples/rtf/README>README</A>.
|
||||
</UL>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
ZIP Viewer
|
||||
<OL>
|
||||
<LI>Follow to instruction from ZIP Viewer <A href=http://lxr.mozilla.org/mozilla/source/java/plugins/examples/zip/README>README</A>
|
||||
to correct viewer installation.
|
||||
<LI>Load <B>zip.html</B> from place, where your ZIP Viewer example installed.
|
||||
</OL>
|
||||
</td>
|
||||
<td>
|
||||
<UL>
|
||||
<LI>Verify that viewer correctly loaded and works.(Contents of ZipView.jar should be shown)
|
||||
</UL>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</OL>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,137 +0,0 @@
|
||||
<html>
|
||||
<title>Index of tests on passed in client side api simple parameters</title>
|
||||
<body bgcolor=white>
|
||||
<B>Index of tests on passed in client side api simple parameters</B><BR>
|
||||
(i.e not browser side objects, which is subject for browser side api tests)
|
||||
<OL>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_1>Pluglet_createPlugletInstance_mimeType_1</A>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_2>Pluglet_createPlugletInstance_mimeType_2</A>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_3>Pluglet_createPlugletInstance_mimeType_3</A>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_4>Pluglet_createPlugletInstance_mimeType_4</A>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_5>Pluglet_createPlugletInstance_mimeType_5</A>
|
||||
<LI><A href=#Pluglet_createPlugletInstance_mimeType_6>Pluglet_createPlugletInstance_mimeType_6</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_1>PlugletStreamListener_onDataAvailable_input_1</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_2>PlugletStreamListener_onDataAvailable_input_2</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_3>PlugletStreamListener_onDataAvailable_input_3</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_4>PlugletStreamListener_onDataAvailable_input_4</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_5>PlugletStreamListener_onDataAvailable_input_5</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_6>PlugletStreamListener_onDataAvailable_input_6</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_7>PlugletStreamListener_onDataAvailable_input_7</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_8>PlugletStreamListener_onDataAvailable_input_8</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_9>PlugletStreamListener_onDataAvailable_input_9</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_11>PlugletStreamListener_onDataAvailable_input_11</A>
|
||||
<LI><A href=#PlugletStreamListener_onDataAvailable_input_12>PlugletStreamListener_onDataAvailable_input_12</A>
|
||||
</OL>
|
||||
<pre>
|
||||
Pluglet.createPlugletInstance(String mimeType)
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_1>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_1
|
||||
The test on the mimetype "*"
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_2>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_2
|
||||
The test on the ordinary mimetype "application/x-pluglet-test-params"
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_3>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_3
|
||||
The test on the mimetype with attributes: "multipart/x-pluglet-test-params; boundary=Some_Boundary"
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_4>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_4
|
||||
The test on the non-correctly formed mimetype: "some_type"
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_5>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_5
|
||||
The test on case insensitivity: "MULTIPART/X-PLUGLET-TEST-PARAMS; boundary=Some_Boundary"
|
||||
|
||||
<A name=Pluglet_createPlugletInstance_mimeType_6>
|
||||
basic/params/Pluglet_createPlugletInstance_mimeType_6
|
||||
The test on passin in mimetype in the case when only SRC attribute
|
||||
is pointed.
|
||||
|
||||
|
||||
PlugletStreamListener.onDataAvailable(PlugletStreamInfo plugletInfo, InputStream input, int length)
|
||||
|
||||
- input
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_1>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_1
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method read(byte[],int,int)
|
||||
The data is read and compared with data from original
|
||||
file.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_2>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_2
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The test reads at first the amount of data less than just
|
||||
pushed length. On the next onDataAvailable calls it is
|
||||
supposed to read all other data. Currently
|
||||
the incorrectnesses of such behaviour isn't specified.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_3>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_3
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method read(byte[])
|
||||
The data is read and compared with data from original
|
||||
file.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_4>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_4
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method read()
|
||||
The data is read and compared with data from original
|
||||
file.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_5>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_5
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method skip(long)
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_6>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_6
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method close()
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_7>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_7
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method close()
|
||||
The test reads the first whole portion of the data, closes the stream and returns.
|
||||
Passed result will be registered only if after that the
|
||||
onStopBinding method will be called.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_8>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_8
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The mark-reset functionality is tested.
|
||||
The supporting of the mark-reset isn't specified so test is passed by default
|
||||
in case when stream doesn't supported this functionality.
|
||||
The testing is done with mark value less than just pushed length.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_9>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_9
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The non-supporting of mark-reset functionality is tested.
|
||||
The supporting of the mark-reset isn't specified so test is passed by default
|
||||
in case when stream supports this functionality.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_11>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_11
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method read(byte[],int,int)
|
||||
The test try to pass the null value as first parameter.
|
||||
The NullPointerException should be thrown.
|
||||
|
||||
<A name=PlugletStreamListener_onDataAvailable_input_12>
|
||||
basic/params/PlugletStreamListener_onDataAvailable_input_12
|
||||
Test for passed in onDataAvailable method 2d parameter (input)
|
||||
The goal is to check the correctnesses of its method read(byte[],int,int)
|
||||
The test try to pass the 0 value as third parameter.
|
||||
The 0 should be returned.
|
||||
|
||||
|
||||
|
||||
|
||||
</pre>
|
||||
</body>
|
||||
Reference in New Issue
Block a user