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:
9
mozilla/xpfe/browser/samples/collapsing.css
Normal file
9
mozilla/xpfe/browser/samples/collapsing.css
Normal file
@@ -0,0 +1,9 @@
|
||||
window[sitemode="hideAOL"] box#AOLBox
|
||||
{
|
||||
visibility:collapse;
|
||||
}
|
||||
|
||||
window[sitemode="hideNetcenter"] box#NetcenterBox
|
||||
{
|
||||
visibility:collapse;
|
||||
}
|
||||
47
mozilla/xpfe/browser/samples/collapsing.xul
Normal file
47
mozilla/xpfe/browser/samples/collapsing.xul
Normal 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>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user