Skip to content

Commit

Permalink
Added Frank
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaMilusheva committed Mar 20, 2013
1 parent 22854c6 commit e36a9af
Show file tree
Hide file tree
Showing 235 changed files with 30,588 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Frank/features/my_first.feature
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions Frank/features/step_definitions/launch_steps.rb
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions Frank/features/support/env.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'frank-cucumber'

# UIQuery is deprecated. Please use the shelley selector engine.
Frank::Cucumber::FrankHelper.use_shelley_from_now_on

# This constant must be set to the full, absolute 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__ )
63 changes: 63 additions & 0 deletions Frank/frank_static_resources.bundle/ViewAttributeMapping.plist
Original file line number Diff line number Diff line change
@@ -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>
99 changes: 99 additions & 0 deletions Frank/frank_static_resources.bundle/ViewAttributeMappingMac.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?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>NSObject</key>
<array>
<string>FEX_accessibilityLabel</string>
<string>FEX_accessibilityFrame</string>
</array>
<key>NSView</key>
<array>
<string>tag</string>
<string>autoresizesSubviews</string>
<string>autoresizingMask</string>
<string>frame</string>
<string>bounds</string>
<string>isHidden</string>
<string>isFlipped</string>
<string>isRotatedFromBase</string>
<string>isRotatedOrScaledFromBase</string>
<string>isInFullScreenMode</string>
<string>isOpaque</string>
<string>canBecomeKeyView</string>
<string>acceptsTouchEvents</string>
<string>wantsRestingTouches</string>
</array>
<key>NSWindow</key>
<array>
<string>alphaValue</string>
<string>backgroundColor</string>
<string>isOpaque</string>
<string>level</string>
<string>isKeyWindow</string>
<string>frame</string>
<string>isVisible</string>
<string>windowNumber</string>
<string>isSheet</string>
</array>
<key>NSControl</key>
<array>
<string>stringValue</string>
<string>attributedStringValue</string>
</array>
<key>NSScrollView</key>
<array>
<string>backgroundColor</string>
<string>borderType</string>
<string>contentSize</string>
<string>documentVisibleRect</string>
<string>drawsBackground</string>
<string>hasHorizontalScroller</string>
<string>hasVerticalScroller</string>
<string>autohidesScrollers</string>
<string>hasHorizontalRuler</string>
<string>hasVerticalRuler</string>
<string>rulersVisible</string>
<string>scrollerKnobStyle</string>
<string>scrollerStyle</string>
<string>lineScroll</string>
<string>horizontalLineScroll</string>
<string>verticalLineScroll</string>
<string>pageScroll</string>
<string>horizontalPageScroll</string>
<string>verticalPageScroll</string>
<string>scrollsDynamically</string>
<string>findBarPosition</string>
<string>usesPredominantAxisScrolling</string>
<string>horizontalScrollElasticity</string>
<string>verticalScrollElasticity</string>
</array>
<key>NSTableView</key>
<array>
<string>dataSource</string>
</array>
<key>NSTextField</key>
<array>
<string>isEditable</string>
<string>isSelectable</string>
<string>drawsBackground</string>
<string>backgroundColor</string>
<string>isBezeled</string>
<string>bezelStyle</string>
<string>isBordered</string>
</array>
<key>NSTextView</key>
<array>
<string>isEditable</string>
<string>isSelectable</string>
<string>drawsBackground</string>
<string>backgroundColor</string>
</array>
<key>NSSegmentedControl</key>
<array>
<string>segmentStyle</string>
<string>segmentCount</string>
<string>selectedSegment</string>
</array>
</dict>
</plist>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frank/frank_static_resources.bundle/images/file.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frank/frank_static_resources.bundle/images/minus.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Frank/frank_static_resources.bundle/images/plus.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 86 additions & 0 deletions Frank/frank_static_resources.bundle/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title>Symbiote</title>
<script src='js/lib/jquery.min.js'></script>
<script src='js/lib/jquery-ui.min.js'></script>
<script src='js/lib/jquery.treeview.js'></script>
<script src='js/lib/coffee-script.js'></script>
<script src='js/lib/raphael.js'></script>
<script src='js/lib/underscore.js'></script>
<script src='js/lib/backbone.js'></script>
<script src='js/lib/json2.js'></script>
<script data-main='/js/main' src='js/lib/require.js'></script>
<link href='/stylesheets/css/symbiote.css' rel='stylesheet' />
<link href='pictos/pictos.css' rel='stylesheet' />
</head>
<body>
<header id='header'>
<h1>symbiote</h1>
<div class='toast'></div>
<div id='refresh'>
<button id='dump_button'>
<span></span>
</button>
</div>
</header>
<section class='symbiote_shell'>
<article id='selector-test'><div class='wrap outter'><label class='selector-engine-label'>use</label>
<div class='selector-engine dropdown'></div></div><div class='wrap middle'><label class='query'>to select views matching</label><input id='query' placeholder="Selector label marked:'Search'" /></div><div class='wrap outter'>
<label>and then</label>
<div class='action-buttons dropdown'></div>
</div></article>
</section>
<section class='the-columns'>
<div id='list-tabs'>
<ul>
<li>
<a href='#dom-dump'>View Hierarchy</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>
<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='live-view'>
<button>
Live
<span>Y</span>
</button>
</div>
<div id='asploder'>
<button>
Asplode
</button>
</div>
<button id='ui-locator-rotator'>1</button>
<div id='ui-locator-view'></div>
</div>
<div id='dom-detail'>
<p>Click an element in the view hierarchy on the right to see details of that element here.</p>
</div>
</div>
</section>
</body>
</html>
76 changes: 76 additions & 0 deletions Frank/frank_static_resources.bundle/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
!!! 5
%html
%head
%meta(charset="utf-8")
%title Symbiote

%script(src="js/lib/jquery.min.js")
%script(src="js/lib/jquery-ui.min.js")
%script(src="js/lib/jquery.treeview.js")
%script(src="js/lib/coffee-script.js")
%script(src="js/lib/raphael.js")
%script(src="js/lib/underscore.js")
%script(src="js/lib/backbone.js")
%script(src="js/lib/json2.js")

%script(data-main="/js/main" src="js/lib/require.js")

%link(href="/stylesheets/css/symbiote.css" rel="stylesheet")
%link(href="pictos/pictos.css" rel="stylesheet")

%body
%header#header
%h1 symbiote
.toast
#refresh
%button#dump_button
%span

%section.symbiote_shell
%article#selector-test
.wrap.outter<>
%label.selector-engine-label use
.selector-engine.dropdown

.wrap.middle<>
%label.query<> to select views matching
%input#query(placeholder="Selector label marked:'Search'")<>

.wrap.outter>
%label and then
.action-buttons.dropdown

%section.the-columns
#list-tabs
%ul
%li
%a(href="#dom-dump") View Hierarchy
%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

#inspect-tabs
%ul
%li
%a(href="#dom-detail") View Properties
%li
%a(href="#ui-locator") View Locator
#ui-locator
#live-view
%button
Live
%span Y
#asploder
%button
Asplode
%button#ui-locator-rotator 1
#ui-locator-view

#dom-detail
%p Click an element in the view hierarchy on the right to see details of that element here.
Loading

0 comments on commit e36a9af

Please sign in to comment.