frank-cucumber 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/frank-skeleton/frank_static_resources.bundle/ViewAttributeMappingMac.plist +99 -0
- data/frank-skeleton/frank_static_resources.bundle/index.html +2 -2
- data/frank-skeleton/frank_static_resources.bundle/index.html.haml +2 -2
- data/frank-skeleton/frank_static_resources.bundle/js/controller.coffee +7 -7
- data/frank-skeleton/frank_static_resources.bundle/js/controller.js +9 -8
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.coffee +1 -1
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_model.js +1 -1
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.coffee +2 -1
- data/frank-skeleton/frank_static_resources.bundle/js/experiment_bar_view.js +3 -0
- data/frank-skeleton/frank_static_resources.bundle/js/frank.coffee +2 -2
- data/frank-skeleton/frank_static_resources.bundle/js/frank.js +3 -3
- data/frank-skeleton/frank_static_resources.bundle/js/tree_view.coffee +2 -2
- data/frank-skeleton/frank_static_resources.bundle/js/tree_view.js +2 -2
- data/frank-skeleton/frank_static_resources.bundle/js/{view_heir_model.coffee → view_hier_model.coffee} +3 -3
- data/frank-skeleton/frank_static_resources.bundle/js/{view_heir_model.js → view_hier_model.js} +4 -4
- data/frank-skeleton/libCocoaAsyncSocket.a +0 -0
- data/frank-skeleton/libCocoaAsyncSocketMac.a +0 -0
- data/frank-skeleton/libCocoaHTTPServer.a +0 -0
- data/frank-skeleton/libCocoaHTTPServerMac.a +0 -0
- data/frank-skeleton/libCocoaLumberjack.a +0 -0
- data/frank-skeleton/libCocoaLumberjackMac.a +0 -0
- data/frank-skeleton/libFrank.a +0 -0
- data/frank-skeleton/libFrankMac.a +0 -0
- data/frank-skeleton/libShelley.a +0 -0
- data/lib/frank-cucumber/version.rb +1 -1
- 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
|
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
|
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
|
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
|
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 = (
|
4
|
-
switch
|
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 " +
|
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.
|
108
|
-
deviceFamily = guessAtDeviceFamilyBasedOnViewDump(
|
107
|
+
$.when( frank.fetchViewHierarchy(), frank.fetchOrientation() ).done( ([rawHier,],orientation)->
|
108
|
+
deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHier)
|
109
109
|
|
110
|
-
treeView.model.
|
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(
|
8
|
-
switch (
|
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 " +
|
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.
|
120
|
-
var accessibleViews, deviceFamily,
|
121
|
-
|
122
|
-
deviceFamily = guessAtDeviceFamilyBasedOnViewDump(
|
123
|
-
treeView.model.
|
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);
|
@@ -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)=>
|
@@ -10,7 +10,7 @@ displayErrorResponse = (response)->
|
|
10
10
|
"""Frank isn't happy: #{response.reason}
|
11
11
|
details: #{response.details}""")
|
12
12
|
|
13
|
-
|
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
|
-
|
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,
|
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
|
-
|
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
|
-
|
85
|
+
fetchViewHierarchy: fetchViewHierarchy,
|
86
86
|
fetchOrientation: fetchOrientation,
|
87
87
|
requestSnapshotRefresh: requestSnapshotRefresh,
|
88
88
|
baseScreenshotUrl: function() {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
define ['
|
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
|
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(['
|
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
|
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
|
-
|
13
|
+
ViewHierModel = Backbone.Model.extend
|
14
14
|
getAccessibleViews: ->
|
15
15
|
@get( 'allViews' ).filter (viewModel)-> viewModel.has('accessibilityLabel')
|
16
16
|
|
17
|
-
|
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
|
-
|
37
|
+
ViewHierModel
|
data/frank-skeleton/frank_static_resources.bundle/js/{view_heir_model.js → view_hier_model.js}
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
(function() {
|
2
2
|
|
3
3
|
define(['view_model'], function(ViewModel) {
|
4
|
-
var ViewCollection,
|
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
|
-
|
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
|
-
|
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
|
45
|
+
return ViewHierModel;
|
46
46
|
});
|
47
47
|
|
48
48
|
}).call(this);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/frank-skeleton/libFrank.a
CHANGED
Binary file
|
Binary file
|
data/frank-skeleton/libShelley.a
CHANGED
Binary file
|
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.
|
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-
|
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/
|
337
|
-
- frank-skeleton/frank_static_resources.bundle/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:
|