XBL 2.0 Test Suite

Conforms to XBL 2.0 Candidate Recommendation 16 March 2007.

Name Short Description Preconditions The XBL document
The name of the test Description The preconditions for the test case The XBL document, which tests the desired functionality.
Template test - apply-author-sheets + allow-selectors-through Coloring an xhtml file with the help of template. content / includes, div / id TC01.xhtml
Template test - basic test Template changes header text. - TC02.xhtml
Xbl test Test for xbl-element and possible error conditions. xbl
binding/element
template
TC03.xhtml
Binding test - extends Test for binding inheritence using extends-attribute binding/id
binding/element
binding/extends
template
inherited
TC04.xhtml
Binding test - extends chain Test for binding inheritence. Inheritence chain binding/id
binding/element
binding/extends
template
inherited
TC05.xhtml
Binding test - extends (another file) Test for bindings inheritance. Inherited binding in another document. binding/id
binding/element
binding/extends
template
inherited
TC06.xhtml TC06.xml
Binding test - element Test for attaching bindings to elements using element-attribute binding/element
template
TC07.xhtml
Process instruction test Test for attaching bindings using < ? xbl ?> processing instruction binding/element
template
< ? xbl ?>
TC08.xhtml TC08.xml
Content test Test for using the content-element binding/element
template
div
content
TC09.xhtml
Content test - includes Test for using the content-element with includes-attribute binding/element
template
div
content
content / includes
TC10.xhtml
Inherited test Test for specifying where the next inherited shadow tree is to be inserted (single inheritance). template, binding/extends, inherited TC11.xhtml
Inherited test - explicit inheritance chain Test for specifying where the next inherited shadow tree is to be inserted (explicit inheritance chain). template, binding/extends, inherited TC12.xhtml
Inherited test - implicit inheritance chain Test for specifying where the next inherited shadow tree is to be inserted (implicit inheritance chain). template, binding/extends, inherited TC13.xhtml
Div test - id/class A generic test to test the div element template, div (class and id attributes) TC14.xhtml
xbl:attr test Attribute forwarding with xbl:attr template, binding TC15.xhtml
xbl:text test Attribute forwarding with special value xbl:text template, binding, xbl:attr TC16.xhtml
Content test - locked Content attribute locked template, binding TC17.xhtml
Handler test - click-count Handler element's attribute click-count (filtering events) handlers, handler, handler / event TC18.xhtml
Handler test - default-action Handler element's attribute default-action (prevent default action execution) handlers, handler, handler / event TC19.xhtml
Template test - apply-author-sheets + allow-selectors-through Applying author style sheets to shadow content, allowing css selectors through from bound document to shadow content (cross-scope css) binding, template / apply-author-sheets, template / allow-selectors-through, div / class, content TC20.xhtml
Handler test - event Test for handler elements event attribute binding, handlers, handler / event TC21.xhtml
Handler test - button Test for handler elements button filter binding, handlers, handler / event, handler / button TC22.xhtml
Handler test - modifiers Test modifier keys handler/modifiers TC23.xhtml
Handler test - propagate Test the propagate attribute handler/propagate TC24.xhtml
Handler test - phase Test the phase attribute with value capture handler/phase TC25.xhtml
Attachment test - CSS Test binding attachment through CSS binding
template
TC26.xhtml
Attachment test - CSS (in another file) Test binding attachment through CSS from another file binding
template
TC27.xhtml
TC27.xml
TC27.css
Attachment test - addBinding() Test binding attachment through addBinding() method binding
template
handler
TC28.xhtml
Attachment test - addBinding() to element with previous bindings Test binding attachment through addBinding() method binding
template
handler
TC29.xhtml
Detachment test - removeBinding() Test binding detachment through removeBinding() method binding
template
handler
DOM: addBinding()
TC30.xhtml
Attachment test - addBinding() with inherited bindings. Test binding attachment through removeBinding() method in case where the added binding inherits from another binding. binding
template
handler
DOM: addBinding()
TC31.xhtml
Detachment test - removeBinding() with inherited bindings. Test binding detachment through removeBinding() method in case where the removed binding inherits from another binding. binding
template
handler
DOM: addBinding()
TC32.xhtml
Detachment test - removeBinding() while other bindings attached. Test binding detachment through removeBinding() method in case where there is also another binding attached. binding
template
handler
DOM: addBinding()
TC33.xhtml
Style test - inline style Test styles presented in bindings when using inline stylesheets. binding
template
resources
style
TC34.xhtml
Style test - external style (src) Test styles presented in bindings when using external stylesheets (loaded with src attribute). binding
template
resources
style/src
TC35.xhtml, TC35_1.css, TC35_2.css
Style test - media attribute Test styles presented in bindings when limiting loading of the stylesheets by using media queries. binding
resources
style/src
style/media
TC36.xhtml
Implementation test Test the implementation element binding TC37.xhtml
Event handler fire order test Test the event handler fire order. Event handlers must fire first on the most derived binding and then on its inherited binding, continuing all the way up the chains to the base binding. binding
handlers
TC38.xhtml
Handler filters: mutation events Test the handler filters for mutation events. Filters include attr-name, attr-change, new-value and prev-value binding
handlers
TC39.xhtml
Handler filters: text input event Test the handler filters for text input. binding
handlers
TC40.xhtml
Attachment and detachment test - CSS Test binding attachment and detachment through CSS. binding
template
handler/click-event
remove binding
TC41.xhtml
Script test - external script Test an external script specified by the src attribute script TC42.xhtml
apply-binding-sheets Content attribute apply-binding-sheets template, binding, resources, style TC43.xhtml
Handler test - trusted Test the trusted attribute Event triggering to X-Smiles, handler/trusted TC44.xhtml
Template test - coloring Coloring an xhtml file with the help of template. content / includes, div / id, resources / style (for css) TC45.xhtml
Template test - reordering Reordering an xhtml file with the help of template. content / includes, div / id, resources / style (for css) TC46.xhtml
Handler filters: key Try to catch different keys. handler TC47.xhtml
addBinding + handlers Add handler to content in final flattened tree handler, addBinding TC48.xhtml