<% # ======================================================================== # SC.View innerFrame Unit Test # # The innerFrame represents the frame less any padding or scroll bars. # It should update whenever the frame updates. Verify this. # # ======================================================================== %> <% content_for('final') do %> <% end %> <% # Create the views for the various use cases. %> <% content_for('page_javascript') do %> <% end %> <% content_for('body') do %>
<% view :case1, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case2, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case3, :class => 'case' do %> <%= view :child, :outlet => true, :inner_html => 'Child' %> <% end %>
<% view :case4, :class => 'case' do %> <% view :child, :outlet => true do %> <%= view :nested_child, :outlet => true, :inner_html => 'Nested' %> <% end %> <% end %>
<% view :case5, :class => 'case' do %> <% view :child, :outlet => true do %> <%= view :nested_child, :outlet => true, :inner_html => 'Nested' %> <% end %> <% end %>
<% view :case6, :class => 'case' do %> <% view :child, :outlet => true do %> <%= view :nested_child, :outlet => true, :inner_html => 'Nested' %> <% end %> <% end %>
<% end %>