frank-cucumber 1.1.7 → 1.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. data/frank-skeleton/frank_static_resources.bundle/ViewAttributeMappingMac.plist +99 -0
  2. data/frank-skeleton/frank_static_resources.bundle/index.html +2 -2
  3. data/frank-skeleton/frank_static_resources.bundle/index.html.haml +2 -2
  4. data/frank-skeleton/frank_static_resources.bundle/js/controller.coffee +7 -7
  5. data/frank-skeleton/frank_static_resources.bundle/js/controller.js +9 -8
  6. data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.coffee +1 -1
  7. data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.js +1 -1
  8. data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.coffee +2 -1
  9. data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.js +3 -0
  10. data/frank-skeleton/frank_static_resources.bundle/js/frank.coffee +2 -2
  11. data/frank-skeleton/frank_static_resources.bundle/js/frank.js +3 -3
  12. data/frank-skeleton/frank_static_resources.bundle/js/tree_view.coffee +2 -2
  13. data/frank-skeleton/frank_static_resources.bundle/js/tree_view.js +2 -2
  14. data/frank-skeleton/frank_static_resources.bundle/js/{view_heir_model.coffee → view_hier_model.coffee} +3 -3
  15. data/frank-skeleton/frank_static_resources.bundle/js/{view_heir_model.js → view_hier_model.js} +4 -4
  16. data/frank-skeleton/libCocoaAsyncSocket.a +0 -0
  17. data/frank-skeleton/libCocoaAsyncSocketMac.a +0 -0
  18. data/frank-skeleton/libCocoaHTTPServer.a +0 -0
  19. data/frank-skeleton/libCocoaHTTPServerMac.a +0 -0
  20. data/frank-skeleton/libCocoaLumberjack.a +0 -0
  21. data/frank-skeleton/libCocoaLumberjackMac.a +0 -0
  22. data/frank-skeleton/libFrank.a +0 -0
  23. data/frank-skeleton/libFrankMac.a +0 -0
  24. data/frank-skeleton/libShelley.a +0 -0
  25. data/lib/frank-cucumber/version.rb +1 -1
  26. metadata +5 -4
@@ -0,0 +1,99 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>NSObject</key>
6
+ <array>
7
+ <string>FEX_accessibilityLabel</string>
8
+ <string>FEX_accessibilityFrame</string>
9
+ </array>
10
+ <key>NSView</key>
11
+ <array>
12
+ <string>tag</string>
13
+ <string>autoresizesSubviews</string>
14
+ <string>autoresizingMask</string>
15
+ <string>frame</string>
16
+ <string>bounds</string>
17
+ <string>isHidden</string>
18
+ <string>isFlipped</string>
19
+ <string>isRotatedFromBase</string>
20
+ <string>isRotatedOrScaledFromBase</string>
21
+ <string>isInFullScreenMode</string>
22
+ <string>isOpaque</string>
23
+ <string>canBecomeKeyView</string>
24
+ <string>acceptsTouchEvents</string>
25
+ <string>wantsRestingTouches</string>
26
+ </array>
27
+ <key>NSWindow</key>
28
+ <array>
29
+ <string>alphaValue</string>
30
+ <string>backgroundColor</string>
31
+ <string>isOpaque</string>
32
+ <string>level</string>
33
+ <string>isKeyWindow</string>
34
+ <string>frame</string>
35
+ <string>isVisible</string>
36
+ <string>windowNumber</string>
37
+ <string>isSheet</string>
38
+ </array>
39
+ <key>NSControl</key>
40
+ <array>
41
+ <string>stringValue</string>
42
+ <string>attributedStringValue</string>
43
+ </array>
44
+ <key>NSScrollView</key>
45
+ <array>
46
+ <string>backgroundColor</string>
47
+ <string>borderType</string>
48
+ <string>contentSize</string>
49
+ <string>documentVisibleRect</string>
50
+ <string>drawsBackground</string>
51
+ <string>hasHorizontalScroller</string>
52
+ <string>hasVerticalScroller</string>
53
+ <string>autohidesScrollers</string>
54
+ <string>hasHorizontalRuler</string>
55
+ <string>hasVerticalRuler</string>
56
+ <string>rulersVisible</string>
57
+ <string>scrollerKnobStyle</string>
58
+ <string>scrollerStyle</string>
59
+ <string>lineScroll</string>
60
+ <string>horizontalLineScroll</string>
61
+ <string>verticalLineScroll</string>
62
+ <string>pageScroll</string>
63
+ <string>horizontalPageScroll</string>
64
+ <string>verticalPageScroll</string>
65
+ <string>scrollsDynamically</string>
66
+ <string>findBarPosition</string>
67
+ <string>usesPredominantAxisScrolling</string>
68
+ <string>horizontalScrollElasticity</string>
69
+ <string>verticalScrollElasticity</string>
70
+ </array>
71
+ <key>NSTableView</key>
72
+ <array>
73
+ <string>dataSource</string>
74
+ </array>
75
+ <key>NSTextField</key>
76
+ <array>
77
+ <string>isEditable</string>
78
+ <string>isSelectable</string>
79
+ <string>drawsBackground</string>
80
+ <string>backgroundColor</string>
81
+ <string>isBezeled</string>
82
+ <string>bezelStyle</string>
83
+ <string>isBordered</string>
84
+ </array>
85
+ <key>NSTextView</key>
86
+ <array>
87
+ <string>isEditable</string>
88
+ <string>isSelectable</string>
89
+ <string>drawsBackground</string>
90
+ <string>backgroundColor</string>
91
+ </array>
92
+ <key>NSSegmentedControl</key>
93
+ <array>
94
+ <string>segmentStyle</string>
95
+ <string>segmentCount</string>
96
+ <string>selectedSegment</string>
97
+ </array>
98
+ </dict>
99
+ </plist>
@@ -36,7 +36,7 @@
36
36
  <div id='list-tabs'>
37
37
  <ul>
38
38
  <li>
39
- <a href='#dom-dump'>View Heirarchy</a>
39
+ <a href='#dom-dump'>View Hierarchy</a>
40
40
  </li>
41
41
  <li>
42
42
  <a href='#accessible-views-tab'>Accessible Elements</a>
@@ -78,7 +78,7 @@
78
78
  <div id='ui-locator-view'></div>
79
79
  </div>
80
80
  <div id='dom-detail'>
81
- <p>Click an element in the view heirarchy on the right to see details of that element here.</p>
81
+ <p>Click an element in the view hierarchy on the right to see details of that element here.</p>
82
82
  </div>
83
83
  </div>
84
84
  </section>
@@ -44,7 +44,7 @@
44
44
  #list-tabs
45
45
  %ul
46
46
  %li
47
- %a(href="#dom-dump") View Heirarchy
47
+ %a(href="#dom-dump") View Hierarchy
48
48
  %li
49
49
  %a(href="#accessible-views-tab") Accessible Elements
50
50
  #dom-dump
@@ -73,4 +73,4 @@
73
73
  #ui-locator-view
74
74
 
75
75
  #dom-detail
76
- %p Click an element in the view heirarchy on the right to see details of that element here.
76
+ %p Click an element in the view hierarchy on the right to see details of that element here.
@@ -1,11 +1,11 @@
1
1
  RELOAD_INTERVAL = 500
2
2
 
3
- guessAtDeviceFamilyBasedOnViewDump = (viewHeir)->
4
- switch viewHeir.accessibilityFrame.size.height
3
+ guessAtDeviceFamilyBasedOnViewDump = (viewHier)->
4
+ switch viewHier.accessibilityFrame.size.height
5
5
  when 1024 then 'ipad'
6
- when 480 then 'iphone'
6
+ when 480, 568 then 'iphone'
7
7
  else
8
- console.warn( "couldn't recognize device family based on screen height of " + data.accessibilityFrame.size.height + "px" )
8
+ console.warn( "couldn't recognize device family based on screen height of " + viewHeir.accessibilityFrame.size.height + "px" )
9
9
  'unknown'
10
10
 
11
11
  define ['frank'],(frank)->
@@ -104,10 +104,10 @@ define ['frank'],(frank)->
104
104
 
105
105
  reload = ->
106
106
  deferable = $.Deferred()
107
- $.when( frank.fetchViewHeirarchy(), frank.fetchOrientation() ).done( ([rawHeir,],orientation)->
108
- deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHeir)
107
+ $.when( frank.fetchViewHierarchy(), frank.fetchOrientation() ).done( ([rawHier,],orientation)->
108
+ deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHier)
109
109
 
110
- treeView.model.resetViewHeir(rawHeir)
110
+ treeView.model.resetViewHier(rawHier)
111
111
  ersatzView.model.resetViews(treeView.model.get('allViews'),deviceFamily,orientation)
112
112
 
113
113
  accessibleViews = treeView.model.getAccessibleViews()
@@ -4,14 +4,15 @@
4
4
 
5
5
  RELOAD_INTERVAL = 500;
6
6
 
7
- guessAtDeviceFamilyBasedOnViewDump = function(viewHeir) {
8
- switch (viewHeir.accessibilityFrame.size.height) {
7
+ guessAtDeviceFamilyBasedOnViewDump = function(viewHier) {
8
+ switch (viewHier.accessibilityFrame.size.height) {
9
9
  case 1024:
10
10
  return 'ipad';
11
11
  case 480:
12
+ case 568:
12
13
  return 'iphone';
13
14
  default:
14
- console.warn("couldn't recognize device family based on screen height of " + data.accessibilityFrame.size.height + "px");
15
+ console.warn("couldn't recognize device family based on screen height of " + viewHeir.accessibilityFrame.size.height + "px");
15
16
  return 'unknown';
16
17
  }
17
18
  };
@@ -116,11 +117,11 @@
116
117
  reload = function() {
117
118
  var deferable;
118
119
  deferable = $.Deferred();
119
- $.when(frank.fetchViewHeirarchy(), frank.fetchOrientation()).done(function(_arg1, orientation) {
120
- var accessibleViews, deviceFamily, rawHeir;
121
- rawHeir = _arg1[0];
122
- deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHeir);
123
- treeView.model.resetViewHeir(rawHeir);
120
+ $.when(frank.fetchViewHierarchy(), frank.fetchOrientation()).done(function(_arg1, orientation) {
121
+ var accessibleViews, deviceFamily, rawHier;
122
+ rawHier = _arg1[0];
123
+ deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHier);
124
+ treeView.model.resetViewHier(rawHier);
124
125
  ersatzView.model.resetViews(treeView.model.get('allViews'), deviceFamily, orientation);
125
126
  accessibleViews = treeView.model.getAccessibleViews();
126
127
  accessibleViewsView.collection.reset(accessibleViews);
@@ -1,7 +1,7 @@
1
1
  define ->
2
2
  ExperimentBarModel = Backbone.Model.extend
3
3
  defaults:
4
- engines: ['shelley_compat','uiquery']
4
+ engines: ['shelley_compat','uiquery','calabash_uispec']
5
5
  selectorEngine: 'shelley_compat'
6
6
  selector: ''
7
7
 
@@ -4,7 +4,7 @@
4
4
  var ExperimentBarModel;
5
5
  return ExperimentBarModel = Backbone.Model.extend({
6
6
  defaults: {
7
- engines: ['shelley_compat', 'uiquery'],
7
+ engines: ['shelley_compat', 'uiquery', 'calabash_uispec'],
8
8
  selectorEngine: 'shelley_compat',
9
9
  selector: ''
10
10
  },
@@ -18,7 +18,8 @@ define ['experiment_bar_model','dropdown_control'], (ExperimentBarModel,Dropdown
18
18
  @engineDropdownView.setElement(@$('.selector-engine'))
19
19
  @engineDropdownView.collection.reset([
20
20
  {name: 'shelley_compat', text:'Shelley'},
21
- {name: 'uiquery', text:'UIQuery'}
21
+ {name: 'uiquery', text:'UIQuery'},
22
+ {name: 'calabash_uispec', text:'Calabash'}
22
23
  ])
23
24
  @engineDropdownView.collection.at(0).select()
24
25
  @engineDropdownView.collection.on 'option-clicked', (option)=>
@@ -33,6 +33,9 @@
33
33
  }, {
34
34
  name: 'uiquery',
35
35
  text: 'UIQuery'
36
+ }, {
37
+ name: 'calabash_uispec',
38
+ text: 'Calabash'
36
39
  }
37
40
  ]);
38
41
  this.engineDropdownView.collection.at(0).select();
@@ -10,7 +10,7 @@ displayErrorResponse = (response)->
10
10
  """Frank isn't happy: #{response.reason}
11
11
  details: #{response.details}""")
12
12
 
13
- fetchViewHeirarchy = ->
13
+ fetchViewHierarchy = ->
14
14
  request = $.ajax
15
15
  type: "POST",
16
16
  dataType: "json",
@@ -68,7 +68,7 @@ sendMapRequest = ({selector, engine, methodName, methodArgs} )->
68
68
 
69
69
 
70
70
  define ->
71
- fetchViewHeirarchy: fetchViewHeirarchy
71
+ fetchViewHierarchy: fetchViewHierarchy
72
72
  fetchOrientation: fetchOrientation
73
73
  requestSnapshotRefresh: requestSnapshotRefresh
74
74
  baseScreenshotUrl: ->
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- var baseUrlFor, cacheBust, displayErrorResponse, fetchOrientation, fetchViewHeirarchy, isErrorResponse, requestSnapshotRefresh, sendMapRequest;
2
+ var baseUrlFor, cacheBust, displayErrorResponse, fetchOrientation, fetchViewHierarchy, isErrorResponse, requestSnapshotRefresh, sendMapRequest;
3
3
 
4
4
  cacheBust = function(url) {
5
5
  return "" + url + "?" + ((new Date()).getTime());
@@ -17,7 +17,7 @@
17
17
  return alert("Frank isn't happy: " + response.reason + "\ndetails: " + response.details);
18
18
  };
19
19
 
20
- fetchViewHeirarchy = function() {
20
+ fetchViewHierarchy = function() {
21
21
  var request;
22
22
  return request = $.ajax({
23
23
  type: "POST",
@@ -82,7 +82,7 @@
82
82
 
83
83
  define(function() {
84
84
  return {
85
- fetchViewHeirarchy: fetchViewHeirarchy,
85
+ fetchViewHierarchy: fetchViewHierarchy,
86
86
  fetchOrientation: fetchOrientation,
87
87
  requestSnapshotRefresh: requestSnapshotRefresh,
88
88
  baseScreenshotUrl: function() {
@@ -1,4 +1,4 @@
1
- define ['view_heir_model'],(ViewHeirModel)->
1
+ define ['view_hier_model'],(ViewHierModel)->
2
2
 
3
3
  TreeNodeView = Backbone.View.extend
4
4
  tagName: 'li'
@@ -42,7 +42,7 @@ define ['view_heir_model'],(ViewHeirModel)->
42
42
  el: $('#dom-dump > ul')
43
43
 
44
44
  initialize: ->
45
- @model = new ViewHeirModel()
45
+ @model = new ViewHierModel()
46
46
  @model.on 'change', _.bind(@refresh,@)
47
47
 
48
48
  refresh: ->
@@ -1,6 +1,6 @@
1
1
  (function() {
2
2
 
3
- define(['view_heir_model'], function(ViewHeirModel) {
3
+ define(['view_hier_model'], function(ViewHierModel) {
4
4
  var TreeNodeView, TreeView;
5
5
  TreeNodeView = Backbone.View.extend({
6
6
  tagName: 'li',
@@ -44,7 +44,7 @@
44
44
  return TreeView = Backbone.View.extend({
45
45
  el: $('#dom-dump > ul'),
46
46
  initialize: function() {
47
- this.model = new ViewHeirModel();
47
+ this.model = new ViewHierModel();
48
48
  return this.model.on('change', _.bind(this.refresh, this));
49
49
  },
50
50
  refresh: function() {
@@ -10,11 +10,11 @@ define ['view_model'], (ViewModel)->
10
10
 
11
11
 
12
12
 
13
- ViewHeirModel = Backbone.Model.extend
13
+ ViewHierModel = Backbone.Model.extend
14
14
  getAccessibleViews: ->
15
15
  @get( 'allViews' ).filter (viewModel)-> viewModel.has('accessibilityLabel')
16
16
 
17
- resetViewHeir: (rawRootView)->
17
+ resetViewHier: (rawRootView)->
18
18
  rootViewModel = new ViewModel(rawRootView)
19
19
  allViews = new ViewCollection( flatten( rootViewModel ) )
20
20
 
@@ -34,4 +34,4 @@ define ['view_model'], (ViewModel)->
34
34
  @set( 'allViews', allViews )
35
35
 
36
36
 
37
- ViewHeirModel
37
+ ViewHierModel
@@ -1,7 +1,7 @@
1
1
  (function() {
2
2
 
3
3
  define(['view_model'], function(ViewModel) {
4
- var ViewCollection, ViewHeirModel, flatten;
4
+ var ViewCollection, ViewHierModel, flatten;
5
5
  ViewCollection = Backbone.Collection;
6
6
  flatten = function(rootViewModel) {
7
7
  var childViewModel, flattenedViewModels, _i, _len, _ref;
@@ -13,13 +13,13 @@
13
13
  }
14
14
  return flattenedViewModels;
15
15
  };
16
- ViewHeirModel = Backbone.Model.extend({
16
+ ViewHierModel = Backbone.Model.extend({
17
17
  getAccessibleViews: function() {
18
18
  return this.get('allViews').filter(function(viewModel) {
19
19
  return viewModel.has('accessibilityLabel');
20
20
  });
21
21
  },
22
- resetViewHeir: function(rawRootView) {
22
+ resetViewHier: function(rawRootView) {
23
23
  var allViews, rootViewModel,
24
24
  _this = this;
25
25
  rootViewModel = new ViewModel(rawRootView);
@@ -42,7 +42,7 @@
42
42
  return this.set('allViews', allViews);
43
43
  }
44
44
  });
45
- return ViewHeirModel;
45
+ return ViewHierModel;
46
46
  });
47
47
 
48
48
  }).call(this);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Frank
2
2
  module Cucumber
3
- VERSION = "1.1.7"
3
+ VERSION = "1.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frank-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-05 00:00:00.000000000 Z
13
+ date: 2013-02-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: cucumber
@@ -333,8 +333,8 @@ files:
333
333
  - frank-skeleton/frank_static_resources.bundle/js/transform_stack.js
334
334
  - frank-skeleton/frank_static_resources.bundle/js/tree_view.coffee
335
335
  - frank-skeleton/frank_static_resources.bundle/js/tree_view.js
336
- - frank-skeleton/frank_static_resources.bundle/js/view_heir_model.coffee
337
- - frank-skeleton/frank_static_resources.bundle/js/view_heir_model.js
336
+ - frank-skeleton/frank_static_resources.bundle/js/view_hier_model.coffee
337
+ - frank-skeleton/frank_static_resources.bundle/js/view_hier_model.js
338
338
  - frank-skeleton/frank_static_resources.bundle/js/view_model.coffee
339
339
  - frank-skeleton/frank_static_resources.bundle/js/view_model.js
340
340
  - frank-skeleton/frank_static_resources.bundle/pictos/index.html
@@ -360,6 +360,7 @@ files:
360
360
  - frank-skeleton/frank_static_resources.bundle/stylesheets/sass/_z_index.scss
361
361
  - frank-skeleton/frank_static_resources.bundle/stylesheets/sass/symbiote.scss
362
362
  - frank-skeleton/frank_static_resources.bundle/ViewAttributeMapping.plist
363
+ - frank-skeleton/frank_static_resources.bundle/ViewAttributeMappingMac.plist
363
364
  homepage: http://rubygems.org/gems/frank-cucumber
364
365
  licenses: []
365
366
  post_install_message: