зеркало из https://github.com/mozilla/pjs.git
Adding XBL regression tests. Not part of build.
This commit is contained in:
Родитель
d513a1bca7
Коммит
38b0ce15e5
|
@ -0,0 +1,18 @@
|
|||
|
||||
#numberone {
|
||||
-moz-binding: url('insaneInsertion.xml#numberone');
|
||||
border: 1px solid blue;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#numbertwo {
|
||||
-moz-binding: url('insaneInsertion2.xml#numbertwo');
|
||||
border: 1px solid purple;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
text {
|
||||
border: 1px solid green;
|
||||
padding: 2px;
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="insaneBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="numberone">
|
||||
<content>
|
||||
<xul:text value="a"/>
|
||||
<xul:box id="numbertwo">
|
||||
<xul:checkbox label="b"/>
|
||||
<children/>
|
||||
<xul:text value="g"/>
|
||||
</xul:box>
|
||||
<xul:text value="i"/>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<?xml-stylesheet href="insaneInsertion.css"?>
|
||||
<?xml-stylesheet href="chrome://communicator/skin/"?>
|
||||
|
||||
<window id="insaneInsertion"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
orient="vertical" autostretch="never">
|
||||
<html>
|
||||
Below this text is a group of XUL widgets with the labels A-I. If
|
||||
the insertion code is behaving correctly, then the widgets will all be in alphabetical
|
||||
order. Clicking on the button labeled 'D' should cause an alert to pop up indicating
|
||||
that the button was clicked.
|
||||
</html>
|
||||
|
||||
<box id="numberone">
|
||||
<button label="d"/>
|
||||
<text value="f"/>
|
||||
</box>
|
||||
|
||||
</window>
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<bindings id="insaneBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
|
||||
<binding id="numbertwo">
|
||||
<content>
|
||||
<children/>
|
||||
<xul:text value="c"/>
|
||||
<children includes="button"/>
|
||||
<xul:text value="e"/>
|
||||
<children includes="text"/>
|
||||
<xul:text value="h"/>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
</bindings>
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче