Permalink
Browse files

including a frank ( testingwithfrank.com ) in our application

  • Loading branch information...
1 parent 2a5b686 commit 49d7abb98f348618628f3b9450ab4e424c33dbff @setuid setuid committed Sep 29, 2012
Showing with 3,908 additions and 0 deletions.
  1. +8 −0 AutoBuildCD/Frank/features/alerta.feature
  2. +3 −0 AutoBuildCD/Frank/features/step_definitions/alerta_steps.rb
  3. +20 −0 AutoBuildCD/Frank/features/step_definitions/launch_steps.rb
  4. +8 −0 AutoBuildCD/Frank/features/support/env.rb
  5. +63 −0 AutoBuildCD/Frank/frank_static_resources.bundle/ViewAttributeMapping.plist
  6. +16 −0 AutoBuildCD/Frank/frank_static_resources.bundle/_solarized_colors.scss
  7. +8 −0 AutoBuildCD/Frank/frank_static_resources.bundle/coffee-script.js
  8. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/ajax-loader.gif
  9. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/file.gif
  10. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/folder-closed.gif
  11. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/folder.gif
  12. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/loader.gif
  13. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/loader.png
  14. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/minus.gif
  15. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/plus.gif
  16. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-black-line.gif
  17. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-black.gif
  18. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-default-line.gif
  19. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-default.gif
  20. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-famfamfam-line.gif
  21. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-famfamfam.gif
  22. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-gray-line.gif
  23. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-gray.gif
  24. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-red-line.gif
  25. BIN AutoBuildCD/Frank/frank_static_resources.bundle/images/treeview-red.gif
  26. +79 −0 AutoBuildCD/Frank/frank_static_resources.bundle/index.haml
  27. +101 −0 AutoBuildCD/Frank/frank_static_resources.bundle/index.html
  28. +405 −0 AutoBuildCD/Frank/frank_static_resources.bundle/jquery-ui.min.js
  29. +4 −0 AutoBuildCD/Frank/frank_static_resources.bundle/jquery.min.js
  30. +70 −0 AutoBuildCD/Frank/frank_static_resources.bundle/jquery.treeview.css
  31. +251 −0 AutoBuildCD/Frank/frank_static_resources.bundle/jquery.treeview.js
  32. +481 −0 AutoBuildCD/Frank/frank_static_resources.bundle/json2.js
  33. +329 −0 AutoBuildCD/Frank/frank_static_resources.bundle/pictos/index.html
  34. BIN AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos-web.eot
  35. +114 −0 AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos-web.svg
  36. BIN AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos-web.ttf
  37. BIN AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos-web.woff
  38. +20 −0 AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos.css
  39. +18 −0 AutoBuildCD/Frank/frank_static_resources.bundle/pictos/pictos_base64.css
  40. +7 −0 AutoBuildCD/Frank/frank_static_resources.bundle/raphael-min.js
  41. +32 −0 AutoBuildCD/Frank/frank_static_resources.bundle/reset.css
  42. +473 −0 AutoBuildCD/Frank/frank_static_resources.bundle/symbiote.css
  43. +585 −0 AutoBuildCD/Frank/frank_static_resources.bundle/symbiote.js
  44. +39 −0 AutoBuildCD/Frank/frank_static_resources.bundle/symbiote_ui.coffee
  45. +770 −0 AutoBuildCD/Frank/frank_static_resources.bundle/underscore.js
  46. +4 −0 AutoBuildCD/Frank/frankify.xcconfig
  47. BIN AutoBuildCD/Frank/libCocoaHTTPServer.a
  48. BIN AutoBuildCD/Frank/libFrank.a
  49. BIN AutoBuildCD/Frank/libShelley.a
@@ -0,0 +1,8 @@
+Feature: Alerta de bem-vindo
+
+Scenario: Ao clicar no botao de ola um alerta deve ser exibido
+Given I launch the app
+Then I should see a button
+
+When I touch the button marked "Ola"
+Then I should see an alert view titled "Bem vindo"
@@ -0,0 +1,3 @@
+Then /^I should see a button$/ do
+ check_element_exists "view view:'UIButton'"
+end
@@ -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,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__ )
@@ -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>
@@ -0,0 +1,16 @@
+$base03: #002b36 !default; //darkest blue
+$base02: #073642 !default; //dark blue
+$base01: #586e75 !default; //darkest gray
+$base00: #657b83 !default; //dark gray
+$base0: #839496 !default; //medium gray
+$base1: #93a1a1 !default; //medium light gray
+$base2: #eee8d5 !default; //cream
+$base3: #fdf6e3 !default; //white
+$solar-yellow: #b58900 !default;
+$solar-orange: #cb4b16 !default;
+$solar-red: #dc322f !default;
+$solar-magenta: #d33682 !default;
+$solar-violet: #6c71c4 !default;
+$solar-blue: #268bd2 !default;
+$solar-cyan: #2aa198 !default;
+$solar-green: #859900 !default;

Large diffs are not rendered by default.

Oops, something went wrong.
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.
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,79 @@
+!!! 5
+%html
+ %head
+ %meta(charset="utf-8")
+ %title Symbiote
+
+ %script(src="jquery.min.js")
+ %script(src="jquery-ui.min.js")
+ %script(src="coffee-script.js")
+ %script(src="raphael-min.js")
+ %script(src="jquery.treeview.js")
+ %script(src="json2.js")
+ %script(src="underscore.js")
+ %script(src="symbiote.js")
+ %script(src="symbiote_ui.coffee" type="text/coffeescript")
+ %link(href="reset.css" rel="stylesheet")
+ %link(href="pictos/pictos.css" rel="stylesheet")
+ %link(href="jquery.treeview.css" rel="stylesheet")
+ %link(href="symbiote.css" rel="stylesheet")
+
+ %body
+ %header#header
+ %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
+ #refresh
+ %button#dump_button
+ %span
+
+ %section.symbiote_shell
+ %article#selector-test
+ %input#query(placeholder="Selector label marked:'Search'")
+ .action-buttons
+ %button#highlight Highlight
+ %ul.extra-actions
+ %li
+ %button#touch Touch In App
+ %li
+ %button#flash Flash In App
+ %div.drop-indicator v
+ .selector_engine
+ %input#selector_engine(value="shelley_compat")
+ %button#selector_engine_dropdown &#x25BC;
+ %ul#selector_engine_options
+ %li shelley_compat
+ %li uiquery
+
+
+
+ %section.the-columns
+ #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
+
+ #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
+ %button#ui-locator-rotator 1
+ #ui-locator-view
+
+ #dom_detail
+ %p Click an element in the view heirarchy on the right to see details of that element here.
@@ -0,0 +1,101 @@
+<!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='coffee-script.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>
+ <script src='symbiote_ui.coffee' type='text/coffeescript'></script>
+ <link href='reset.css' rel='stylesheet' />
+ <link href='pictos/pictos.css' rel='stylesheet' />
+ <link href='jquery.treeview.css' rel='stylesheet' />
+ <link href='symbiote.css' rel='stylesheet' />
+ </head>
+ <body>
+ <header id='header'>
+ <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 id='refresh'>
+ <button id='dump_button'>
+ <span></span>
+ </button>
+ </div>
+ </header>
+ <section class='symbiote_shell'>
+ <article id='selector-test'>
+ <input id='query' placeholder="Selector label marked:'Search'" />
+ <div class='action-buttons'>
+ <button id='highlight'>Highlight</button>
+ <ul class='extra-actions'>
+ <li>
+ <button id='touch'>Touch In App</button>
+ </li>
+ <li>
+ <button id='flash'>Flash In App</button>
+ </li>
+ </ul>
+ <div class='drop-indicator'>v</div>
+ </div>
+ <div class='selector_engine'>
+ <input id='selector_engine' value='shelley_compat' />
+ <button id='selector_engine_dropdown'>&#x25BC;</button>
+ <ul id='selector_engine_options'>
+ <li>shelley_compat</li>
+ <li>uiquery</li>
+ </ul>
+ </div>
+ </article>
+ </section>
+ <section class='the-columns'>
+ <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>
+ <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>
+ <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 heirarchy on the right to see details of that element here.</p>
+ </div>
+ </div>
+ </section>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 49d7abb

Please sign in to comment.