зеркало из https://github.com/mozilla/gecko-dev.git
*** empty log message ***
This commit is contained in:
Родитель
dded5aac1d
Коммит
0d50455cde
|
@ -0,0 +1,47 @@
|
|||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletManager_getURL_1
|
||||
DEPTH=../../../../../../../..
|
||||
UTIL_DIR=$(DEPTH)/utils
|
||||
BUILD_DIR=$(DEPTH)/build
|
||||
CONFIG_FILE=$(DEPTH)/config/CommonProperties
|
||||
BASIC_PATH=test/basic/api
|
||||
DEST_DIR=$(BUILD_DIR)/$(BASIC_PATH)/$(TEST_NAME)
|
||||
MAKE_PARAM=perl ../makeParameters.pl
|
||||
MAKE_COMB=perl ../makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: html properties parameters
|
||||
html:
|
||||
@mkdir -p $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
@cp -f *.html $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
|
||||
properties:
|
||||
@mkdir -p $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)/configurator.pl $(CONFIG_FILE) $(DEST_DIR)/TestProperties TestProperties
|
||||
parameters:
|
||||
@$(MAKE_PARAM) TestParameters $(TEST_NAME).lst $(DEST_DIR)/$(TEST_NAME).lst
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)/$(COMMON_LST_FILE)
|
||||
clobber:
|
||||
@rm -f $(HTML_DEST_DIR)/$(TEST_NAME)/*.html
|
||||
@rm -f $(DEST_DIR)/$(TEST_NAME).lst
|
||||
@rm -f $(DEST_DIR)/TestProperties
|
|
@ -0,0 +1,10 @@
|
|||
0: this_PlugletInstance, null, null, null_streamListener, null, null, false
|
||||
1: this_PlugletInstance, null, _self, null_streamListener, null, null, false
|
||||
2: this_PlugletInstance, null, _parent, null_streamListener, null, null, false
|
||||
3: this_PlugletInstance, null, _top, null_streamListener, null, null, false
|
||||
4: this_PlugletInstance, HTTP_URL_FOR_GET, null, null_streamListener, null, null, false
|
||||
5: this_PlugletInstance, HTTP_URL_FOR_GET, _self, null_streamListener, null, null, false
|
||||
6: this_PlugletInstance, HTTP_URL_FOR_GET, _parent, null_streamListener, null, null, false
|
||||
7: this_PlugletInstance, HTTP_URL_FOR_GET, _top, null_streamListener, null, null, false
|
||||
8: this_PlugletInstance, HTTP_URL_FOR_GET, EXISTING_TARGET_FOR_GET, null_streamListener, null, null, false
|
||||
9: this_PlugletInstance, HTTP_URL_FOR_GET, NONEXISTING_TARGET_FOR_GET, null_streamListener, null, null, false
|
|
@ -0,0 +1,26 @@
|
|||
<html>
|
||||
<head>
|
||||
This HTML used for getURL call of PlugletManager
|
||||
<SCRIPT Language="JavaScript">
|
||||
<!--
|
||||
function registerResults()
|
||||
{
|
||||
var currentWindow = window.name;
|
||||
var isTop = (window.parent == window);
|
||||
Packages.org.mozilla.pluglet.test.basic.TestContext.printLog("JavaScript result:Current window = "
|
||||
+ currentWindow + ", isTop = " + isTop);
|
||||
Packages.org.mozilla.pluglet.test.basic.api.PlugletManaget_getURL_128.checkResult_target(currentWindow,isTop);
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="registerResults()">
|
||||
This is first line of this HTML<BR>
|
||||
<blockquote>
|
||||
PlugletManager_getURL test.
|
||||
Results will be passed to test via JavaScript.</blockquote>
|
||||
This is last line of this HTML<BR>
|
||||
</body>
|
||||
</hmtl>
|
||||
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<center><H1>Depth 1</H1></center>
|
||||
<blockquote>This window has a name "exist_target_for_get" that eguivalent a value specified
|
||||
in properties file. So it's really existing target for PlugletManager_getURL test</blockquote>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<center><H1>Depth 1</H1></center>
|
||||
<blockquote>This window contains a pluglet with PlugletManager_getURL test.</blockquote>
|
||||
<EMBED type="application/x-api-pluglet" name="test" width=100 height=100>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,48 @@
|
|||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletManager_getURL_2
|
||||
DEPTH=..\..\..\..\..\..\..\..
|
||||
UTIL_DIR=$(DEPTH)\utils
|
||||
BUILD_DIR=$(DEPTH)\build
|
||||
CONFIG_FILE=$(DEPTH)\config\CommonProperties
|
||||
BASIC_PATH=test\basic\api
|
||||
DEST_DIR=$(BUILD_DIR)\$(BASIC_PATH)\$(TEST_NAME)
|
||||
MAKE_PARAM=..\makeParameters.pl
|
||||
MAKE_COMB=..\makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: html properties parameters
|
||||
html:
|
||||
@xcopy *.html $(HTML_DEST_DIR)\$(TEST_NAME) /I
|
||||
|
||||
properties:
|
||||
@-1 mkdir $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)\configurator.pl $(CONFIG_FILE) $(DEST_DIR)\TestProperties TestProperties
|
||||
parameters:
|
||||
@$(MAKE_PARAM) TestParameters $(TEST_NAME).lst $(DEST_DIR)\$(TEST_NAME).lst
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)\$(BASIC_PATH)\BWTest.lst.ORIG
|
||||
clobber:
|
||||
@del $(HTML_DEST_DIR)\$(TEST_NAME)\*.html
|
||||
@del $(DEST_DIR)\$(TEST_NAME).lst
|
||||
@del $(DEST_DIR)\TestProperties
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<body>
|
||||
<applet code=DelApp.class width=1 height=1>
|
||||
<PARAM name=PROPS_FILE_NAME value=TestProperties>
|
||||
<PARAM name=NEXT_HTML value=PlugletManager_reloadPluglets.html>
|
||||
</applet>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,71 @@
|
|||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletManager_reloadPluglets
|
||||
DEPTH=../../../../../../../..
|
||||
#DEPTH1 used to build in the subdirectories, e.g SecondPluglet and deleteApplet
|
||||
DEPTH1=../../../../../../../../..
|
||||
UTIL_DIR=$(DEPTH)/utils
|
||||
BUILD_DIR=$(DEPTH)/build
|
||||
CONFIG_FILE=$(DEPTH)/config/CommonProperties
|
||||
BASIC_PATH=test/basic/api
|
||||
CLASSPATH=$(MOZILLA_FIVE_HOME)/../classes:$(DEPTH1)/build/classes
|
||||
DEST_DIR=$(BUILD_DIR)/$(BASIC_PATH)/$(TEST_NAME)
|
||||
MAKE_PARAM=perl ../makeParameters.pl
|
||||
MAKE_COMB=perl ../makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: second_pluglet delApplet html properties parameters data_files
|
||||
html:
|
||||
@mkdir -p $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
@cp -f *.html $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
@cp -f deleteApplet/*.html $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
|
||||
second_pluglet:
|
||||
@cd SecondPluglet; \
|
||||
$(JDKHOME)/bin/javac -classpath $(CLASSPATH) *.java; \
|
||||
$(JDKHOME)/bin/jar cvfm SecondPluglet.jar manifest *.class
|
||||
delApplet:
|
||||
@cd deleteApplet; \
|
||||
$(JDKHOME)/bin/javac -classpath $(CLASSPATH) DelApp.java
|
||||
properties:
|
||||
@mkdir -p $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)/configurator.pl $(CONFIG_FILE) $(DEST_DIR)/TestProperties TestProperties
|
||||
#We need to do it for rm -feteApplet
|
||||
@cp -f TestProperties $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
parameters:
|
||||
@cp -f $(TEST_NAME).lst $(DEST_DIR)
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)/$(COMMON_LST_FILE)
|
||||
#Copy second pluglet jar in parameters dir
|
||||
#Note, that this jar file will be copied in $PLUGLET dir by test pluglet before execution
|
||||
#of reload pluglets.
|
||||
data_files:
|
||||
@cp -f SecondPluglet/SecondPluglet.jar $(DEST_DIR)
|
||||
@cp -f deleteApplet/DelApp.class $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
clobber:
|
||||
@if [ -e $(HTML_DEST_DIR)/$(TEST_NAME) ]; then \
|
||||
rm -f $(HTML_DEST_DIR)/$(TEST_NAME)/* ; \
|
||||
fi
|
||||
@if [ -e $(DEST_DIR) ]; then \
|
||||
rm -f $(DEST_DIR)/* ; \
|
||||
fi
|
||||
@rm -f SecondPluglet/SecondPluglet.jar
|
||||
@rm -f SecondPluglet/*.class
|
|
@ -0,0 +1 @@
|
|||
true'0, false'0
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<frameset rows=100,*>
|
||||
<frame src=PlugletManager_reloadPluglets_head.html>
|
||||
<frameset cols=*,*>
|
||||
<frame src=DelApp.html>
|
||||
<frame src=PlugletManager_reloadPluglets_empty.html name=pluglet_frame>
|
||||
</frameset>
|
||||
</frameset>
|
||||
</hmtl>
|
|
@ -0,0 +1,2 @@
|
|||
0: true
|
||||
1: false
|
|
@ -0,0 +1,7 @@
|
|||
<html>
|
||||
<body>
|
||||
<blockquote>
|
||||
This page is empty, pluglet should be loaded here.
|
||||
</blockquote>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,10 @@
|
|||
<html>
|
||||
<body>
|
||||
<center><H1>Depth 0</H1></center>
|
||||
<blockquote>This widow contains a frameset with empty frame and DelApp applet.
|
||||
Aftre removing second jar file test pluglet will be loaded to empty window.
|
||||
</blockquote>
|
||||
<BR>
|
||||
<B>PS.</B>We should use this scheme!(Mozilla's JVM bug now causes JVM to suspend in some cases)
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,23 @@
|
|||
<html>
|
||||
<head>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
function doSecondPluglet(changeTo)
|
||||
{
|
||||
var currentLocation = new String(window.location);
|
||||
var newLocation = "";
|
||||
var fieldArr = currentLocation.split("/");
|
||||
for (var j=0; j< fieldArr.length - 1 ;j++) {
|
||||
newLocation += fieldArr[j] + "/";
|
||||
}
|
||||
window.location=newLocation + changeTo
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad=window.setTimeout("doSecondPluglet('SecondPluglet.html')",5000)>
|
||||
<center><H1>Depth 0</H1></center>
|
||||
<blockquote>This window contains a pluglet with PlugletManager_reloadPluglets test.</blockquote>
|
||||
<EMBED type="application/x-api-pluglet" name="test" width=100 height=100>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,18 @@
|
|||
PlugletManager_reloadPluglets Information.
|
||||
|
||||
Test name: PlugletManager_reloadPluglets
|
||||
|
||||
Synopsis: reloadPluglets method of class PlugletManager
|
||||
|
||||
Pre-Conditions: Build mozilla, setup enviroment as for running mozilla
|
||||
and see api tests README for setup enviroment for run tests.
|
||||
|
||||
Description: This test call the reloadPluglets method of the PlugletManager object
|
||||
at runstages, specified at TestProperties file. With parameters,
|
||||
specified in PlugletManager_reloadPluglets.lst file. Each line in PlugletManager_reloadPluglets.lst file describes
|
||||
one test of this method. See the test number and corresponding
|
||||
line in LST file for viewing partameters of you test.
|
||||
|
||||
Results: See the PlugletTest.log and PlugletTest.res in
|
||||
the $MOZILLA_FIVE_HOME/bin directory and additional logs in the
|
||||
PLUGLET_TEST_DIR/log directory
|
|
@ -0,0 +1,9 @@
|
|||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<center><H1>Depth 0</H1></center>
|
||||
<blockquote>This window contains a pluglet with type application/x-second-pluglet test.</blockquote>
|
||||
<EMBED type="application/x-second-pluglet" name="test" width=100 height=100>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,9 @@
|
|||
RUN_STAGES=PLUGLET_INSTANCE_INITIALIZE
|
||||
TEST_CLASS=org.mozilla.pluglet.test.basic.api.PlugletManager_reloadPluglets_2
|
||||
ITERATOR_CLASS=org.mozilla.pluglet.test.basic.api.PlugletManager_reloadPluglets_Iterator
|
||||
TEST_HTML=api/PlugletManager_reloadPluglets/PlugletManager_reloadPluglets.html
|
||||
PLUGLET_DIR=c:\\home\\avm\\pl_test\\build\\classes\\org\\mozilla\\pluglet\\test\\basic
|
||||
TEST_DIR=c:\\home\\avm\\pl_test\\build\\test\\basic\\api\\PlugletManager_reloadPluglets
|
||||
SECOND_PLUGLET_FILE=SecondPluglet.jar
|
||||
LST_FILE_NAME=PlugletManager_reloadPluglets.lst.TEMP
|
||||
PLUGLET=<TEST_TOP_DIR><FSEP>build<FSEP>classes<FSEP>org<FSEP>mozilla<FSEP>pluglet<FSEP>test<FSEP>basic<FSEP>api<FSEP>TestAPIPluglet.jar
|
|
@ -0,0 +1,13 @@
|
|||
<html>
|
||||
<body>
|
||||
<blockqute>
|
||||
This page used to delete second jar file.
|
||||
Applet DelApp used for this action , so you must grant permisions for it in file .java.policy
|
||||
</blockquote>
|
||||
<OBJECT declare codetype="application/java" classid="java:DelApp.class">
|
||||
<PARAM name=PROPS_FILE_NAME value=TestProperties>
|
||||
<PARAM name=NEXT_HTML value=PlugletManager_reloadPluglets_pluglet.html>
|
||||
<PARAM name=NEXT_HTML_TARGET value=pluglet_frame>
|
||||
</OBJECT>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,89 @@
|
|||
/*
|
||||
* The contents of this file are subject to the Mozilla 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/MPL/
|
||||
*
|
||||
* 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 Sun Microsystems,
|
||||
* Inc. Portions created by Sun are
|
||||
* Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
import java.applet.Applet; //Applet
|
||||
import java.io.*;
|
||||
import java.net.URL;
|
||||
import java.util.Properties;
|
||||
|
||||
public class DelApp extends Applet
|
||||
{
|
||||
private File secondPluglet = null;
|
||||
private URL nextHTML = null;
|
||||
private String target = null;
|
||||
public void init()
|
||||
{
|
||||
String codeBase = getCodeBase().toString();
|
||||
String fileName = getParameter("PROPS_FILE_NAME");
|
||||
String htmlName = getParameter("NEXT_HTML");
|
||||
target = getParameter("NEXT_HTML_TARGET");
|
||||
if ((fileName == null)||(htmlName == null)||(target == null)) {
|
||||
printLog("PROPS_FILE_NAME or NEXT_HTML or NEXT_HTML_TARGET parameter not specified for APPLET!");
|
||||
return;
|
||||
}
|
||||
Properties pProps = new Properties();
|
||||
try {
|
||||
nextHTML = new URL(codeBase + "/" + htmlName);
|
||||
URL propsURL = new URL(codeBase + "/" + fileName);
|
||||
pProps.load(propsURL.openStream());
|
||||
} catch(Exception e) {
|
||||
printLog("Exception " + e + " ocurred during applet initialization");
|
||||
return;
|
||||
}
|
||||
String pDir = pProps.getProperty("PLUGLET_DIR",null);
|
||||
String pName = pProps.getProperty("SECOND_PLUGLET_FILE",null);
|
||||
String separator = System.getProperty("file.separator");
|
||||
if ((pDir == null)||(pName == null)) {
|
||||
printLog("PLUGLET_DIR or SECOND_PLUGLET_FILE properties not initialized");
|
||||
return;
|
||||
}
|
||||
secondPluglet = new File(pDir + separator + pName);
|
||||
}
|
||||
public void start()
|
||||
{
|
||||
if (!secondPluglet.exists()) {
|
||||
printLog("File " + secondPluglet + " not exist, nothing to do.");
|
||||
nextURL();
|
||||
return;
|
||||
}
|
||||
if (!secondPluglet.delete()) {
|
||||
printLog("Can't delete " + secondPluglet);
|
||||
return;
|
||||
} else {
|
||||
printLog("File: " + secondPluglet + " succesfully deleted");
|
||||
}
|
||||
nextURL();
|
||||
}
|
||||
private void nextURL()
|
||||
{
|
||||
printLog("Going to the next URL: " + nextHTML);
|
||||
getAppletContext().showDocument(nextHTML,target);
|
||||
}
|
||||
private void printLog(String msg)
|
||||
{
|
||||
org.mozilla.pluglet.test.basic.api.PlugletManager_reloadPluglets_2.msgVect.addElement(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletManager_reloadPluglets
|
||||
DEPTH=..\..\..\..\..\..\..\..
|
||||
#DEPTH1 used to build in the subdirectories, e.g SecondPluglet and deleteApplet
|
||||
DEPTH1=..\..\..\..\..\..\..\..\..
|
||||
UTIL_DIR=$(DEPTH)\utils
|
||||
BUILD_DIR=$(DEPTH)\build
|
||||
CONFIG_FILE=$(DEPTH)\config\CommonProperties
|
||||
BASIC_PATH=test\basic\api
|
||||
CLASSPATH1=$(DEPTH1)\build\classes;$(CLASSPATH)
|
||||
DEST_DIR=$(BUILD_DIR)\$(BASIC_PATH)\$(TEST_NAME)
|
||||
MAKE_PARAM=..\makeParameters.pl
|
||||
MAKE_COMB=..\makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: second_pluglet delApplet html properties parameters data_files
|
||||
html:
|
||||
@xcopy *.html $(HTML_DEST_DIR)\$(TEST_NAME) /I
|
||||
@xcopy deleteApplet\*.html $(HTML_DEST_DIR)\$(TEST_NAME) /I
|
||||
|
||||
second_pluglet:
|
||||
@cd SecondPluglet
|
||||
$(JDKHOME)\bin\javac -classpath $(CLASSPATH1) *.java
|
||||
@$(JDKHOME)\bin\jar cvfm SecondPluglet.jar manifest *.class
|
||||
@cd ..
|
||||
delApplet:
|
||||
@cd deleteApplet
|
||||
$(JDKHOME)\bin\javac -classpath $(CLASSPATH1) DelApp.java
|
||||
@cd ..
|
||||
properties:
|
||||
@-1 mkdir $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)\configurator.pl $(CONFIG_FILE) $(DEST_DIR)\TestProperties TestProperties
|
||||
#We need to do it for deleteApplet
|
||||
@xcopy TestProperties $(HTML_DEST_DIR)\$(TEST_NAME)
|
||||
parameters:
|
||||
@xcopy $(TEST_NAME).lst $(DEST_DIR)
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)\$(BASIC_PATH)\BWTest.lst.ORIG
|
||||
#Copy second pluglet jar in parameters dir
|
||||
#Note, that this jar file will be copied in $PLUGLET dir by test pluglet before execution
|
||||
#of reload pluglets.
|
||||
data_files:
|
||||
@xcopy SecondPluglet\SecondPluglet.jar $(DEST_DIR)
|
||||
@xcopy deleteApplet\DelApp.class $(HTML_DEST_DIR)\$(TEST_NAME)
|
||||
clobber:
|
||||
@del $(HTML_DEST_DIR)\$(TEST_NAME)\*.html
|
||||
@del $(HTML_DEST_DIR)\$(TEST_NAME)\*.class
|
||||
@del $(DEST_DIR)\$(TEST_NAME).lst
|
||||
@del $(DEST_DIR)\TestProperties
|
||||
@del $(DEST_DIR)\SecondPluglet.jar
|
||||
@del SecondPluglet\SecondPluglet.jar
|
||||
@del SecondPluglet\*.class
|
|
@ -0,0 +1,50 @@
|
|||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletPeer_setWindowSize
|
||||
DEPTH=../../../../../../../..
|
||||
UTIL_DIR=$(DEPTH)/utils
|
||||
BUILD_DIR=$(DEPTH)/build
|
||||
CONFIG_FILE=$(DEPTH)/config/CommonProperties
|
||||
BASIC_PATH=test/basic/api
|
||||
DEST_DIR=$(BUILD_DIR)/$(BASIC_PATH)/$(TEST_NAME)
|
||||
MAKE_PARAM=perl ../makeParameters.pl
|
||||
MAKE_COMB=perl ../makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: html properties parameters
|
||||
html:
|
||||
@mkdir -p $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
@cp -f *.html $(HTML_DEST_DIR)/$(TEST_NAME)
|
||||
|
||||
properties:
|
||||
@mkdir -p $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)/configurator.pl $(CONFIG_FILE) $(DEST_DIR)/TestProperties TestProperties
|
||||
parameters:
|
||||
@$(MAKE_PARAM) TestParameters $(TEST_NAME).lst $(DEST_DIR)/$(TEST_NAME).lst
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)/$(COMMON_LST_FILE)
|
||||
clobber:
|
||||
@if [ -e $(HTML_DEST_DIR)/$(TEST_NAME) ]; then \
|
||||
rm -f $(HTML_DEST_DIR)/$(TEST_NAME)/* ; \
|
||||
fi
|
||||
@if [ -e $(DEST_DIR) ]; then \
|
||||
rm -f $(DEST_DIR)/* ; \
|
||||
fi
|
|
@ -0,0 +1,3 @@
|
|||
NORMAL_WINDOW_SIZE_X'0, 0'1, Integer.MIN_VALUE'1, Integer.MAX_VALUE'1
|
||||
NORMAL_WINDOW_SIZE_Y'0, 0'1, Integer.MIN_VALUE'1, Integer.MAX_VALUE'1
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<html>
|
||||
<head>
|
||||
<script language="JavaScript">
|
||||
<!--
|
||||
var iID;
|
||||
|
||||
function init(timeout)
|
||||
{
|
||||
currentX=window.outerHeight;
|
||||
currentY=window.outerWidth;
|
||||
iId = window.setInterval('verifySize()',timeout);
|
||||
}
|
||||
function verifySize()
|
||||
{
|
||||
java.lang.System.err.println("Verify ..");
|
||||
if (Packages.org.mozilla.pluglet.test.basic.api.PlugletPeer_setWindowSize_9.actionPerformed) {
|
||||
window.setTimeout('doWork()',1000);
|
||||
window.clearInterval(iId);
|
||||
}
|
||||
}
|
||||
function doWork()
|
||||
{
|
||||
currentX=window.outerHeight;
|
||||
currentY=window.outerWidth;
|
||||
Packages.org.mozilla.pluglet.test.basic.api.PlugletPeer_setWindowSize_9.verifySize(currentX,currentY);
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad=init(1000)>
|
||||
<center><H1>Depth 0</H1></center>
|
||||
<blockquote>This window contains a pluglet with PlugletPeer_setWindowSize test.</blockquote>
|
||||
<center><EMBED type="application/x-api-pluglet" name="test" width=100 height=100></center>
|
||||
<blockquote>The test result's will be passed to pluglet by JavaScript</blockquote>
|
||||
</body>
|
||||
</hmtl>
|
|
@ -0,0 +1,7 @@
|
|||
0: NORMAL_WINDOW_SIZE_X, NORMAL_WINDOW_SIZE_Y
|
||||
1: NORMAL_WINDOW_SIZE_X, 0
|
||||
2: NORMAL_WINDOW_SIZE_X, Integer.MIN_VALUE
|
||||
3: NORMAL_WINDOW_SIZE_X, Integer.MAX_VALUE
|
||||
4: 0, NORMAL_WINDOW_SIZE_Y
|
||||
5: Integer.MIN_VALUE, NORMAL_WINDOW_SIZE_Y
|
||||
6: Integer.MAX_VALUE, NORMAL_WINDOW_SIZE_Y
|
|
@ -0,0 +1,2 @@
|
|||
NORMAL_WINDOW_SIZE_X=500
|
||||
NORMAL_WINDOW_SIZE_Y=600
|
|
@ -0,0 +1,6 @@
|
|||
RUN_STAGES=PLUGLET_INSTANCE_INITIALIZE
|
||||
TEST_CLASS=org.mozilla.pluglet.test.basic.api.PlugletPeer_setWindowSize_9
|
||||
ITERATOR_CLASS=org.mozilla.pluglet.test.basic.api.PlugletPeer_setWindowSize_Iterator
|
||||
TEST_HTML=api/PlugletPeer_setWindowSize/PlugletPeer_setWindowSize.html
|
||||
LST_FILE_NAME=PlugletPeer_setWindowSize.lst.TEMP
|
||||
PLUGLET=<TEST_TOP_DIR><FSEP>build<FSEP>classes<FSEP>org<FSEP>mozilla<FSEP>pluglet<FSEP>test<FSEP>basic<FSEP>api<FSEP>TestAPIPluglet.jar
|
|
@ -0,0 +1,48 @@
|
|||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla 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/MPL/
|
||||
#
|
||||
# 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 Sun Microsystems,
|
||||
# Inc. Portions created by Sun are
|
||||
# Copyright (C) 1999 Sun Microsystems, Inc. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
|
||||
TEST_NAME=PlugletPeer_setWindowSize
|
||||
DEPTH=..\..\..\..\..\..\..\..
|
||||
UTIL_DIR=$(DEPTH)\utils
|
||||
BUILD_DIR=$(DEPTH)\build
|
||||
CONFIG_FILE=$(DEPTH)\config\CommonProperties
|
||||
BASIC_PATH=test\basic\api
|
||||
DEST_DIR=$(BUILD_DIR)\$(BASIC_PATH)\$(TEST_NAME)
|
||||
MAKE_PARAM=..\makeParameters.pl
|
||||
MAKE_COMB=..\makeCombinations.pl
|
||||
|
||||
default: all
|
||||
all: html properties parameters
|
||||
html:
|
||||
@xcopy *.html $(HTML_DEST_DIR)\$(TEST_NAME) /I
|
||||
|
||||
properties:
|
||||
@-1 mkdir $(DEST_DIR)
|
||||
@perl $(UTIL_DIR)\configurator.pl $(CONFIG_FILE) $(DEST_DIR)\TestProperties TestProperties
|
||||
parameters:
|
||||
@$(MAKE_PARAM) TestParameters $(TEST_NAME).lst $(DEST_DIR)\$(TEST_NAME).lst
|
||||
combinations:
|
||||
@$(MAKE_COMB) ParamCombinations $(TEST_NAME).lst $(BUILD_DIR)\$(BASIC_PATH)\BWTest.lst.ORIG
|
||||
clobber:
|
||||
@del $(HTML_DEST_DIR)\$(TEST_NAME)\*.html
|
||||
@del $(DEST_DIR)\$(TEST_NAME).lst
|
||||
@del $(DEST_DIR)\TestProperties
|
Загрузка…
Ссылка в новой задаче