Tests for collapsing of boxes.

git-svn-id: svn://10.0.0.236/trunk@45869 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tbogard%aol.net
1999-09-03 09:29:56 +00:00
parent 95b1e031f0
commit 61488b8cb3
3 changed files with 81 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
window[sitemode="hideAOL"] box#AOLBox
{
visibility:collapse;
}
window[sitemode="hideNetcenter"] box#NetcenterBox
{
visibility:collapse;
}

View File

@@ -0,0 +1,47 @@
<?xml version="1.0"?>
<?xml-stylesheet href="collapsing.css" type="text/css"?>
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
align="horizontal"
onload="onWindowLoad()">
<html:script>
function onWindowLoad() {
verifyControls();
}
function verifyControls() {
var aolSite = window.frames["AOLSite"];
var nsSite = window.frames["NetcenterSite"];
if(aolSite==null)
window.alert("Our AOL Frame isn't in the DOM!");
if(nsSite == null)
window.alert("Our Netcenter Frame isn't in the DOM!");
}
function cmdHideAOL(){
verifyControls();
window.document.getElementById("ShowSite").setAttribute("sitemode", "hideAOL");
verifyControls();
}
function cmdHideNetcenter() {
verifyControls();
window.document.getElementById("ShowSite").setAttribute("sitemode", "hideNetcenter");
verifyControls();
}
</html:script>
<broadcaster id="ShowSite" sitemode="hideNetcenter" />
<observes element="ShowSite" attribute="sitemode" />
<box align="vertical" id="AOLBox" flex="1">
<html:iframe flex="1" name="AOLSite" src="http://www.aol.com"/>
<html:input type="BUTTON" value="Show Netcenter" onclick="cmdHideAOL()"/>
</box>
<box align="vertical" id="NetcenterBox" flex="1">
<html:iframe flex="1" name="NetcenterSite" src="http://www.netscape.com"/>
<html:input type="BUTTON" value="Show AOL" onclick="cmdHideNetcenter()"/>
</box>
</window>

View File

@@ -22,27 +22,31 @@ DIRS=sampleimages
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) colorpicker.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimmaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimdialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparammaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparamdialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparamdialog.html $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexsimplemaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexsimpledialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexopenchrome.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) tab.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) collapsing.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) collapsing.css $(DIST)\bin\res\samples
$(MAKE_INSTALL) colorpicker.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimmaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexanimdialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparammaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparamdialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexparamdialog.html $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexsimplemaster.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexsimpledialog.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) dexopenchrome.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) tab.xul $(DIST)\bin\res\samples
$(MAKE_INSTALL) xpmenu.xul $(DIST)\bin\res\samples
clobber::
rm -f $(DIST)\res\samples\colorpicker.xul
rm -f $(DIST)\res\samples\dexanimmaster.xul
rm -f $(DIST)\res\samples\dexanimdialog.xul
rm -f $(DIST)\res\samples\dexparammaster.xul
rm -f $(DIST)\res\samples\dexparamdialog.xul
rm -f $(DIST)\res\samples\dexparamdialog.html
rm -f $(DIST)\res\samples\dexsimplemaster.xul
rm -f $(DIST)\res\samples\dexsimpledialog.xul
rm -f $(DIST)\res\samples\dexopenchrome.xul
rm -f $(DIST)\res\samples\tab.xul
rm -f $(DIST)\res\samples\xpmenu.xul
rm -f $(DIST)\res\samples\collapsing.xul
rm -f $(DIST)\res\samples\collapsing.css
rm -f $(DIST)\res\samples\colorpicker.xul
rm -f $(DIST)\res\samples\dexanimmaster.xul
rm -f $(DIST)\res\samples\dexanimdialog.xul
rm -f $(DIST)\res\samples\dexparammaster.xul
rm -f $(DIST)\res\samples\dexparamdialog.xul
rm -f $(DIST)\res\samples\dexparamdialog.html
rm -f $(DIST)\res\samples\dexsimplemaster.xul
rm -f $(DIST)\res\samples\dexsimpledialog.xul
rm -f $(DIST)\res\samples\dexopenchrome.xul
rm -f $(DIST)\res\samples\tab.xul
rm -f $(DIST)\res\samples\xpmenu.xul