Permalink
Browse files

Got frank up and running

  • Loading branch information...
1 parent f9cea1d commit d40b732d78f58d83b9f4ab59ddc9d63edfc34176 Jamie Ly committed Sep 4, 2012
Showing with 6,974 additions and 9 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 ConnectFour/Models/JLIndex.m
  3. +6 −0 ConnectFour/Views/IndexView.m
  4. +0 −8 ConnectFour/en.lproj/MainStoryboard_iPhone.storyboard
  5. +12 −0 Frank/features/my_first.feature
  6. +20 −0 Frank/features/step_definitions/launch_steps.rb
  7. +9 −0 Frank/features/support/env.rb
  8. +63 −0 Frank/frank_static_resources.bundle/ViewAttributeMapping.plist
  9. BIN Frank/frank_static_resources.bundle/images/ajax-loader.gif
  10. BIN Frank/frank_static_resources.bundle/images/file.gif
  11. BIN Frank/frank_static_resources.bundle/images/folder-closed.gif
  12. BIN Frank/frank_static_resources.bundle/images/folder.gif
  13. BIN Frank/frank_static_resources.bundle/images/minus.gif
  14. BIN Frank/frank_static_resources.bundle/images/plus.gif
  15. BIN Frank/frank_static_resources.bundle/images/treeview-black-line.gif
  16. BIN Frank/frank_static_resources.bundle/images/treeview-black.gif
  17. BIN Frank/frank_static_resources.bundle/images/treeview-default-line.gif
  18. BIN Frank/frank_static_resources.bundle/images/treeview-default.gif
  19. BIN Frank/frank_static_resources.bundle/images/treeview-famfamfam-line.gif
  20. BIN Frank/frank_static_resources.bundle/images/treeview-famfamfam.gif
  21. BIN Frank/frank_static_resources.bundle/images/treeview-gray-line.gif
  22. BIN Frank/frank_static_resources.bundle/images/treeview-gray.gif
  23. BIN Frank/frank_static_resources.bundle/images/treeview-red-line.gif
  24. BIN Frank/frank_static_resources.bundle/images/treeview-red.gif
  25. +65 −0 Frank/frank_static_resources.bundle/index.haml
  26. +90 −0 Frank/frank_static_resources.bundle/index.html
  27. +571 −0 Frank/frank_static_resources.bundle/jquery-ui.css
  28. +405 −0 Frank/frank_static_resources.bundle/jquery-ui.min.js
  29. +19 −0 Frank/frank_static_resources.bundle/jquery.min.js
  30. +68 −0 Frank/frank_static_resources.bundle/jquery.treeview.css
  31. +251 −0 Frank/frank_static_resources.bundle/jquery.treeview.js
  32. +481 −0 Frank/frank_static_resources.bundle/json2.js
  33. +7 −0 Frank/frank_static_resources.bundle/raphael-min.js
  34. +127 −0 Frank/frank_static_resources.bundle/symbiote.css
  35. +512 −0 Frank/frank_static_resources.bundle/symbiote.js
  36. +770 −0 Frank/frank_static_resources.bundle/underscore.js
  37. BIN Frank/frankified_build/Frankified.app/ConnectFour
  38. BIN Frank/frankified_build/Frankified.app/Info.plist
  39. +1 −0 Frank/frankified_build/Frankified.app/PkgInfo
  40. BIN Frank/frankified_build/Frankified.app/a.png
  41. BIN Frank/frankified_build/Frankified.app/b.png
  42. BIN Frank/frankified_build/Frankified.app/empty.png
  43. BIN Frank/frankified_build/Frankified.app/en.lproj/InfoPlist.strings
  44. BIN Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard_iPad.storyboardc/2-view-5.nib
  45. BIN Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard_iPad.storyboardc/Info.plist
  46. BIN ...fied_build/Frankified.app/en.lproj/MainStoryboard_iPad.storyboardc/TjR-4s-wVU-view-wyh-KT-98H.nib
  47. BIN ...ied_build/Frankified.app/en.lproj/MainStoryboard_iPad.storyboardc/UIViewController-TjR-4s-wVU.nib
  48. BIN ...ied_build/Frankified.app/en.lproj/MainStoryboard_iPad.storyboardc/UIViewController-chs-MN-hUR.nib
  49. BIN Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard_iPhone.storyboardc/2-view-3.nib
  50. BIN ...ed_build/Frankified.app/en.lproj/MainStoryboard_iPhone.storyboardc/6md-HG-jol-view-Wkj-6G-ZLl.nib
  51. BIN Frank/frankified_build/Frankified.app/en.lproj/MainStoryboard_iPhone.storyboardc/Info.plist
  52. BIN ...d_build/Frankified.app/en.lproj/MainStoryboard_iPhone.storyboardc/UIViewController-6md-HG-jol.nib
  53. BIN ...d_build/Frankified.app/en.lproj/MainStoryboard_iPhone.storyboardc/UIViewController-cum-9A-3Ha.nib
  54. +63 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/ViewAttributeMapping.plist
  55. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/ajax-loader.gif
  56. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/file.gif
  57. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/folder-closed.gif
  58. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/folder.gif
  59. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/minus.gif
  60. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/plus.gif
  61. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-black-line.gif
  62. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-black.gif
  63. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-default-line.gif
  64. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-default.gif
  65. BIN .../frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-famfamfam-line.gif
  66. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-famfamfam.gif
  67. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-gray-line.gif
  68. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-gray.gif
  69. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-red-line.gif
  70. BIN Frank/frankified_build/Frankified.app/frank_static_resources.bundle/images/treeview-red.gif
  71. +65 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/index.haml
  72. +90 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/index.html
  73. +571 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/jquery-ui.css
  74. +405 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/jquery-ui.min.js
  75. +19 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/jquery.min.js
  76. +68 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/jquery.treeview.css
  77. +251 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/jquery.treeview.js
  78. +481 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/json2.js
  79. +7 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/raphael-min.js
  80. +127 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/symbiote.css
  81. +512 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/symbiote.js
  82. +770 −0 Frank/frankified_build/Frankified.app/frank_static_resources.bundle/underscore.js
  83. +4 −0 Frank/frankify.xcconfig
  84. BIN Frank/libFrank.a
  85. BIN Frank/libShelley.a
  86. +3 −0 Gemfile
  87. +50 −0 Gemfile.lock
  88. +9 −0 README.md
View
@@ -1,3 +1,4 @@
ConnectFour.xcodeproj/project.xcworkspace/xcuserdata
ConnectFour.xcodeproj/xcuserdata
+build
@@ -23,7 +23,7 @@ - (JLIndex*) initWithRow: (NSUInteger) _row andColumn: (NSUInteger) _column {
}
- (NSString*) description {
- return [NSString stringWithFormat: @"<Row: %d Column: %d>", self.row, self.column];
+ return [NSString stringWithFormat: @"Row: %d Column: %d", self.row, self.column];
}
+ (JLIndex*) indexWithRow: (NSUInteger) _row andColumn: (NSUInteger) _column {
@@ -7,6 +7,7 @@
//
#import "IndexView.h"
+#import "JLIndex.h"
@implementation IndexView
@@ -24,4 +25,9 @@ - (id) initWithImage:(UIImage *)image andBoard: (Board*) _board
return self;
}
+- (NSString*) accessibilityLabel {
+ return [NSString stringWithFormat:@"Index (%@) Image (%@)",
+ index, [super accessibilityLabel]];
+}
+
@end
@@ -71,14 +71,6 @@
<point key="canvasLocation" x="357" y="-295"/>
</scene>
</scenes>
- <classes>
- <class className="BoardViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/BoardViewController.h"/>
- </class>
- <class className="ViewController" superclassName="UIViewController">
- <source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/>
- </class>
- </classes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
@@ -0,0 +1,12 @@
+Feature:
+ As an iOS developer
+ I want to have a sample feature file
+ So I can see what my next step is in the wonderful world of Frank/Cucumber testing
+
+Scenario:
+ Rotating the simulator for demonstration purposes
+Given I launch the app
+Given the device is in landscape orientation
+Given the device is in portrait orientation
+Given the device is in landscape orientation
+Given the device is in portrait orientation
@@ -0,0 +1,20 @@
+def app_path
+ ENV['APP_BUNDLE_PATH'] || (defined?(APP_BUNDLE_PATH) && APP_BUNDLE_PATH)
+end
+
+Given /^I launch the app$/ do
+ # latest sdk and iphone by default
+ launch_app app_path
+end
+
+Given /^I launch the app using iOS (\d\.\d)$/ do |sdk|
+ # You can grab a list of the installed SDK with sim_launcher
+ # > run sim_launcher from the command line
+ # > open a browser to http://localhost:8881/showsdks
+ # > use one of the sdk you see in parenthesis (e.g. 4.2)
+ launch_app app_path, sdk
+end
+
+Given /^I launch the app using iOS (\d\.\d) and the (iphone|ipad) simulator$/ do |sdk, version|
+ launch_app app_path, sdk, version
+end
@@ -0,0 +1,9 @@
+require 'frank-cucumber'
+
+# UIQuery is deprecated. Please use the shelley selector engine.
+Frank::Cucumber::FrankHelper.use_shelley_from_now_on
+
+# TODO: set this constant to the full path for your Frankified target's app bundle.
+# See the "Given I launch the app" step definition in launch_steps.rb for more details
+APP_BUNDLE_PATH = File.expand_path( '../../../frankified_build/Frankified.app', __FILE__ )
+
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>UIView</key>
+ <array>
+ <string>accessibilityLabel</string>
+ <string>accessibilityFrame</string>
+ <string>tag</string>
+ <string>alpha</string>
+ <string>autoresizingMask</string>
+ <string>backgroundColor</string>
+ <string>frame</string>
+ <string>isHidden</string>
+ </array>
+ <key>UIWindow</key>
+ <array>
+ <string>windowLevel</string>
+ <string>isKeyWindow</string>
+ </array>
+ <key>UIScrollView</key>
+ <array>
+ <string>contentOffset</string>
+ <string>contentSize</string>
+ <string>isScrollEnabled</string>
+ <string>contentInset</string>
+ <string>isPagingEnabled</string>
+ <string>bounces</string>
+ <string>alwaysBounceVertical</string>
+ <string>alwaysBounceHorizontal</string>
+ <string>showsHorizontalScrollIndicator</string>
+ <string>showsVerticalScrollIndicator</string>
+ <string>zoomScale</string>
+ <string>maximumZoomScale</string>
+ <string>minimumZoomScale</string>
+ <string>delegate</string>
+ </array>
+ <key>UITableView</key>
+ <array>
+ <string>dataSource</string>
+ </array>
+ <key>UILabel</key>
+ <array>
+ <string>text</string>
+ <string>font</string>
+ <string>textAlignment</string>
+ </array>
+ <key>UISegmentedControl</key>
+ <array>
+ <string>segmentedControlStyle</string>
+ <string>numberOfSegments</string>
+ <string>selectedSegmentIndex</string>
+ </array>
+ <key>MKMapView</key>
+ <array>
+ <string>mapType</string>
+ <string>isZoomEnabled</string>
+ <string>isScrollEnabled</string>
+ <string>userTrackingMode</string>
+ <string>delegate</string>
+ </array>
+</dict>
+</plist>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,65 @@
+!!! 5
+%html
+ %head
+ %meta(charset="utf-8")
+ %title Symbiote
+
+ %script(src="jquery.min.js")
+ %script(src="jquery-ui.min.js")
+ %script(src="raphael-min.js")
+ %script(src="jquery.treeview.js")
+ %script(src="json2.js")
+ %script(src="underscore.js")
+ %script(src="symbiote.js")
+ %link(href="jquery-ui.css" rel="stylesheet")
+ %link(href="jquery.treeview.css" rel="stylesheet")
+ %link(href="symbiote.css" rel="stylesheet")
+
+ %body
+ #header
+ #main-tab-1
+ %h1 symbiote
+ %i From here you can inspect the current state of the app's UI, and test which UI elements a selector will select
+
+ %div
+ %table.symbiote_shell
+ %tr.ui-widget
+ %td
+ #selector-test
+ %label(for="query") Selector
+ %input#query(placeholder="label marked:'Search'")
+ %button#flash_button Flash
+ %input#selector_engine(placeholder="uiquery")
+ %td
+ #refresh
+ %img#loading(src="images/ajax-loader.gif")
+ %button#dump_button Refresh
+ %tr
+ %td
+ #list-tabs
+ %ul
+ %li
+ %a(href="#dom_dump") View Heirarchy
+ %li
+ %a(href="#accessible-views-tab") Accessible Elements
+ #dom_dump
+ %ul
+ #accessible-views-tab
+ %div.hints
+ %p Here is a list of all elements with accessibility labels.
+ %p Clicking on a row will flash that view element in the simulator. Hover over a row to see the selector used to flash that view element.
+ #accessible-views
+ %td
+ #inspect-tabs
+ %ul
+ %li
+ %a(href="#dom_detail") View Properties
+ %li
+ %a(href="#ui-locator") View Locator
+ #ui-locator
+ #ui-locator-view
+ #live-view
+ %button start Live View
+
+ #dom_detail
+ %p Click an element in the view heirarchy on the right to see details of that element here.
@@ -0,0 +1,90 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset='utf-8' />
+ <title>Symbiote</title>
+ <script src='jquery.min.js'></script>
+ <script src='jquery-ui.min.js'></script>
+ <script src='raphael-min.js'></script>
+ <script src='jquery.treeview.js'></script>
+ <script src='json2.js'></script>
+ <script src='underscore.js'></script>
+ <script src='symbiote.js'></script>
+ <link href='jquery-ui.css' rel='stylesheet' />
+ <link href='jquery.treeview.css' rel='stylesheet' />
+ <link href='symbiote.css' rel='stylesheet' />
+ </head>
+ <body>
+ <div id='header'>
+ <div id='main-tab-1'>
+ <h1>symbiote</h1>
+ <i>From here you can inspect the current state of the app's UI, and test which UI elements a selector will select</i>
+ </div>
+ </div>
+ <div>
+ <table class='symbiote_shell'>
+ <tr class='ui-widget'>
+ <td>
+ <div id='selector-test'>
+ <label for='query'>Selector</label>
+ <input id='query' placeholder="label marked:'Search'" />
+ <button id='flash_button'>Flash</button>
+ <input id='selector_engine' placeholder='uiquery' />
+ </div>
+ </td>
+ <td>
+ <div id='refresh'>
+ <img id='loading' src='images/ajax-loader.gif' />
+ <button id='dump_button'>Refresh</button>
+ </div>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <div id='list-tabs'>
+ <ul>
+ <li>
+ <a href='#dom_dump'>View Heirarchy</a>
+ </li>
+ <li>
+ <a href='#accessible-views-tab'>Accessible Elements</a>
+ </li>
+ </ul>
+ <div id='dom_dump'>
+ <ul></ul>
+ </div>
+ <div id='accessible-views-tab'>
+ <div class='hints'>
+ <p>Here is a list of all elements with accessibility labels.</p>
+ <p>Clicking on a row will flash that view element in the simulator. Hover over a row to see the selector used to flash that view element.</p>
+ </div>
+ <div id='accessible-views'></div>
+ </div>
+ </div>
+ </td>
+ <td>
+ <div id='inspect-tabs'>
+ <ul>
+ <li>
+ <a href='#dom_detail'>View Properties</a>
+ </li>
+ <li>
+ <a href='#ui-locator'>View Locator</a>
+ </li>
+ </ul>
+ <div id='ui-locator'>
+ <div id='ui-locator-view'></div>
+ <div id='live-view'>
+ <button>start Live View</button>
+ </div>
+ </div>
+ <div id='dom_detail'>
+ <p>Click an element in the view heirarchy on the right to see details of that element here.</p>
+ </div>
+ </div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit d40b732

Please sign in to comment.