30 |
diag $h1 if $debug; |
diag $h1 if $debug; |
31 |
like( $h1, qr|<div class="view">|, 'div view' ); |
like( $h1, qr|<div class="view">|, 'div view' ); |
32 |
|
|
33 |
$u->render_as('edit'); |
$u->_render_as('edit'); |
34 |
ok( my $h2 = $u->process(), 'process edit/div' ); |
ok( my $h2 = $u->process(), 'process edit/div' ); |
35 |
diag $h2 if $debug; |
diag $h2 if $debug; |
36 |
like( $h2, qr|<div class="editform">|, 'div editform' ); |
like( $h2, qr|<div class="editform">|, 'div editform' ); |
38 |
cmp_ok( $h1, 'ne', $h2, 'view and edit differs' ); |
cmp_ok( $h1, 'ne', $h2, 'view and edit differs' ); |
39 |
|
|
40 |
$u->_layout('table'); |
$u->_layout('table'); |
41 |
$u->render_as('view'); |
$u->_render_as('view'); |
42 |
ok( $h1 = $u->process(), 'process view/table' ); |
ok( $h1 = $u->process(), 'process view/table' ); |
43 |
diag $h1 if $debug; |
diag $h1 if $debug; |
44 |
like( $h1, qr|<tr>|, 'tr' ); |
like( $h1, qr|<tr>|, 'tr' ); |
45 |
|
|
46 |
$u->render_as('edit'); |
$u->_render_as('edit'); |
47 |
ok( $h2 = $u->process(), 'process edit/table' ); |
ok( $h2 = $u->process(), 'process edit/table' ); |
48 |
diag $h2 if $debug; |
diag $h2 if $debug; |
49 |
like( $h2, qr|<tr>|, 'tr' ); |
like( $h2, qr|<tr>|, 'tr' ); |
51 |
cmp_ok( $h1, 'ne', $h2, 'view and edit differs' ); |
cmp_ok( $h1, 'ne', $h2, 'view and edit differs' ); |
52 |
|
|
53 |
$u->_layout('columns'); |
$u->_layout('columns'); |
54 |
$u->render_as('view'); |
$u->_render_as('view'); |
55 |
ok( $h1 = $u->process(), 'process view/table' ); |
ok( $h1 = $u->process(), 'process view/table' ); |
56 |
diag $h1 if $debug; |
diag $h1 if $debug; |
57 |
like( $h1, qr|<tr>|, 'tr' ); |
like( $h1, qr|<tr>|, 'tr' ); |
58 |
|
|
59 |
$u->render_as('edit'); |
$u->_render_as('edit'); |
60 |
ok( $h2 = $u->process(), 'process edit/table' ); |
ok( $h2 = $u->process(), 'process edit/table' ); |
61 |
diag $h2 if $debug; |
diag $h2 if $debug; |
62 |
like( $h2, qr|<tr|, 'tr' ); |
like( $h2, qr|<tr|, 'tr' ); |