search for: sample_list

Displaying 2 results from an estimated 2 matches for "sample_list".

Did you mean: example_list
2009 Mar 26
0
assert2-0.4.6 provides assert_xhtml, an alternative to assert_select
...} end end That assertion will fail if the outer <div class=''content''> tag does not exist, or if any inner <div class=''download''> does exist. The without! element respects your document layout. This assertion passes... assert_xhtml SAMPLE_LIST do ul{ li{ ul{ li ''Sales report'' without!{ li ''All Sales report criteria'' } } } } end ...even though the target document contains an <li>All Sales report criteria</li>: <ul style=''font-size: 18''>...
2009 Mar 12
0
assert_xhtml - test your HTML by example
...found at all - any node is found out of order The assertion does not fail if - nodes contain un-specified attributes - the DOM contains any un-specified tags (<html>, <div>, etc.) Here''s the assertion checking that a list appears in collating order: assert_xhtml SAMPLE_LIST do ul :style => ''font-size: 18'' do li ''model'' do li ''Billings criteria'' li ''Billings report'' li ''Sales report'' end end end The assert...