sc-frank-cucumber 1.2.1.00af28c → 1.2.1.b7791c5.debug

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. data/frank-skeleton/frank_static_resources.bundle/bundle/ViewAttributeMapping.plist +63 -0
  2. data/frank-skeleton/frank_static_resources.bundle/bundle/ViewAttributeMappingMac.plist +99 -0
  3. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/ViewAttributeMapping.plist +63 -0
  4. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/ViewAttributeMappingMac.plist +99 -0
  5. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/ajax-loader.gif +0 -0
  6. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/file.gif +0 -0
  7. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/folder-closed.gif +0 -0
  8. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/folder.gif +0 -0
  9. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/loader.gif +0 -0
  10. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/loader.png +0 -0
  11. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/minus.gif +0 -0
  12. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/plus.gif +0 -0
  13. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-black-line.gif +0 -0
  14. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-black.gif +0 -0
  15. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-default-line.gif +0 -0
  16. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-default.gif +0 -0
  17. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-famfamfam-line.gif +0 -0
  18. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-famfamfam.gif +0 -0
  19. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-gray-line.gif +0 -0
  20. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-gray.gif +0 -0
  21. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-red-line.gif +0 -0
  22. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/images/treeview-red.gif +0 -0
  23. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/index.html +86 -0
  24. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/index.html.haml +76 -0
  25. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.coffee +41 -0
  26. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/accessible_views_view.js +46 -0
  27. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/controller.coffee +134 -0
  28. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/controller.js +139 -0
  29. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/details_view.coffee +42 -0
  30. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/details_view.js +51 -0
  31. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/dropdown_control.coffee +64 -0
  32. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/dropdown_control.js +73 -0
  33. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_model.coffee +46 -0
  34. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_model.js +60 -0
  35. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_view.coffee +167 -0
  36. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/ersatz_view.js +205 -0
  37. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_model.coffee +10 -0
  38. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_model.js +17 -0
  39. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_view.coffee +44 -0
  40. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/experiment_bar_view.js +63 -0
  41. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/frank.coffee +96 -0
  42. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/frank.js +146 -0
  43. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/backbone.js +1431 -0
  44. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/coffee-script.js +8 -0
  45. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery-ui.min.js +405 -0
  46. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery.min.js +4 -0
  47. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/jquery.treeview.js +251 -0
  48. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/json2.js +481 -0
  49. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/raphael.js +5815 -0
  50. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/require.js +2053 -0
  51. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/lib/underscore.js +1059 -0
  52. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/main.coffee +27 -0
  53. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/main.js +29 -0
  54. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tabs_controller.coffee +13 -0
  55. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tabs_controller.js +22 -0
  56. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.coffee +15 -0
  57. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/toast_controller.js +28 -0
  58. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/transform_stack.coffee +59 -0
  59. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/transform_stack.js +78 -0
  60. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tree_view.coffee +53 -0
  61. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/tree_view.js +64 -0
  62. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_hier_model.coffee +37 -0
  63. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_hier_model.js +48 -0
  64. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_model.coffee +39 -0
  65. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/js/view_model.js +62 -0
  66. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/index.html +329 -0
  67. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.eot +0 -0
  68. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.svg +114 -0
  69. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.ttf +0 -0
  70. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos-web.woff +0 -0
  71. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos.css +20 -0
  72. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/pictos/pictos_base64.css +18 -0
  73. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/css/symbiote.css +1 -0
  74. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_elements.scss +28 -0
  75. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_header.scss +61 -0
  76. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_inspect_tabs_list_tabs.scss +194 -0
  77. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_jquery.treeview.scss +68 -0
  78. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_jqui.scss +2 -0
  79. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_layout.scss +13 -0
  80. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_mixins.sass +137 -0
  81. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_reset.scss +32 -0
  82. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_selector_test_toolbar.scss +81 -0
  83. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_solarized.scss +16 -0
  84. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_typography.scss +11 -0
  85. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_unicode.scss +3 -0
  86. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/_z_index.scss +2 -0
  87. data/frank-skeleton/frank_static_resources.bundle/bundle/bundle/stylesheets/sass/symbiote.scss +26 -0
  88. data/frank-skeleton/frank_static_resources.bundle/bundle/images/ajax-loader.gif +0 -0
  89. data/frank-skeleton/frank_static_resources.bundle/bundle/images/file.gif +0 -0
  90. data/frank-skeleton/frank_static_resources.bundle/bundle/images/folder-closed.gif +0 -0
  91. data/frank-skeleton/frank_static_resources.bundle/bundle/images/folder.gif +0 -0
  92. data/frank-skeleton/frank_static_resources.bundle/bundle/images/loader.gif +0 -0
  93. data/frank-skeleton/frank_static_resources.bundle/bundle/images/loader.png +0 -0
  94. data/frank-skeleton/frank_static_resources.bundle/bundle/images/minus.gif +0 -0
  95. data/frank-skeleton/frank_static_resources.bundle/bundle/images/plus.gif +0 -0
  96. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-black-line.gif +0 -0
  97. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-black.gif +0 -0
  98. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-default-line.gif +0 -0
  99. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-default.gif +0 -0
  100. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-famfamfam-line.gif +0 -0
  101. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-famfamfam.gif +0 -0
  102. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-gray-line.gif +0 -0
  103. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-gray.gif +0 -0
  104. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-red-line.gif +0 -0
  105. data/frank-skeleton/frank_static_resources.bundle/bundle/images/treeview-red.gif +0 -0
  106. data/frank-skeleton/frank_static_resources.bundle/bundle/index.html +86 -0
  107. data/frank-skeleton/frank_static_resources.bundle/bundle/index.html.haml +76 -0
  108. data/frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.coffee +41 -0
  109. data/frank-skeleton/frank_static_resources.bundle/bundle/js/accessible_views_view.js +46 -0
  110. data/frank-skeleton/frank_static_resources.bundle/bundle/js/controller.coffee +134 -0
  111. data/frank-skeleton/frank_static_resources.bundle/bundle/js/controller.js +139 -0
  112. data/frank-skeleton/frank_static_resources.bundle/bundle/js/details_view.coffee +42 -0
  113. data/frank-skeleton/frank_static_resources.bundle/bundle/js/details_view.js +51 -0
  114. data/frank-skeleton/frank_static_resources.bundle/bundle/js/dropdown_control.coffee +64 -0
  115. data/frank-skeleton/frank_static_resources.bundle/bundle/js/dropdown_control.js +73 -0
  116. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_model.coffee +46 -0
  117. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_model.js +60 -0
  118. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_view.coffee +167 -0
  119. data/frank-skeleton/frank_static_resources.bundle/bundle/js/ersatz_view.js +205 -0
  120. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_model.coffee +10 -0
  121. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_model.js +17 -0
  122. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_view.coffee +44 -0
  123. data/frank-skeleton/frank_static_resources.bundle/bundle/js/experiment_bar_view.js +63 -0
  124. data/frank-skeleton/frank_static_resources.bundle/bundle/js/frank.coffee +96 -0
  125. data/frank-skeleton/frank_static_resources.bundle/bundle/js/frank.js +146 -0
  126. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/backbone.js +1431 -0
  127. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/coffee-script.js +8 -0
  128. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery-ui.min.js +405 -0
  129. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery.min.js +4 -0
  130. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/jquery.treeview.js +251 -0
  131. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/json2.js +481 -0
  132. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/raphael.js +5815 -0
  133. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/require.js +2053 -0
  134. data/frank-skeleton/frank_static_resources.bundle/bundle/js/lib/underscore.js +1059 -0
  135. data/frank-skeleton/frank_static_resources.bundle/bundle/js/main.coffee +27 -0
  136. data/frank-skeleton/frank_static_resources.bundle/bundle/js/main.js +29 -0
  137. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tabs_controller.coffee +13 -0
  138. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tabs_controller.js +22 -0
  139. data/frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.coffee +15 -0
  140. data/frank-skeleton/frank_static_resources.bundle/bundle/js/toast_controller.js +28 -0
  141. data/frank-skeleton/frank_static_resources.bundle/bundle/js/transform_stack.coffee +59 -0
  142. data/frank-skeleton/frank_static_resources.bundle/bundle/js/transform_stack.js +78 -0
  143. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tree_view.coffee +53 -0
  144. data/frank-skeleton/frank_static_resources.bundle/bundle/js/tree_view.js +64 -0
  145. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_hier_model.coffee +37 -0
  146. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_hier_model.js +48 -0
  147. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_model.coffee +39 -0
  148. data/frank-skeleton/frank_static_resources.bundle/bundle/js/view_model.js +62 -0
  149. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/index.html +329 -0
  150. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.eot +0 -0
  151. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.svg +114 -0
  152. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.ttf +0 -0
  153. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos-web.woff +0 -0
  154. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos.css +20 -0
  155. data/frank-skeleton/frank_static_resources.bundle/bundle/pictos/pictos_base64.css +18 -0
  156. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/css/symbiote.css +1 -0
  157. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_elements.scss +28 -0
  158. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_header.scss +61 -0
  159. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_inspect_tabs_list_tabs.scss +194 -0
  160. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_jquery.treeview.scss +68 -0
  161. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_jqui.scss +2 -0
  162. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_layout.scss +13 -0
  163. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_mixins.sass +137 -0
  164. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_reset.scss +32 -0
  165. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_selector_test_toolbar.scss +81 -0
  166. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_solarized.scss +16 -0
  167. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_typography.scss +11 -0
  168. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_unicode.scss +3 -0
  169. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/_z_index.scss +2 -0
  170. data/frank-skeleton/frank_static_resources.bundle/bundle/stylesheets/sass/symbiote.scss +26 -0
  171. data/frank-skeleton/frank_static_resources.bundle/js/ersatz_view.js +3 -3
  172. data/frank-skeleton/frank_static_resources.bundle/js/frank.js +1 -1
  173. data/frank-skeleton/libCocoaAsyncSocket.a +0 -0
  174. data/frank-skeleton/libCocoaAsyncSocketMac.a +0 -0
  175. data/frank-skeleton/libCocoaHTTPServer.a +0 -0
  176. data/frank-skeleton/libCocoaHTTPServerMac.a +0 -0
  177. data/frank-skeleton/libCocoaLumberjack.a +0 -0
  178. data/frank-skeleton/libCocoaLumberjackMac.a +0 -0
  179. data/frank-skeleton/libFrank.a +0 -0
  180. data/frank-skeleton/libFrankMac.a +0 -0
  181. data/frank-skeleton/libShelley.a +0 -0
  182. data/lib/frank-cucumber/frank_helper.rb +27 -0
  183. data/lib/frank-cucumber/frankifier.rb +7 -4
  184. data/lib/frank-cucumber/version.rb +1 -1
  185. metadata +173 -3
@@ -0,0 +1,32 @@
1
+ /* css reset based on the work by eric meyer */
2
+ html,body {position:relative;margin:0;padding:0;min-height:100%;width:100%;height:100%;}
3
+ div,p,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td, keygen, select, button, button::-moz-focus-inner, isindex, hr {margin:0;padding:0;}
4
+ table {border-collapse:collapse;border-spacing:0;}
5
+ fieldset,img {border:0;}
6
+ input, textarea{border:none;outline:none;padding:none;background-color:#fff;}
7
+ address,caption,cite,code,dfn,th,var {font-style:normal;font-weight:normal;}
8
+ ol,ul {list-style:none;}
9
+ li {list-style-type: none;}
10
+ caption,th {text-align:left;}
11
+ em, strong {font-style: normal; font-weight: normal;}
12
+ h1,h2,h3,h4,h5,h6 {font-size:100%;font-weight:normal;}
13
+ q:before,q:after {content:'';}
14
+ abbr,acronym {border:0;}
15
+ a, a:hover, a:visited, a:active, a:link {text-decoration:none;}
16
+ form {display: block;}
17
+ textarea:focus, input:focus, select:focus {outline: none;}
18
+ input, textarea, keygen, select, button, isindex { font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; line-height: inherit; text-transform: none; text-indent: 0; text-shadow: inherit; display: inline-block; text-align: inherit; border: none; }
19
+ /* html5 block elements for IE. Stop using IE. */
20
+ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, address {display: block;}
21
+ .clear, .clearfloat {clear:both;}
22
+ h1,h2,h3,h4,h5,h6 {font-size: 1.0em; }
23
+
24
+ /* save your sanity */
25
+ * {
26
+ -webkit-box-sizing: border-box;
27
+ -khtml-box-sizing: border-box;
28
+ -icab-box-sizing: border-box;
29
+ -moz-box-sizing: border-box;
30
+ -o-box-sizing: border-box;
31
+ box-sizing: border-box;
32
+ }
@@ -0,0 +1,81 @@
1
+ //----------------------------------------------
2
+ // horizontal layout
3
+ $wrap-middle-width: 60%;
4
+ $wrap-outter-width: (100% - $wrap-middle-width)/2;
5
+ //----------------------------------------------
6
+
7
+ #selector-test {
8
+ position: relative;
9
+ text-align: center;
10
+ padding: $selector-test-toolbar-vt-padding 0;
11
+ .wrap {
12
+ display: inline-block;
13
+ position: relative;
14
+ vertical-align: middle;
15
+ padding: 0 .5em;
16
+ &.middle { width: $wrap-middle-width; }
17
+ &.outter { width: $wrap-outter-width; }
18
+ }//.wrap
19
+
20
+ #query { width: 100%; }
21
+
22
+ label {
23
+ display: block;
24
+ text-align: left;
25
+ text-transform: capitalize;
26
+ &:after {
27
+ content: "#{$arrow-right-down}";
28
+ font-size: .8em;
29
+ font-weight: bold;
30
+ padding-left: .3em;
31
+ }
32
+ }//label
33
+ }//#selector-test
34
+
35
+ $drop-indicator-width: 2em;
36
+
37
+ .dropdown {
38
+ position: relative;
39
+ display: block;
40
+ width: 100%;
41
+
42
+ * { z-index: $dropdown-child-z; }
43
+
44
+ button {
45
+ position: relative;
46
+ width: 100%;
47
+ padding-left: .8em;
48
+ padding-right: $drop-indicator-width;
49
+ white-space: nowrap;
50
+ overflow: hidden;
51
+ text-overflow: ellipsis;
52
+ }//button
53
+
54
+ ul {
55
+ position: absolute;
56
+ top: 100%;
57
+ width: 100%;
58
+ float: left;
59
+ opacity: 0;
60
+ visibility: hidden;
61
+ @include transition-two( visibility 0s linear 0.2s,opacity 0.2s linear );
62
+ &.shown {
63
+ opacity: 1;
64
+ visibility:visible;
65
+ @include transition-delay( 0s );
66
+ }//&.shown
67
+ }//ul
68
+
69
+ .drop-indicator {
70
+ color: #eee;
71
+ position: absolute;
72
+ width: $drop-indicator-width;
73
+ right: 0;
74
+ top: 6px;
75
+ bottom: 6px;
76
+ border-left: 1px solid white;
77
+ text-align: center;
78
+ cursor: pointer;
79
+ @include user-select( none );
80
+ }//.drop-indicator
81
+ }//.dropdown
@@ -0,0 +1,16 @@
1
+ $base03: #002b36 !default; //darkest blue
2
+ $base02: #073642 !default; //dark blue
3
+ $base01: #586e75 !default; //darkest gray
4
+ $base00: #657b83 !default; //dark gray
5
+ $base0: #839496 !default; //medium gray
6
+ $base1: #93a1a1 !default; //medium light gray
7
+ $base2: #eee8d5 !default; //cream
8
+ $base3: #fdf6e3 !default; //white
9
+ $solar-yellow: #b58900 !default;
10
+ $solar-orange: #cb4b16 !default;
11
+ $solar-red: #dc322f !default;
12
+ $solar-magenta: #d33682 !default;
13
+ $solar-violet: #6c71c4 !default;
14
+ $solar-blue: #268bd2 !default;
15
+ $solar-cyan: #2aa198 !default;
16
+ $solar-green: #859900 !default;
@@ -0,0 +1,11 @@
1
+ $sans: "Helvetica Neue", "HelveticaNeue", Arial;
2
+
3
+ $base-font-size: 16px;
4
+ $base-line-height: 24px;
5
+ $label-line-height: $base-line-height;
6
+
7
+
8
+ @mixin light-text {
9
+ color: #fff;
10
+ text-shadow: 0 -1px rgba(0,0,0, .3);
11
+ }
@@ -0,0 +1,3 @@
1
+ $arrow-right-down: "\21b4";
2
+ $arrow-down-right: "\21b3";
3
+ $arrow-right: "\2192";
@@ -0,0 +1,2 @@
1
+ $ui-locator-view-z: -1;
2
+ $dropdown-child-z: 1;
@@ -0,0 +1,26 @@
1
+ //-------------------------------
2
+ // primary application file
3
+ // all partials should be loaded here.
4
+ //-------------------------------
5
+ // base
6
+ @import "_unicode.scss";
7
+ @import "_mixins.sass";
8
+ @import "_solarized.scss";
9
+ @import "_typography.scss";
10
+ @import "_z_index.scss";
11
+ //----------------------------------
12
+ @import "_reset.scss";
13
+ @import "_elements.scss";
14
+ //----------------------------------
15
+ // global layout affords control
16
+ // over container heights.
17
+ @import "_layout.scss";
18
+ //----------------------------------
19
+ // partials
20
+ @import "_header.scss";
21
+ @import "_selector_test_toolbar.scss";
22
+ @import "_inspect_tabs_list_tabs.scss";
23
+ //-------------------------------
24
+ // vender
25
+ @import "_jquery.treeview.scss";
26
+ @import "_jqui.scss";
@@ -0,0 +1,86 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset='utf-8' />
5
+ <title>Symbiote</title>
6
+ <script src='js/lib/jquery.min.js'></script>
7
+ <script src='js/lib/jquery-ui.min.js'></script>
8
+ <script src='js/lib/jquery.treeview.js'></script>
9
+ <script src='js/lib/coffee-script.js'></script>
10
+ <script src='js/lib/raphael.js'></script>
11
+ <script src='js/lib/underscore.js'></script>
12
+ <script src='js/lib/backbone.js'></script>
13
+ <script src='js/lib/json2.js'></script>
14
+ <script data-main='/js/main' src='js/lib/require.js'></script>
15
+ <link href='/stylesheets/css/symbiote.css' rel='stylesheet' />
16
+ <link href='pictos/pictos.css' rel='stylesheet' />
17
+ </head>
18
+ <body>
19
+ <header id='header'>
20
+ <h1>symbiote</h1>
21
+ <div class='toast'></div>
22
+ <div id='refresh'>
23
+ <button id='dump_button'>
24
+ <span></span>
25
+ </button>
26
+ </div>
27
+ </header>
28
+ <section class='symbiote_shell'>
29
+ <article id='selector-test'><div class='wrap outter'><label class='selector-engine-label'>use</label>
30
+ <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'>
31
+ <label>and then</label>
32
+ <div class='action-buttons dropdown'></div>
33
+ </div></article>
34
+ </section>
35
+ <section class='the-columns'>
36
+ <div id='list-tabs'>
37
+ <ul>
38
+ <li>
39
+ <a href='#dom-dump'>View Hierarchy</a>
40
+ </li>
41
+ <li>
42
+ <a href='#accessible-views-tab'>Accessible Elements</a>
43
+ </li>
44
+ </ul>
45
+ <div id='dom-dump'>
46
+ <ul></ul>
47
+ </div>
48
+ <div id='accessible-views-tab'>
49
+ <div class='hints'>
50
+ <p>Here is a list of all elements with accessibility labels.</p>
51
+ <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>
52
+ </div>
53
+ <div id='accessible-views'></div>
54
+ </div>
55
+ </div>
56
+ <div id='inspect-tabs'>
57
+ <ul>
58
+ <li>
59
+ <a href='#dom-detail'>View Properties</a>
60
+ </li>
61
+ <li>
62
+ <a href='#ui-locator'>View Locator</a>
63
+ </li>
64
+ </ul>
65
+ <div id='ui-locator'>
66
+ <div id='live-view'>
67
+ <button>
68
+ Live
69
+ <span>Y</span>
70
+ </button>
71
+ </div>
72
+ <div id='asploder'>
73
+ <button>
74
+ Asplode
75
+ </button>
76
+ </div>
77
+ <button id='ui-locator-rotator'>1</button>
78
+ <div id='ui-locator-view'></div>
79
+ </div>
80
+ <div id='dom-detail'>
81
+ <p>Click an element in the view hierarchy on the right to see details of that element here.</p>
82
+ </div>
83
+ </div>
84
+ </section>
85
+ </body>
86
+ </html>
@@ -0,0 +1,76 @@
1
+ !!! 5
2
+ %html
3
+ %head
4
+ %meta(charset="utf-8")
5
+ %title Symbiote
6
+
7
+ %script(src="js/lib/jquery.min.js")
8
+ %script(src="js/lib/jquery-ui.min.js")
9
+ %script(src="js/lib/jquery.treeview.js")
10
+ %script(src="js/lib/coffee-script.js")
11
+ %script(src="js/lib/raphael.js")
12
+ %script(src="js/lib/underscore.js")
13
+ %script(src="js/lib/backbone.js")
14
+ %script(src="js/lib/json2.js")
15
+
16
+ %script(data-main="/js/main" src="js/lib/require.js")
17
+
18
+ %link(href="/stylesheets/css/symbiote.css" rel="stylesheet")
19
+ %link(href="pictos/pictos.css" rel="stylesheet")
20
+
21
+ %body
22
+ %header#header
23
+ %h1 symbiote
24
+ .toast
25
+ #refresh
26
+ %button#dump_button
27
+ %span
28
+
29
+ %section.symbiote_shell
30
+ %article#selector-test
31
+ .wrap.outter<>
32
+ %label.selector-engine-label use
33
+ .selector-engine.dropdown
34
+
35
+ .wrap.middle<>
36
+ %label.query<> to select views matching
37
+ %input#query(placeholder="Selector label marked:'Search'")<>
38
+
39
+ .wrap.outter>
40
+ %label and then
41
+ .action-buttons.dropdown
42
+
43
+ %section.the-columns
44
+ #list-tabs
45
+ %ul
46
+ %li
47
+ %a(href="#dom-dump") View Hierarchy
48
+ %li
49
+ %a(href="#accessible-views-tab") Accessible Elements
50
+ #dom-dump
51
+ %ul
52
+ #accessible-views-tab
53
+ %div.hints
54
+ %p Here is a list of all elements with accessibility labels.
55
+ %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.
56
+ #accessible-views
57
+
58
+ #inspect-tabs
59
+ %ul
60
+ %li
61
+ %a(href="#dom-detail") View Properties
62
+ %li
63
+ %a(href="#ui-locator") View Locator
64
+ #ui-locator
65
+ #live-view
66
+ %button
67
+ Live
68
+ %span Y
69
+ #asploder
70
+ %button
71
+ Asplode
72
+ %button#ui-locator-rotator 1
73
+ #ui-locator-view
74
+
75
+ #dom-detail
76
+ %p Click an element in the view hierarchy on the right to see details of that element here.
@@ -0,0 +1,41 @@
1
+ define ->
2
+ AccessibleViewItemView = Backbone.View.extend
3
+ tagName: 'div'
4
+
5
+ events:
6
+ "click": "clicked"
7
+ "mouseover":"mousedover"
8
+ "mouseout":"mousedout"
9
+
10
+ render: ->
11
+ @$el.empty().append( """
12
+ <a href="#" title="#{@model.getShelleySelector()}">
13
+ <span class="viewClass">#{@model.get('class')}</span>
14
+ with label
15
+ "<span class="viewLabel">#{@model.get('accessibilityLabel')}</span>"
16
+ </a>
17
+ """)
18
+ @
19
+
20
+ mousedover: -> @model.setActive()
21
+ mousedout: -> @model.unsetActive()
22
+
23
+ clicked: ->
24
+ @model.trigger( 'accessible-selected', @model )
25
+
26
+
27
+ AccessibleViewsView = Backbone.View.extend
28
+ el: $('#accessible-views')
29
+
30
+ initialize: ->
31
+ @collection = new Backbone.Collection
32
+ @collection.on 'reset', _.bind(@render,@)
33
+
34
+
35
+ render: ->
36
+ @$el.empty()
37
+ @collection.each (viewModel) =>
38
+ @$el.append( new AccessibleViewItemView(model:viewModel).render().el )
39
+ @
40
+
41
+ AccessibleViewsView
@@ -0,0 +1,46 @@
1
+ (function() {
2
+
3
+ define(function() {
4
+ var AccessibleViewItemView, AccessibleViewsView;
5
+ AccessibleViewItemView = Backbone.View.extend({
6
+ tagName: 'div',
7
+ events: {
8
+ "click": "clicked",
9
+ "mouseover": "mousedover",
10
+ "mouseout": "mousedout"
11
+ },
12
+ render: function() {
13
+ this.$el.empty().append("<a href=\"#\" title=\"" + (this.model.getShelleySelector()) + "\">\n <span class=\"viewClass\">" + (this.model.get('class')) + "</span>\n with label\n \"<span class=\"viewLabel\">" + (this.model.get('accessibilityLabel')) + "</span>\"\n</a>");
14
+ return this;
15
+ },
16
+ mousedover: function() {
17
+ return this.model.setActive();
18
+ },
19
+ mousedout: function() {
20
+ return this.model.unsetActive();
21
+ },
22
+ clicked: function() {
23
+ return this.model.trigger('accessible-selected', this.model);
24
+ }
25
+ });
26
+ AccessibleViewsView = Backbone.View.extend({
27
+ el: $('#accessible-views'),
28
+ initialize: function() {
29
+ this.collection = new Backbone.Collection;
30
+ return this.collection.on('reset', _.bind(this.render, this));
31
+ },
32
+ render: function() {
33
+ var _this = this;
34
+ this.$el.empty();
35
+ this.collection.each(function(viewModel) {
36
+ return _this.$el.append(new AccessibleViewItemView({
37
+ model: viewModel
38
+ }).render().el);
39
+ });
40
+ return this;
41
+ }
42
+ });
43
+ return AccessibleViewsView;
44
+ });
45
+
46
+ }).call(this);
@@ -0,0 +1,134 @@
1
+ RELOAD_INTERVAL = 500
2
+
3
+ guessAtDeviceFamilyBasedOnViewDump = (viewHier)->
4
+ switch viewHier.accessibilityFrame.size.height
5
+ when 1024 then 'ipad'
6
+ when 480, 568 then 'iphone'
7
+ else
8
+ console.warn( "couldn't recognize device family based on screen height of " + viewHeir.accessibilityFrame.size.height + "px" )
9
+ 'unknown'
10
+
11
+ define ['frank'],(frank)->
12
+
13
+ createController = ({
14
+ tabsController,
15
+ toastController,
16
+ treeView,
17
+ ersatzView,
18
+ detailsView,
19
+ accessibleViewsView,
20
+ experimentBarModel,
21
+ $asplodeButton,
22
+ $reloadButton,
23
+ $liveButton})->
24
+
25
+ treeView.model.on 'active-view-changed', (viewModel)->
26
+
27
+ treeView.model.on 'selected-view-changed', (viewModel)->
28
+ detailsView.updateModel(viewModel)
29
+ tabsController.selectViewDetailsTab()
30
+
31
+ treeView.model.on 'accessible-view-selected', (viewModel)->
32
+ viewModel.setActive()
33
+ experimentBarModel.set( selector: viewModel.getShelleySelector() )
34
+
35
+
36
+ reportActionOutcome = (action,numViews)->
37
+ message = switch numViews
38
+ when 0 then "Sorry, no views matched that selector so none were #{action}"
39
+ when 1 then "1 view was #{action}"
40
+ else "#{numViews} views were #{action}"
41
+ toastController.showToastMessage(message)
42
+
43
+ validateViewSelector = (selector)->
44
+ if selector.length == 0
45
+ toastController.showToastMessage("You haven't provided a view selector. Please enter one below.")
46
+ false
47
+ else
48
+ true
49
+
50
+
51
+ experimentBarModel.on 'flash-clicked', (model)->
52
+ [selector, selectorEngine] = [model.get('selector'), model.get('selectorEngine')]
53
+ return unless validateViewSelector(selector)
54
+ frank.sendFlashCommand(
55
+ selector,
56
+ selectorEngine
57
+ ).done (data)->
58
+ reportActionOutcome( "flashed", data.length )
59
+
60
+ experimentBarModel.on 'touch-clicked', (model)->
61
+ [selector, selectorEngine] = [model.get('selector'), model.get('selectorEngine')]
62
+ return unless validateViewSelector(selector)
63
+
64
+ views = frank.sendTouchCommand(
65
+ selector,
66
+ selectorEngine
67
+ ).done (data)->
68
+ reportActionOutcome( "touched", data.length )
69
+
70
+ experimentBarModel.on 'highlight-clicked', (model)->
71
+ [selector, selectorEngine] = [model.get('selector'), model.get('selectorEngine')]
72
+ return unless validateViewSelector(selector)
73
+
74
+ views = frank.getAccessibilityFramesForViewsMatchingSelector(
75
+ selector,
76
+ selectorEngine
77
+ ).done (data)->
78
+ ersatzView.model.highlightSomeFramesForABit( data )
79
+ reportActionOutcome( "highlighted", data.length )
80
+
81
+ $asplodeButton.on 'click', ->
82
+ isAsploded = ersatzView.model.toggleAsploded()
83
+ $asplodeButton.toggleClass( 'down', isAsploded )
84
+
85
+ $reloadButton.on 'click', ->
86
+ reload().done ->
87
+ toastController.showToastMessage('views reloaded')
88
+
89
+ liveTimeout = undefined
90
+ reloadLoop = ->
91
+ reload()
92
+ liveTimeout = window.setTimeout( reloadLoop, RELOAD_INTERVAL )
93
+
94
+ $liveButton.on 'click', ->
95
+ window.clearTimeout(liveTimeout) if liveTimeout?
96
+
97
+ if $liveButton.hasClass('down')
98
+ toastController.showToastMessage('leaving live mode')
99
+ $liveButton.removeClass('down')
100
+ else
101
+ reloadLoop()
102
+ toastController.showToastMessage('entering live mode')
103
+ $liveButton.addClass('down')
104
+
105
+ reload = ->
106
+ deferable = $.Deferred()
107
+ $.when( frank.fetchViewHierarchy(), frank.fetchOrientation() ).done( ([rawHier,],orientation)->
108
+ deviceFamily = guessAtDeviceFamilyBasedOnViewDump(rawHier)
109
+
110
+ treeView.model.resetViewHier(rawHier)
111
+ ersatzView.model.resetViews(treeView.model.get('allViews'),deviceFamily,orientation)
112
+
113
+ accessibleViews = treeView.model.getAccessibleViews()
114
+ accessibleViewsView.collection.reset( accessibleViews )
115
+
116
+ ersatzView.render()
117
+ deferable.resolve()
118
+ ).fail( (args...)->
119
+ toastController.showToastMessage('encountered an error while talking to Frank')
120
+ window.alert( "Ruh roh. Encountered an error while talking to Frank.\nSee the javascript console for all the details" )
121
+ console.log( "Failed while talking to Frank.", args )
122
+ )
123
+
124
+ deferable.promise()
125
+
126
+ boot = ->
127
+ tabsController.selectLocatorTab()
128
+ reload()
129
+
130
+ {
131
+ boot: boot
132
+ }
133
+
134
+ createController