<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 Given t(/^the dialog &quot;([^\&quot;]*)&quot; is visible$/) do |name|
-  dialog(name)  
+  container.set dialog(name)
 end
 
 Given t(/^the dialog &quot;([^\&quot;]*)&quot; is the container$/) do |name|</diff>
      <filename>lib/swinger/step_definitions/dialog_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 Given t(/^the (internal )*frame &quot;([^\&quot;]*)&quot; is visible$/) do |internal, name|
-  frame(name, internal)
+  container.set frame(name, internal)
 end
 
 Given t(/^the (internal )*frame &quot;([^\&quot;]*)&quot; is the container$/) do |internal, name|
@@ -8,7 +8,8 @@ end
 
 When t(/^I activate the (internal )*frame &quot;([^\&quot;]*)&quot;$/) do |internal, name|
   method = internal ? [ :set_selected, true ] : [ :activate ]
-  frame(name, internal).send(*method)
+  frame = frame(name, internal)
+  frame.send(*method)
 end
 
 Then t(/^the (internal )*frame &quot;([^\&quot;]*)&quot; should be active$/) do |internal, name|</diff>
      <filename>lib/swinger/step_definitions/frame_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,7 @@
+Given t(/^the tab &quot;([^\&quot;]*)&quot; is visible$/) do |name|
+  container.set tab(name)
+end
+
 Given t(/^the tab &quot;([^\&quot;]*)&quot; is the container$/) do |name|
   container.set tab(name)
 end</diff>
      <filename>lib/swinger/step_definitions/tab_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,17 +1,17 @@
 Feature: Buttons locators and events
 
   Scenario: Button clicking
-    Given the frame &quot;SwingSet&quot; is the container
-    And the toolbar button &quot;#2&quot; is selected
-    And the tab &quot;Button Demo&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
+      And the toolbar button &quot;#2&quot; is selected
+      And the tab &quot;Button Demo&quot; is visible
     When I click the button &quot;One&quot;
     When I click the button &quot;Two&quot;
     When I click the button &quot;Three!&quot;
   
   Scenario Outline: Button clicking with index
-    Given the frame &quot;SwingSet&quot; is the container
-    And the toolbar button &quot;#2&quot; is selected
-    And the tab &quot;Button Demo&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
+      And the toolbar button &quot;#2&quot; is selected
+      And the tab &quot;Button Demo&quot; is visible
     When I click the button &quot;#&lt;button&gt;&quot;
     Examples:
       | button |</diff>
      <filename>test/features/button.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 Feature: Checkbox locators and events
 
   Background:
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;#2&quot; is selected
-      And the tab &quot;Button Demo&quot; is the container
+      And the tab &quot;Button Demo&quot; is visible
     When I select the tab &quot;Check Boxes&quot;
-    Given the tab &quot;Check Boxes&quot; is the container
+    Given the tab &quot;Check Boxes&quot; is visible
   
   Scenario Outline: Checkbox clicking with names
     When I click the checkbox &quot;&lt;checkbox&gt;&quot;</diff>
      <filename>test/features/checkbox.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 Feature: Combobox
 
   Scenario: Combobox Manipulation
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;JComboBox demo&quot; is selected
-      And the tab &quot;ComboBox Demo&quot; is the container
+      And the tab &quot;ComboBox Demo&quot; is visible
     When I change the combobox &quot;#2&quot; to &quot;Jon&quot;
       Then I should have the combobox &quot;#2&quot; with &quot;Jon&quot;
     When I change the combobox &quot;#3&quot; to &quot;Jon&quot;</diff>
      <filename>test/features/combobox.feature</filename>
    </modified>
    <modified>
      <diff>@@ -2,13 +2,12 @@ Feature: Dialog locators and events
 
   Scenario: Dialog manipulation
     Given the frame &quot;SwingSet&quot; is visible
-      And the frame &quot;SwingSet&quot; is the container
     When I click the menu &quot;File/About&quot;
     Then I should see the dialog &quot;About Swing!&quot;
-    Given the dialog &quot;About Swing!&quot; is the container
+    Given the dialog &quot;About Swing!&quot; is visible
     When I click the button &quot;OK&quot;
     Then I should not see the dialog &quot;About Swing!&quot;
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
     When I click the menu &quot;File/About&quot;
     Then I should see the dialog &quot;About Swing!&quot;
     When I close the dialog &quot;About Swing!&quot;</diff>
      <filename>test/features/dialog.feature</filename>
    </modified>
    <modified>
      <diff>@@ -6,9 +6,8 @@ Feature: Frame locators and events
     Then the frame &quot;SwingSet&quot; should be active
 
   Scenario Outline: Internal frame activation
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;JInternalFrame demo&quot; is selected
-      And the internal frame &quot;&lt;frame&gt;&quot; is visible
     When I activate the internal frame &quot;&lt;frame&gt;&quot;
     Then the internal frame &quot;&lt;frame&gt;&quot; should be active
   Examples:
@@ -20,9 +19,8 @@ Feature: Frame locators and events
     | Frame 4 |
     
   Scenario Outline: Internal frame manipulation
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;JInternalFrame demo&quot; is selected
-    And the internal frame &quot;&lt;frame&gt;&quot; is visible
     When I activate the internal frame &quot;&lt;frame&gt;&quot;
     Then I should see the internal frame &quot;&lt;frame&gt;&quot;
     When I close the internal frame &quot;&lt;frame&gt;&quot;</diff>
      <filename>test/features/frame.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 Feature: Label manipulation
 
   Scenario: Internal frame manipulation
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;JInternalFrame demo&quot; is selected
-    And the internal frame &quot;#1&quot; is the container
+    And the internal frame &quot;#1&quot; is visible
     Given I have the label &quot;Frame title:&quot;
     When I set the label &quot;Frame title:&quot; to &quot;Window Title:&quot;
     Then the label &quot;Window Title:&quot; should be &quot;Window Title:&quot;
\ No newline at end of file</diff>
      <filename>test/features/label.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,9 +1,9 @@
 Feature: List
 
   Scenario: Combobox Manipulation
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;JList demo&quot; is selected
-      And the tab &quot;List Demo&quot; is the container
+      And the tab &quot;List Demo&quot; is visible
     When I select &quot;TeraSystems&quot; in the list &quot;#1&quot;
       Then I should have the list &quot;#1&quot; with &quot;TeraSystems&quot; selected
     When I select &quot;YoYoTech&quot; in the list &quot;#1&quot;</diff>
      <filename>test/features/list.feature</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,6 @@ Feature: Menu locators and events
 
   Scenario: Menu clicking
     Given the frame &quot;SwingSet&quot; is visible
-      And the frame &quot;SwingSet&quot; is the container
     When I click the menu &quot;File&quot;
       And I click the menu &quot;Look &amp; Feel&quot;
       And I click the menu &quot;Look &amp; Feel/Motif Look &amp; Feel&quot;</diff>
      <filename>test/features/menu.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 Feature: Radio Buttons locators and events
 
   Background:
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
       And the toolbar button &quot;#2&quot; is selected
-      And the tab &quot;Button Demo&quot; is the container
+      And the tab &quot;Button Demo&quot; is visible
     When I select the tab &quot;Radio Buttons&quot;
-    Given the tab &quot;Radio Buttons&quot; is the container
+    Given the tab &quot;Radio Buttons&quot; is visible
   
   Scenario Outline: Radio Button clicking with names
     When I click the radio button &quot;&lt;button1&gt;&quot;</diff>
      <filename>test/features/radio_button.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,15 @@
 Feature: Tabs locators and events
 
   Scenario: Tab selection
-    Given the frame &quot;SwingSet&quot; is the container
-    And the toolbar button &quot;#1&quot; is selected
+    Given the frame &quot;SwingSet&quot; is visible
+      And the toolbar button &quot;#1&quot; is selected
     When I select the tab &quot;Source Code&quot;
     Then the tab &quot;Source Code&quot; should be selected
   
   Scenario: Tab selection 2
-    Given the frame &quot;SwingSet&quot; is the container
-    And the toolbar button &quot;#2&quot; is selected
-    And the tab &quot;Button Demo&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
+      And the toolbar button &quot;#2&quot; is selected
+      And the tab &quot;Button Demo&quot; is visible
     When I select the tab &quot;Radio Buttons&quot;
-    And I select the tab &quot;Buttons&quot;
-    And I select the tab &quot;Check Boxes&quot;
\ No newline at end of file
+      And I select the tab &quot;Buttons&quot;
+      And I select the tab &quot;Check Boxes&quot;
\ No newline at end of file</diff>
      <filename>test/features/tab.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1,23 @@
 Feature: Textfield locators and events
 
   Scenario: Textfield filling
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
     And the toolbar button &quot;JInternalFrame demo&quot; is selected
-    And the tab &quot;Internal Frames Demo&quot; is the container
+    And the tab &quot;Internal Frames Demo&quot; is visible
     When I fill the text field &quot;Frame&quot; with &quot;My Frame Title&quot;
     Then the text field &quot;My Frame Title&quot; should be &quot;My Frame Title&quot;
 
   Scenario: Textfield ordinal
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
     And the toolbar button &quot;JInternalFrame demo&quot; is selected
-    And the tab &quot;Internal Frames Demo&quot; is the container
+    And the tab &quot;Internal Frames Demo&quot; is visible
     When I fill the text field &quot;#1&quot; with &quot;My Frame Title 2&quot;
     Then the text field &quot;#1&quot; should be &quot;My Frame Title 2&quot;
  
 # Not passing because we need to modify SwingSet2 source  
 #  Scenario: Textfield by label
-#    Given the frame &quot;SwingSet&quot; is the container
+#    Given the frame &quot;SwingSet&quot; is visible
 #    And the toolbar button &quot;JInternalFrame demo&quot; is selected
-#    And the tab &quot;Internal Frames Demo&quot; is the container
+#    And the tab &quot;Internal Frames Demo&quot; is visible
 #    When I fill the text field &quot;Frame title:&quot; with &quot;My Frame Title 2&quot;
 #    Then the text field &quot;Frame title:&quot; should be &quot;My Frame Title 2&quot;
\ No newline at end of file</diff>
      <filename>test/features/textfield.feature</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Feature: Toolbar button locators and events
 
   Scenario Outline: Toolbar button click
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
     When I click the toolbar button &quot;#&lt;button&gt;&quot;
     Then the toolbar button &quot;#&lt;button&gt;&quot; should be selected
   Examples:
@@ -24,6 +24,6 @@ Feature: Toolbar button locators and events
     | 16 |    
     
   Scenario: Toolbar button click by tooltip
-    Given the frame &quot;SwingSet&quot; is the container
+    Given the frame &quot;SwingSet&quot; is visible
     When I click the toolbar button &quot;JList demo&quot;
     Then the toolbar button &quot;JList demo&quot; should be selected
\ No newline at end of file</diff>
      <filename>test/features/toolbar.feature</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8bf74fa4eb3ab4b40e7204c5128a50559d9bd717</id>
    </parent>
  </parents>
  <author>
    <name>Demetrius Nunes</name>
    <email>demetriusnunes@gmail.com</email>
  </author>
  <url>http://github.com/demetriusnunes/swinger/commit/41dc093e2f2bd163c4c39ac2b3abdfa894fdf916</url>
  <id>41dc093e2f2bd163c4c39ac2b3abdfa894fdf916</id>
  <committed-date>2009-09-29T14:11:19-07:00</committed-date>
  <authored-date>2009-09-29T14:11:19-07:00</authored-date>
  <message>changed the semantics of the 'Given ... is visible' steps for frames, dialogs and tabbed panes to set the current container automatically so we don't need to keep saying 'Given ... is the container'</message>
  <tree>b9bc2f3f5a67445183751f59615cd7625bacde8e</tree>
  <committer>
    <name>Demetrius Nunes</name>
    <email>demetriusnunes@gmail.com</email>
  </committer>
</commit>
