scarpe 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +7 -1
  3. data/CHANGELOG.md +36 -4
  4. data/Gemfile +2 -1
  5. data/Gemfile.lock +13 -3
  6. data/LICENSE.txt +7 -1
  7. data/README.md +77 -14
  8. data/Rakefile +67 -0
  9. data/examples/Edit_box_Styles.rb +8 -0
  10. data/examples/Kerning.rb +7 -0
  11. data/examples/border.rb +11 -0
  12. data/examples/check.rb +2 -0
  13. data/examples/download_and_show_image.rb +3 -0
  14. data/examples/flags/finland.rb +15 -0
  15. data/examples/flags/italy.rb +11 -0
  16. data/examples/flags/mauritius.rb +14 -0
  17. data/examples/font_family.rb +17 -0
  18. data/examples/font_shorthand.rb +9 -0
  19. data/examples/gen.rb +4 -0
  20. data/examples/legacy/not_checked/shoes-manual/append.rb +10 -0
  21. data/examples/legacy/not_checked/shoes-manual/background_change.rb +12 -0
  22. data/examples/legacy/not_checked/shoes-manual/background_pattern.rb +5 -0
  23. data/examples/legacy/not_checked/shoes-manual/basic_app.rb +8 -0
  24. data/examples/legacy/not_checked/shoes-manual/border.rb +9 -0
  25. data/examples/legacy/not_checked/shoes-manual/builtins/FONTS.rb +5 -0
  26. data/examples/legacy/not_checked/shoes-manual/builtins/ask.rb +2 -0
  27. data/examples/legacy/not_checked/shoes-manual/builtins/ask_color.rb +5 -0
  28. data/examples/legacy/not_checked/shoes-manual/builtins/ask_open_file.rb +5 -0
  29. data/examples/legacy/not_checked/shoes-manual/builtins/ask_save_folder.rb +2 -0
  30. data/examples/legacy/not_checked/shoes-manual/builtins/confirm.rb +4 -0
  31. data/examples/legacy/not_checked/shoes-manual/builtins/debug.rb +2 -0
  32. data/examples/legacy/not_checked/shoes-manual/builtins/info.rb +3 -0
  33. data/examples/legacy/not_checked/shoes-manual/button.rb +9 -0
  34. data/examples/legacy/not_checked/shoes-manual/clear.rb +7 -0
  35. data/examples/legacy/not_checked/shoes-manual/custom_header.rb +13 -0
  36. data/examples/legacy/not_checked/shoes-manual/displace.rb +14 -0
  37. data/examples/legacy/not_checked/shoes-manual/edit_box.rb +8 -0
  38. data/examples/legacy/not_checked/shoes-manual/fill_pattern.rb +5 -0
  39. data/examples/legacy/not_checked/shoes-manual/fonts.rb +7 -0
  40. data/examples/legacy/not_checked/shoes-manual/gutter.rb +6 -0
  41. data/examples/legacy/not_checked/shoes-manual/image_web.rb +4 -0
  42. data/examples/legacy/not_checked/shoes-manual/keypress.rb +7 -0
  43. data/examples/legacy/not_checked/shoes-manual/list_box.rb +10 -0
  44. data/examples/legacy/not_checked/shoes-manual/motion.rb +10 -0
  45. data/examples/legacy/not_checked/shoes-manual/mouse.rb +8 -0
  46. data/examples/legacy/not_checked/shoes-manual/move.rb +14 -0
  47. data/examples/legacy/not_checked/shoes-manual/nested_ovals.rb +8 -0
  48. data/examples/legacy/not_checked/shoes-manual/oval.rb +7 -0
  49. data/examples/legacy/not_checked/shoes-manual/ovals.rb +6 -0
  50. data/examples/legacy/not_checked/shoes-manual/ovals_image.rb +8 -0
  51. data/examples/legacy/not_checked/shoes-manual/prepend.rb +7 -0
  52. data/examples/legacy/not_checked/shoes-manual/progress_bar.rb +10 -0
  53. data/examples/legacy/not_checked/shoes-manual/radio.rb +18 -0
  54. data/examples/legacy/not_checked/shoes-manual/radio_alternative_1.rb +7 -0
  55. data/examples/legacy/not_checked/shoes-manual/radio_alternative_2.rb +9 -0
  56. data/examples/legacy/not_checked/shoes-manual/rotate_rectangle.rb +6 -0
  57. data/examples/legacy/not_checked/shoes-manual/shape.rb +11 -0
  58. data/examples/legacy/not_checked/shoes-manual/static/avatar.png +0 -0
  59. data/examples/legacy/not_checked/shoes-manual/stroke.rb +5 -0
  60. data/examples/legacy/not_checked/shoes-manual/style.rb +3 -0
  61. data/examples/legacy/not_checked/shoes-manual/style_alternative_1.rb +4 -0
  62. data/examples/legacy/not_checked/shoes-manual/style_alternative_2.rb +5 -0
  63. data/examples/legacy/not_checked/shoes-manual/style_length.rb +5 -0
  64. data/examples/legacy/not_checked/shoes-manual/timer.rb +6 -0
  65. data/examples/legacy/not_checked/shoes-manual/trigger_window.rb +8 -0
  66. data/examples/legacy/not_checked/shoes-manual/window_owner.rb +8 -0
  67. data/examples/legacy/working/shoes_manual/alert_button.rb +2 -0
  68. data/examples/legacy/working/shoes_manual/animate.rb +7 -0
  69. data/examples/legacy/working/shoes_manual/background_para.rb +4 -0
  70. data/examples/legacy/working/shoes_manual/button_alternative.rb +7 -0
  71. data/examples/legacy/working/shoes_manual/checkbox.rb +17 -0
  72. data/examples/legacy/working/shoes_manual/download.rb +12 -0
  73. data/examples/legacy/working/shoes_manual/edit_box.rb +6 -0
  74. data/examples/legacy/working/shoes_manual/editline.rb +7 -0
  75. data/examples/legacy/working/shoes_manual/fixed_height.rb +8 -0
  76. data/examples/legacy/working/shoes_manual/fixed_width.rb +12 -0
  77. data/examples/legacy/working/shoes_manual/image.rb +5 -0
  78. data/examples/legacy/working/shoes_manual/instance_variable_check.rb +10 -0
  79. data/examples/legacy/working/shoes_manual/message.rb +18 -0
  80. data/examples/legacy/working/shoes_manual/rectangle.rb +6 -0
  81. data/examples/legacy/working/shoes_manual/save_download.rb +12 -0
  82. data/examples/legacy/working/shoes_manual/self_check.rb +10 -0
  83. data/examples/legacy/working/shoes_manual/stack.rb +7 -0
  84. data/examples/legacy/working/shoes_manual/style_info.rb +8 -0
  85. data/examples/legacy/working/shoes_manual/utf8_support.rb +8 -0
  86. data/examples/legacy/working/shoes_manual/width.rb +4 -0
  87. data/examples/local_assets/multi_image.rb +5 -0
  88. data/examples/local_assets/small.png +0 -0
  89. data/examples/local_fonts.rb +3 -0
  90. data/examples/margin.rb +13 -0
  91. data/examples/margin_check.rb +27 -0
  92. data/examples/oval-with-kwargs.rb +3 -0
  93. data/examples/oval.rb +26 -0
  94. data/examples/para_font_styles.rb +17 -0
  95. data/examples/para_font_variant.rb +6 -0
  96. data/examples/para_fontweight.rb +13 -0
  97. data/examples/parse_xl_funnies.rb +3 -0
  98. data/examples/rect.rb +1 -1
  99. data/examples/scarpe_ext.rb +3 -0
  100. data/examples/shapes/star.rb +1 -3
  101. data/examples/spacing.rb +1 -1
  102. data/examples/span.rb +4 -2
  103. data/lacci/lacci.gemspec +2 -2
  104. data/lacci/lib/lacci/scarpe_cli.rb +0 -1
  105. data/lacci/lib/lacci/version.rb +1 -1
  106. data/lacci/lib/scarpe/niente/display_service.rb +5 -1
  107. data/lacci/lib/scarpe/niente/drawable.rb +2 -0
  108. data/lacci/lib/scarpe/niente/shoes_spec.rb +7 -1
  109. data/lacci/lib/scarpe/niente.rb +14 -2
  110. data/lacci/lib/shoes/app.rb +44 -50
  111. data/lacci/lib/shoes/constants.rb +23 -2
  112. data/lacci/lib/shoes/display_service.rb +43 -4
  113. data/lacci/lib/shoes/drawable.rb +309 -35
  114. data/lacci/lib/shoes/drawables/arc.rb +2 -24
  115. data/lacci/lib/shoes/drawables/arrow.rb +2 -22
  116. data/lacci/lib/shoes/drawables/border.rb +28 -0
  117. data/lacci/lib/shoes/drawables/button.rb +4 -20
  118. data/lacci/lib/shoes/drawables/check.rb +7 -3
  119. data/lacci/lib/shoes/drawables/document_root.rb +4 -4
  120. data/lacci/lib/shoes/drawables/edit_box.rb +6 -5
  121. data/lacci/lib/shoes/drawables/edit_line.rb +5 -4
  122. data/lacci/lib/shoes/drawables/flow.rb +3 -5
  123. data/lacci/lib/shoes/drawables/font_helper.rb +62 -0
  124. data/lacci/lib/shoes/drawables/image.rb +2 -2
  125. data/lacci/lib/shoes/drawables/line.rb +4 -7
  126. data/lacci/lib/shoes/drawables/link.rb +5 -8
  127. data/lacci/lib/shoes/drawables/list_box.rb +8 -5
  128. data/lacci/lib/shoes/drawables/oval.rb +48 -0
  129. data/lacci/lib/shoes/drawables/para.rb +106 -18
  130. data/lacci/lib/shoes/drawables/progress.rb +2 -1
  131. data/lacci/lib/shoes/drawables/radio.rb +5 -3
  132. data/lacci/lib/shoes/drawables/rect.rb +5 -4
  133. data/lacci/lib/shoes/drawables/shape.rb +2 -1
  134. data/lacci/lib/shoes/drawables/slot.rb +99 -8
  135. data/lacci/lib/shoes/drawables/stack.rb +6 -11
  136. data/lacci/lib/shoes/drawables/star.rb +8 -30
  137. data/lacci/lib/shoes/drawables/text_drawable.rb +93 -34
  138. data/lacci/lib/shoes/drawables/video.rb +3 -2
  139. data/lacci/lib/shoes/drawables/widget.rb +8 -3
  140. data/lacci/lib/shoes/drawables.rb +2 -1
  141. data/lacci/lib/shoes/errors.rb +13 -3
  142. data/lacci/lib/shoes/margin_helper.rb +79 -0
  143. data/lacci/lib/shoes.rb +4 -3
  144. data/lacci/test/.gitignore +1 -0
  145. data/lacci/test/test_draw_context.rb +167 -0
  146. data/lacci/test/test_font_helper.rb +57 -0
  147. data/lacci/test/test_helper.rb +31 -4
  148. data/lacci/test/test_lacci.rb +93 -6
  149. data/lacci/test/test_margin_helper.rb +82 -0
  150. data/lacci/test/test_niente_test_infra.rb +26 -0
  151. data/lacci/test/test_oval.rb +82 -0
  152. data/lacci/test/test_parenting.rb +140 -0
  153. data/lacci/test/test_text_drawables.rb +23 -0
  154. data/lib/scarpe/assets.rb +18 -0
  155. data/lib/scarpe/cats_cradle.rb +57 -98
  156. data/lib/scarpe/shoes_spec.rb +22 -43
  157. data/lib/scarpe/version.rb +1 -1
  158. data/lib/scarpe/wv/app.rb +1 -0
  159. data/lib/scarpe/wv/arc.rb +0 -4
  160. data/lib/scarpe/wv/border.rb +15 -0
  161. data/lib/scarpe/wv/control_interface.rb +2 -10
  162. data/lib/scarpe/wv/document_root.rb +2 -2
  163. data/lib/scarpe/wv/drawable.rb +6 -40
  164. data/lib/scarpe/wv/edit_box.rb +4 -1
  165. data/lib/scarpe/wv/edit_line.rb +5 -2
  166. data/lib/scarpe/wv/image.rb +2 -5
  167. data/lib/scarpe/wv/link.rb +4 -2
  168. data/lib/scarpe/wv/oval.rb +13 -0
  169. data/lib/scarpe/wv/para.rb +1 -0
  170. data/lib/scarpe/wv/scarpe_extensions.rb +8 -0
  171. data/lib/scarpe/wv/shape.rb +10 -5
  172. data/lib/scarpe/wv/text_drawable.rb +72 -14
  173. data/lib/scarpe/wv/web_wrangler.rb +33 -11
  174. data/lib/scarpe/wv/webview_local_display.rb +6 -2
  175. data/lib/scarpe/wv.rb +8 -1
  176. data/scarpe-components/Gemfile +4 -1
  177. data/scarpe-components/Gemfile.lock +2 -3
  178. data/scarpe-components/README.md +2 -2
  179. data/scarpe-components/assets/bootstrap-themes/bootstrap-cerulean.css +12229 -0
  180. data/scarpe-components/assets/bootstrap-themes/bootstrap-cosmo.css +11810 -0
  181. data/scarpe-components/assets/bootstrap-themes/bootstrap-cyborg.css +12210 -0
  182. data/scarpe-components/assets/bootstrap-themes/bootstrap-darkly.css +12153 -0
  183. data/scarpe-components/assets/bootstrap-themes/bootstrap-flatly.css +12126 -0
  184. data/scarpe-components/assets/bootstrap-themes/bootstrap-icons.min.css +5 -0
  185. data/scarpe-components/assets/bootstrap-themes/bootstrap-journal.css +12099 -0
  186. data/scarpe-components/assets/bootstrap-themes/bootstrap-litera.css +12211 -0
  187. data/scarpe-components/assets/bootstrap-themes/bootstrap-lumen.css +12369 -0
  188. data/scarpe-components/assets/bootstrap-themes/bootstrap-lux.css +11928 -0
  189. data/scarpe-components/assets/bootstrap-themes/bootstrap-materia.css +13184 -0
  190. data/scarpe-components/assets/bootstrap-themes/bootstrap-minty.css +12177 -0
  191. data/scarpe-components/assets/bootstrap-themes/bootstrap-morph.css +12750 -0
  192. data/scarpe-components/assets/bootstrap-themes/bootstrap-pulse.css +11890 -0
  193. data/scarpe-components/assets/bootstrap-themes/bootstrap-quartz.css +12622 -0
  194. data/scarpe-components/assets/bootstrap-themes/bootstrap-sandstone.css +12201 -0
  195. data/scarpe-components/assets/bootstrap-themes/bootstrap-simplex.css +12186 -0
  196. data/scarpe-components/assets/bootstrap-themes/bootstrap-sketchy.css +12451 -0
  197. data/scarpe-components/assets/bootstrap-themes/bootstrap-slate.css +12492 -0
  198. data/scarpe-components/assets/bootstrap-themes/bootstrap-solar.css +12149 -0
  199. data/scarpe-components/assets/bootstrap-themes/bootstrap-spacelab.css +12266 -0
  200. data/scarpe-components/assets/bootstrap-themes/bootstrap-superhero.css +12216 -0
  201. data/scarpe-components/assets/bootstrap-themes/bootstrap-united.css +12077 -0
  202. data/scarpe-components/assets/bootstrap-themes/bootstrap-vapor.css +12549 -0
  203. data/scarpe-components/assets/bootstrap-themes/bootstrap-yeti.css +12325 -0
  204. data/scarpe-components/assets/bootstrap-themes/bootstrap-zephyr.css +12283 -0
  205. data/scarpe-components/assets/bootstrap-themes/bootstrap.bundle.min.js +7 -0
  206. data/scarpe-components/lib/scarpe/components/asset_server.rb +219 -0
  207. data/scarpe-components/lib/scarpe/components/base64.rb +22 -0
  208. data/scarpe-components/lib/scarpe/components/calzini/{art_widgets.rb → art_drawables.rb} +42 -18
  209. data/scarpe-components/lib/scarpe/components/calzini/border.rb +38 -0
  210. data/scarpe-components/lib/scarpe/components/calzini/button.rb +6 -8
  211. data/scarpe-components/lib/scarpe/components/calzini/misc.rb +7 -17
  212. data/scarpe-components/lib/scarpe/components/calzini/para.rb +213 -11
  213. data/scarpe-components/lib/scarpe/components/calzini/slots.rb +14 -60
  214. data/scarpe-components/lib/scarpe/components/calzini.rb +88 -1
  215. data/scarpe-components/lib/scarpe/components/errors.rb +4 -0
  216. data/scarpe-components/lib/scarpe/components/html.rb +4 -1
  217. data/scarpe-components/lib/scarpe/components/minitest_export_reporter.rb +11 -3
  218. data/scarpe-components/lib/scarpe/components/minitest_result.rb +41 -0
  219. data/scarpe-components/lib/scarpe/components/print_logger.rb +17 -2
  220. data/scarpe-components/lib/scarpe/components/process_helpers.rb +37 -0
  221. data/scarpe-components/lib/scarpe/components/segmented_file_loader.rb +1 -1
  222. data/scarpe-components/lib/scarpe/components/tiranti.rb +42 -100
  223. data/scarpe-components/lib/scarpe/components/unit_test_helpers.rb +3 -1
  224. data/scarpe-components/lib/scarpe/components/version.rb +1 -1
  225. data/scarpe-components/test/assets/big-image.png +0 -0
  226. data/scarpe-components/test/assets/big-stylesheet.css +497 -0
  227. data/scarpe-components/test/assets/little-image.png +0 -0
  228. data/scarpe-components/test/assets/little-stylesheet.css +1 -0
  229. data/scarpe-components/test/calzini/test_calzini_art_drawables.rb +7 -7
  230. data/scarpe-components/test/calzini/test_calzini_button.rb +7 -5
  231. data/scarpe-components/test/calzini/test_calzini_misc.rb +9 -9
  232. data/scarpe-components/test/calzini/test_calzini_para.rb +6 -9
  233. data/scarpe-components/test/calzini/test_calzini_slots.rb +12 -57
  234. data/scarpe-components/test/calzini/test_calzini_text_drawables.rb +83 -18
  235. data/scarpe-components/test/calzini/test_various.rb +133 -0
  236. data/scarpe-components/test/test_asset_server.rb +72 -0
  237. data/scarpe-components/test/test_components.rb +31 -2
  238. data/scarpe-components/test/test_helper.rb +0 -1
  239. data/scarpe-components/test/test_minitest_result.rb +7 -0
  240. data/scarpe-components/test/test_segmented_app_files.rb +2 -0
  241. data/tasks/check_html_fixtures.rb +140 -0
  242. data/tasks/regenerate_html_fixtures.rb +104 -0
  243. data/templates/class_template_with_shapes.erb +0 -11
  244. metadata +180 -32
  245. data/lacci/lib/scarpe/niente/logger.rb +0 -29
  246. data/lacci/lib/shoes/drawables/span.rb +0 -27
  247. data/lacci/lib/shoes/spacing.rb +0 -9
  248. data/lib/scarpe/evented_assertions.rb +0 -121
  249. data/lib/scarpe/wv/span.rb +0 -44
  250. data/scarpe-components/lib/scarpe/components/calzini/text_widgets.rb +0 -65
  251. /data/examples/legacy/{not_checked → working}/shoes3-tests/editline/editline.rb +0 -0
@@ -0,0 +1,497 @@
1
+ html {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+ body {
6
+ font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
7
+ font-size: 13px;
8
+ width: 100%;
9
+ margin: 0;
10
+ padding: 0;
11
+ display: flex;
12
+ display: -webkit-flex;
13
+ display: -ms-flexbox;
14
+ }
15
+
16
+ #nav {
17
+ position: relative;
18
+ width: 100%;
19
+ height: 100%;
20
+ border: 0;
21
+ border-right: 1px dotted #eee;
22
+ overflow: auto;
23
+ }
24
+ .nav_wrap {
25
+ margin: 0;
26
+ padding: 0;
27
+ width: 20%;
28
+ height: 100%;
29
+ position: relative;
30
+ display: flex;
31
+ display: -webkit-flex;
32
+ display: -ms-flexbox;
33
+ flex-shrink: 0;
34
+ -webkit-flex-shrink: 0;
35
+ -ms-flex: 1 0;
36
+ }
37
+ #resizer {
38
+ position: absolute;
39
+ right: -5px;
40
+ top: 0;
41
+ width: 10px;
42
+ height: 100%;
43
+ cursor: col-resize;
44
+ z-index: 9999;
45
+ }
46
+ #main {
47
+ flex: 5 1;
48
+ -webkit-flex: 5 1;
49
+ -ms-flex: 5 1;
50
+ outline: none;
51
+ position: relative;
52
+ background: #fff;
53
+ padding: 1.2em;
54
+ padding-top: 0.2em;
55
+ box-sizing: border-box;
56
+ }
57
+
58
+ @media (max-width: 920px) {
59
+ .nav_wrap { width: 100%; top: 0; right: 0; overflow: visible; position: absolute; }
60
+ #resizer { display: none; }
61
+ #nav {
62
+ z-index: 9999;
63
+ background: #fff;
64
+ display: none;
65
+ position: absolute;
66
+ top: 40px;
67
+ right: 12px;
68
+ width: 500px;
69
+ max-width: 80%;
70
+ height: 80%;
71
+ overflow-y: scroll;
72
+ border: 1px solid #999;
73
+ border-collapse: collapse;
74
+ box-shadow: -7px 5px 25px #aaa;
75
+ border-radius: 2px;
76
+ }
77
+ }
78
+
79
+ @media (min-width: 920px) {
80
+ body { height: 100%; overflow: hidden; }
81
+ #main { height: 100%; overflow: auto; }
82
+ #search { display: none; }
83
+ }
84
+
85
+ #main img { max-width: 100%; }
86
+ h1 { font-size: 25px; margin: 1em 0 0.5em; padding-top: 4px; border-top: 1px dotted #d5d5d5; }
87
+ h1.noborder { border-top: 0px; margin-top: 0; padding-top: 4px; }
88
+ h1.title { margin-bottom: 10px; }
89
+ h1.alphaindex { margin-top: 0; font-size: 22px; }
90
+ h2 {
91
+ padding: 0;
92
+ padding-bottom: 3px;
93
+ border-bottom: 1px #aaa solid;
94
+ font-size: 1.4em;
95
+ margin: 1.8em 0 0.5em;
96
+ position: relative;
97
+ }
98
+ h2 small { font-weight: normal; font-size: 0.7em; display: inline; position: absolute; right: 0; }
99
+ h2 small a {
100
+ display: block;
101
+ height: 20px;
102
+ border: 1px solid #aaa;
103
+ border-bottom: 0;
104
+ border-top-left-radius: 5px;
105
+ background: #f8f8f8;
106
+ position: relative;
107
+ padding: 2px 7px;
108
+ }
109
+ .clear { clear: both; }
110
+ .inline { display: inline; }
111
+ .inline p:first-child { display: inline; }
112
+ .docstring, .tags, #filecontents { font-size: 15px; line-height: 1.5145em; }
113
+ .docstring p > code, .docstring p > tt, .tags p > code, .tags p > tt {
114
+ color: #c7254e; background: #f9f2f4; padding: 2px 4px; font-size: 1em;
115
+ border-radius: 4px;
116
+ }
117
+ .docstring h1, .docstring h2, .docstring h3, .docstring h4 { padding: 0; border: 0; border-bottom: 1px dotted #bbb; }
118
+ .docstring h1 { font-size: 1.2em; }
119
+ .docstring h2 { font-size: 1.1em; }
120
+ .docstring h3, .docstring h4 { font-size: 1em; border-bottom: 0; padding-top: 10px; }
121
+ .summary_desc .object_link a, .docstring .object_link a {
122
+ font-family: monospace; font-size: 1.05em;
123
+ color: #05a; background: #EDF4FA; padding: 2px 4px; font-size: 1em;
124
+ border-radius: 4px;
125
+ }
126
+ .rdoc-term { padding-right: 25px; font-weight: bold; }
127
+ .rdoc-list p { margin: 0; padding: 0; margin-bottom: 4px; }
128
+ .summary_desc pre.code .object_link a, .docstring pre.code .object_link a {
129
+ padding: 0px; background: inherit; color: inherit; border-radius: inherit;
130
+ }
131
+
132
+ /* style for <table> */
133
+ #filecontents table, .docstring table { border-collapse: collapse; }
134
+ #filecontents table th, #filecontents table td,
135
+ .docstring table th, .docstring table td { border: 1px solid #ccc; padding: 8px; padding-right: 17px; }
136
+ #filecontents table tr:nth-child(odd),
137
+ .docstring table tr:nth-child(odd) { background: #eee; }
138
+ #filecontents table tr:nth-child(even),
139
+ .docstring table tr:nth-child(even) { background: #fff; }
140
+ #filecontents table th, .docstring table th { background: #fff; }
141
+
142
+ /* style for <ul> */
143
+ #filecontents li > p, .docstring li > p { margin: 0px; }
144
+ #filecontents ul, .docstring ul { padding-left: 20px; }
145
+ /* style for <dl> */
146
+ #filecontents dl, .docstring dl { border: 1px solid #ccc; }
147
+ #filecontents dt, .docstring dt { background: #ddd; font-weight: bold; padding: 3px 5px; }
148
+ #filecontents dd, .docstring dd { padding: 5px 0px; margin-left: 18px; }
149
+ #filecontents dd > p, .docstring dd > p { margin: 0px; }
150
+
151
+ .note {
152
+ color: #222;
153
+ margin: 20px 0;
154
+ padding: 10px;
155
+ border: 1px solid #eee;
156
+ border-radius: 3px;
157
+ display: block;
158
+ }
159
+ .docstring .note {
160
+ border-left-color: #ccc;
161
+ border-left-width: 5px;
162
+ }
163
+ .note.todo { background: #ffffc5; border-color: #ececaa; }
164
+ .note.returns_void { background: #efefef; }
165
+ .note.deprecated { background: #ffe5e5; border-color: #e9dada; }
166
+ .note.title.deprecated { background: #ffe5e5; border-color: #e9dada; }
167
+ .note.private { background: #ffffc5; border-color: #ececaa; }
168
+ .note.title { padding: 3px 6px; font-size: 0.9em; font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif; display: inline; }
169
+ .summary_signature + .note.title { margin-left: 7px; }
170
+ h1 .note.title { font-size: 0.5em; font-weight: normal; padding: 3px 5px; position: relative; top: -3px; text-transform: capitalize; }
171
+ .note.title { background: #efefef; }
172
+ .note.title.constructor { color: #fff; background: #6a98d6; border-color: #6689d6; }
173
+ .note.title.writeonly { color: #fff; background: #45a638; border-color: #2da31d; }
174
+ .note.title.readonly { color: #fff; background: #6a98d6; border-color: #6689d6; }
175
+ .note.title.private { background: #d5d5d5; border-color: #c5c5c5; }
176
+ .note.title.not_defined_here { background: transparent; border: none; font-style: italic; }
177
+ .discussion .note { margin-top: 6px; }
178
+ .discussion .note:first-child { margin-top: 0; }
179
+
180
+ h3.inherited {
181
+ font-style: italic;
182
+ font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, sans-serif;
183
+ font-weight: normal;
184
+ padding: 0;
185
+ margin: 0;
186
+ margin-top: 12px;
187
+ margin-bottom: 3px;
188
+ font-size: 13px;
189
+ }
190
+ p.inherited {
191
+ padding: 0;
192
+ margin: 0;
193
+ margin-left: 25px;
194
+ }
195
+
196
+ .box_info dl {
197
+ margin: 0;
198
+ border: 0;
199
+ width: 100%;
200
+ font-size: 1em;
201
+ display: flex;
202
+ display: -webkit-flex;
203
+ display: -ms-flexbox;
204
+ }
205
+ .box_info dl dt {
206
+ flex-shrink: 0;
207
+ -webkit-flex-shrink: 1;
208
+ -ms-flex-shrink: 1;
209
+ width: 100px;
210
+ text-align: right;
211
+ font-weight: bold;
212
+ border: 1px solid #aaa;
213
+ border-width: 1px 0px 0px 1px;
214
+ padding: 6px 0;
215
+ padding-right: 10px;
216
+ }
217
+ .box_info dl dd {
218
+ flex-grow: 1;
219
+ -webkit-flex-grow: 1;
220
+ -ms-flex: 1;
221
+ max-width: 420px;
222
+ padding: 6px 0;
223
+ padding-right: 20px;
224
+ border: 1px solid #aaa;
225
+ border-width: 1px 1px 0 0;
226
+ overflow: hidden;
227
+ position: relative;
228
+ }
229
+ .box_info dl:last-child > * {
230
+ border-bottom: 1px solid #aaa;
231
+ }
232
+ .box_info dl:nth-child(odd) > * { background: #eee; }
233
+ .box_info dl:nth-child(even) > * { background: #fff; }
234
+ .box_info dl > * { margin: 0; }
235
+
236
+ ul.toplevel { list-style: none; padding-left: 0; font-size: 1.1em; }
237
+ .index_inline_list { padding-left: 0; font-size: 1.1em; }
238
+
239
+ .index_inline_list li {
240
+ list-style: none;
241
+ display: inline-block;
242
+ padding: 0 12px;
243
+ line-height: 30px;
244
+ margin-bottom: 5px;
245
+ }
246
+
247
+ dl.constants { margin-left: 10px; }
248
+ dl.constants dt { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
249
+ dl.constants.compact dt { display: inline-block; font-weight: normal }
250
+ dl.constants dd { width: 75%; white-space: pre; font-family: monospace; margin-bottom: 18px; }
251
+ dl.constants .docstring .note:first-child { margin-top: 5px; }
252
+
253
+ .summary_desc {
254
+ margin-left: 32px;
255
+ display: block;
256
+ font-family: sans-serif;
257
+ font-size: 1.1em;
258
+ margin-top: 8px;
259
+ line-height: 1.5145em;
260
+ margin-bottom: 0.8em;
261
+ }
262
+ .summary_desc tt { font-size: 0.9em; }
263
+ dl.constants .note { padding: 2px 6px; padding-right: 12px; margin-top: 6px; }
264
+ dl.constants .docstring { margin-left: 32px; font-size: 0.9em; font-weight: normal; }
265
+ dl.constants .tags { padding-left: 32px; font-size: 0.9em; line-height: 0.8em; }
266
+ dl.constants .discussion *:first-child { margin-top: 0; }
267
+ dl.constants .discussion *:last-child { margin-bottom: 0; }
268
+
269
+ .method_details { border-top: 1px dotted #ccc; margin-top: 25px; padding-top: 0; }
270
+ .method_details.first { border: 0; margin-top: 5px; }
271
+ .method_details.first h3.signature { margin-top: 1em; }
272
+ p.signature, h3.signature {
273
+ font-size: 1.1em; font-weight: normal; font-family: Monaco, Consolas, Courier, monospace;
274
+ padding: 6px 10px; margin-top: 1em;
275
+ background: #E8F4FF; border: 1px solid #d8d8e5; border-radius: 5px;
276
+ }
277
+ p.signature tt,
278
+ h3.signature tt { font-family: Monaco, Consolas, Courier, monospace; }
279
+ p.signature .overload,
280
+ h3.signature .overload { display: block; }
281
+ p.signature .extras,
282
+ h3.signature .extras { font-weight: normal; font-family: sans-serif; color: #444; font-size: 1em; }
283
+ p.signature .not_defined_here,
284
+ h3.signature .not_defined_here,
285
+ p.signature .aliases,
286
+ h3.signature .aliases { display: block; font-weight: normal; font-size: 0.9em; font-family: sans-serif; margin-top: 0px; color: #555; }
287
+ p.signature .aliases .names,
288
+ h3.signature .aliases .names { font-family: Monaco, Consolas, Courier, monospace; font-weight: bold; color: #000; font-size: 1.2em; }
289
+
290
+ .tags .tag_title { font-size: 1.05em; margin-bottom: 0; font-weight: bold; }
291
+ .tags .tag_title tt { color: initial; padding: initial; background: initial; }
292
+ .tags ul { margin-top: 5px; padding-left: 30px; list-style: square; }
293
+ .tags ul li { margin-bottom: 3px; }
294
+ .tags ul .name { font-family: monospace; font-weight: bold; }
295
+ .tags ul .note { padding: 3px 6px; }
296
+ .tags { margin-bottom: 12px; }
297
+
298
+ .tags .examples .tag_title { margin-bottom: 10px; font-weight: bold; }
299
+ .tags .examples .inline p { padding: 0; margin: 0; font-weight: bold; font-size: 1em; }
300
+ .tags .examples .inline p:before { content: "▸"; font-size: 1em; margin-right: 5px; }
301
+
302
+ .tags .overload .overload_item { list-style: none; margin-bottom: 25px; }
303
+ .tags .overload .overload_item .signature {
304
+ padding: 2px 8px;
305
+ background: #F1F8FF; border: 1px solid #d8d8e5; border-radius: 3px;
306
+ }
307
+ .tags .overload .signature { margin-left: -15px; font-family: monospace; display: block; font-size: 1.1em; }
308
+ .tags .overload .docstring { margin-top: 15px; }
309
+
310
+ .defines { display: none; }
311
+
312
+ #method_missing_details .notice.this { position: relative; top: -8px; color: #888; padding: 0; margin: 0; }
313
+
314
+ .showSource { font-size: 0.9em; }
315
+ .showSource a, .showSource a:visited { text-decoration: none; color: #666; }
316
+
317
+ #content a, #content a:visited { text-decoration: none; color: #05a; }
318
+ #content a:hover { background: #ffffa5; }
319
+
320
+ ul.summary {
321
+ list-style: none;
322
+ font-family: monospace;
323
+ font-size: 1em;
324
+ line-height: 1.5em;
325
+ padding-left: 0px;
326
+ }
327
+ ul.summary a, ul.summary a:visited {
328
+ text-decoration: none; font-size: 1.1em;
329
+ }
330
+ ul.summary li { margin-bottom: 5px; }
331
+ .summary_signature { padding: 4px 8px; background: #f8f8f8; border: 1px solid #f0f0f0; border-radius: 5px; }
332
+ .summary_signature:hover { background: #CFEBFF; border-color: #A4CCDA; cursor: pointer; }
333
+ .summary_signature.deprecated { background: #ffe5e5; border-color: #e9dada; }
334
+ ul.summary.compact li { display: inline-block; margin: 0px 5px 0px 0px; line-height: 2.6em;}
335
+ ul.summary.compact .summary_signature { padding: 5px 7px; padding-right: 4px; }
336
+ #content .summary_signature:hover a,
337
+ #content .summary_signature:hover a:visited {
338
+ background: transparent;
339
+ color: #049;
340
+ }
341
+
342
+ p.inherited a { font-family: monospace; font-size: 0.9em; }
343
+ p.inherited { word-spacing: 5px; font-size: 1.2em; }
344
+
345
+ p.children { font-size: 1.2em; }
346
+ p.children a { font-size: 0.9em; }
347
+ p.children strong { font-size: 0.8em; }
348
+ p.children strong.modules { padding-left: 5px; }
349
+
350
+ ul.fullTree { display: none; padding-left: 0; list-style: none; margin-left: 0; margin-bottom: 10px; }
351
+ ul.fullTree ul { margin-left: 0; padding-left: 0; list-style: none; }
352
+ ul.fullTree li { text-align: center; padding-top: 18px; padding-bottom: 12px; background: url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAK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XqLYYazsPWNTiuMkRxa4vcV+evuNAUOLIx5+c2hyzv7hNQC67Q+/HHmlEwAAAABJRU5ErkJggg==) no-repeat top center; }
353
+ ul.fullTree li:first-child { padding-top: 0; background: transparent; }
354
+ ul.fullTree li:last-child { padding-bottom: 0; }
355
+ .showAll ul.fullTree { display: block; }
356
+ .showAll .inheritName { display: none; }
357
+
358
+ #search { position: absolute; right: 12px; top: 0px; z-index: 9000; }
359
+ #search a {
360
+ display: block; float: left;
361
+ padding: 4px 8px; text-decoration: none; color: #05a; fill: #05a;
362
+ border: 1px solid #d8d8e5;
363
+ border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;
364
+ background: #F1F8FF;
365
+ box-shadow: -1px 1px 3px #ddd;
366
+ }
367
+ #search a:hover { background: #f5faff; color: #06b; fill: #06b; }
368
+ #search a.active {
369
+ background: #568; padding-bottom: 20px; color: #fff; fill: #fff;
370
+ border: 1px solid #457;
371
+ border-top-left-radius: 5px; border-top-right-radius: 5px;
372
+ }
373
+ #search a.inactive { color: #999; fill: #999; }
374
+ .inheritanceTree, .toggleDefines {
375
+ float: right;
376
+ border-left: 1px solid #aaa;
377
+ position: absolute; top: 0; right: 0;
378
+ height: 100%;
379
+ background: #f6f6f6;
380
+ padding: 5px;
381
+ min-width: 55px;
382
+ text-align: center;
383
+ }
384
+
385
+ #menu { font-size: 1.3em; color: #bbb; }
386
+ #menu .title, #menu a { font-size: 0.7em; }
387
+ #menu .title a { font-size: 1em; }
388
+ #menu .title { color: #555; }
389
+ #menu a, #menu a:visited { color: #333; text-decoration: none; border-bottom: 1px dotted #bbd; }
390
+ #menu a:hover { color: #05a; }
391
+
392
+ #footer { margin-top: 15px; border-top: 1px solid #ccc; text-align: center; padding: 7px 0; color: #999; }
393
+ #footer a, #footer a:visited { color: #444; text-decoration: none; border-bottom: 1px dotted #bbd; }
394
+ #footer a:hover { color: #05a; }
395
+
396
+ #listing ul.alpha { font-size: 1.1em; }
397
+ #listing ul.alpha { margin: 0; padding: 0; padding-bottom: 10px; list-style: none; }
398
+ #listing ul.alpha li.letter { font-size: 1.4em; padding-bottom: 10px; }
399
+ #listing ul.alpha ul { margin: 0; padding-left: 15px; }
400
+ #listing ul small { color: #666; font-size: 0.7em; }
401
+
402
+ li.r1 { background: #f0f0f0; }
403
+ li.r2 { background: #fafafa; }
404
+
405
+ #content ul.summary li.deprecated .summary_signature a,
406
+ #content ul.summary li.deprecated .summary_signature a:visited { text-decoration: line-through; font-style: italic; }
407
+
408
+ #toc {
409
+ position: relative;
410
+ float: right;
411
+ overflow-x: auto;
412
+ right: -3px;
413
+ margin-left: 20px;
414
+ margin-bottom: 20px;
415
+ padding: 20px; padding-right: 30px;
416
+ max-width: 300px;
417
+ z-index: 5000;
418
+ background: #fefefe;
419
+ border: 1px solid #ddd;
420
+ box-shadow: -2px 2px 6px #bbb;
421
+ }
422
+ #toc .title { margin: 0; }
423
+ #toc ol { padding-left: 1.8em; }
424
+ #toc li { font-size: 1.1em; line-height: 1.7em; }
425
+ #toc > ol > li { font-size: 1.1em; font-weight: bold; }
426
+ #toc ol > li > ol { font-size: 0.9em; }
427
+ #toc ol ol > li > ol { padding-left: 2.3em; }
428
+ #toc ol + li { margin-top: 0.3em; }
429
+ #toc.hidden { padding: 10px; background: #fefefe; box-shadow: none; }
430
+ #toc.hidden:hover { background: #fafafa; }
431
+ #filecontents h1 + #toc.nofloat { margin-top: 0; }
432
+ @media (max-width: 560px) {
433
+ #toc {
434
+ margin-left: 0;
435
+ margin-top: 16px;
436
+ float: none;
437
+ max-width: none;
438
+ }
439
+ }
440
+
441
+ /* syntax highlighting */
442
+ .source_code { display: none; padding: 3px 8px; border-left: 8px solid #ddd; margin-top: 5px; }
443
+ #filecontents pre.code, .docstring pre.code, .source_code pre { font-family: monospace; }
444
+ #filecontents pre.code, .docstring pre.code { display: block; }
445
+ .source_code .lines { padding-right: 12px; color: #555; text-align: right; }
446
+ #filecontents pre.code, .docstring pre.code,
447
+ .tags pre.example {
448
+ padding: 9px 14px;
449
+ margin-top: 4px;
450
+ border: 1px solid #e1e1e8;
451
+ background: #f7f7f9;
452
+ border-radius: 4px;
453
+ font-size: 1em;
454
+ overflow-x: auto;
455
+ line-height: 1.2em;
456
+ }
457
+ pre.code { color: #000; tab-size: 2; }
458
+ pre.code .info.file { color: #555; }
459
+ pre.code .val { color: #036A07; }
460
+ pre.code .tstring_content,
461
+ pre.code .heredoc_beg, pre.code .heredoc_end,
462
+ pre.code .qwords_beg, pre.code .qwords_end, pre.code .qwords_sep,
463
+ pre.code .words_beg, pre.code .words_end, pre.code .words_sep,
464
+ pre.code .qsymbols_beg, pre.code .qsymbols_end, pre.code .qsymbols_sep,
465
+ pre.code .symbols_beg, pre.code .symbols_end, pre.code .symbols_sep,
466
+ pre.code .tstring, pre.code .dstring { color: #036A07; }
467
+ pre.code .fid, pre.code .rubyid_new, pre.code .rubyid_to_s,
468
+ pre.code .rubyid_to_sym, pre.code .rubyid_to_f,
469
+ pre.code .dot + pre.code .id,
470
+ pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
471
+ pre.code .comment { color: #0066FF; }
472
+ pre.code .const, pre.code .constant { color: #585CF6; }
473
+ pre.code .label,
474
+ pre.code .symbol { color: #C5060B; }
475
+ pre.code .kw,
476
+ pre.code .rubyid_require,
477
+ pre.code .rubyid_extend,
478
+ pre.code .rubyid_include { color: #0000FF; }
479
+ pre.code .ivar { color: #318495; }
480
+ pre.code .gvar,
481
+ pre.code .rubyid_backref,
482
+ pre.code .rubyid_nth_ref { color: #6D79DE; }
483
+ pre.code .regexp, .dregexp { color: #036A07; }
484
+ pre.code a { border-bottom: 1px dotted #bbf; }
485
+ /* inline code */
486
+ *:not(pre) > code {
487
+ padding: 1px 3px 1px 3px;
488
+ border: 1px solid #E1E1E8;
489
+ background: #F7F7F9;
490
+ border-radius: 4px;
491
+ }
492
+
493
+ /* Color fix for links */
494
+ #content .summary_desc pre.code .id > .object_link a, /* identifier */
495
+ #content .docstring pre.code .id > .object_link a { color: #0085FF; }
496
+ #content .summary_desc pre.code .const > .object_link a, /* constant */
497
+ #content .docstring pre.code .const > .object_link a { color: #585CF6; }
@@ -0,0 +1 @@
1
+ /* Override this file with custom rules */
@@ -26,20 +26,20 @@ class TestCalziniArtDrawables < Minitest::Test
26
26
  "angle2" => 3.14 / 4,
27
27
  },
28
28
  )
29
- ex_html_start = %{<div id="elt-1" style="left:17px;top:42px;width:200px;height:150px"><svg width="200" height="150"><path d="M100 75 L200 75 A100 75 0 1 0 170.73882691671997 128.01188858290243 Z" transform="rotate(, 100, 75)" /></svg></div>}
29
+ ex_html_start = %{<div id="elt-1" style="position:absolute;top:42px;left:17px;width:200px;height:150px"><svg width="200" height="150"><path d="M100 75 L200 75 A100 75 0 1 0 170.73882691671997 128.01188858290243 Z" transform="rotate(, 100, 75)" /></svg></div>}
30
30
  ex_html_end = %{" /></svg></div>}
31
31
  assert_start_and_finish(ex_html_start, ex_html_end, arc_example)
32
32
  end
33
33
 
34
34
  def test_line_example
35
- assert_equal %{<div id="elt-1" style="left:7px;top:4px">} +
35
+ assert_equal %{<div id="elt-1" style="position:absolute;top:4px;left:7px">} +
36
36
  %{<svg width="100" height="104"><line x1="7" y1="4" x2="100" y2="104" style="stroke:black;stroke-width:4">} +
37
37
  %{</line></svg></div>},
38
38
  @calzini.render("line", { "top" => "4", "left" => "7", "x1" => "20", "y1" => "17", "x2" => "100", "y2" => "104" })
39
39
  end
40
40
 
41
41
  def test_line_draw_context
42
- assert_equal %{<div id="elt-1" style="left:7px;top:4px">} +
42
+ assert_equal %{<div id="elt-1" style="position:absolute;top:4px;left:7px">} +
43
43
  %{<svg width="100" height="104"><line x1="7" y1="4" x2="100" y2="104" style="stroke:red;stroke-width:4">} +
44
44
  %{</line></svg></div>},
45
45
  @calzini.render(
@@ -49,21 +49,21 @@ class TestCalziniArtDrawables < Minitest::Test
49
49
  end
50
50
 
51
51
  def test_line_hidden
52
- assert_equal %{<div id="elt-1" style="display:none;left:7px;top:4px">} +
52
+ assert_equal %{<div id="elt-1" style="display:none;position:absolute;top:4px;left:7px">} +
53
53
  %{<svg width="100" height="104"><line x1="7" y1="4" x2="100" y2="104" style="stroke:black;stroke-width:4">} +
54
54
  %{</line></svg></div>},
55
55
  @calzini.render("line", { "top" => "4", "left" => "7", "x1" => "20", "y1" => "17", "x2" => "100", "y2" => "104", "hidden" => true })
56
56
  end
57
57
 
58
58
  def test_rect_default_stroke
59
- assert_equal %{<div id="elt-1" style="display:none">} +
59
+ assert_equal %{<div id="elt-1" style="display:none;position:absolute;top:9;left:12;width:147;height:91">} +
60
60
  %{<svg width="147" height="91"><rect x="12" y="9" width="147" height="91" transform="rotate( 73 45)" />} +
61
61
  %{</svg></div>},
62
62
  @calzini.render("rect", { "top" => "9", "left" => "12", "width" => "147", "height" => "91", "draw_context" => {}, "hidden" => true })
63
63
  end
64
64
 
65
65
  def test_rect_round_corners
66
- assert_equal %{<div id="elt-1" style="display:none">} +
66
+ assert_equal %{<div id="elt-1" style="display:none;position:absolute;top:9;left:12;width:147;height:91">} +
67
67
  %{<svg width="177" height="121"><rect x="12" y="9" width="147" height="91" style="stroke:red" rx="15" transform="rotate( 88 60)" />} +
68
68
  %{</svg></div>},
69
69
  @calzini.render(
@@ -81,7 +81,7 @@ class TestCalziniArtDrawables < Minitest::Test
81
81
  end
82
82
 
83
83
  def test_rect_hidden
84
- assert_equal %{<div id="elt-1" style="display:none">} +
84
+ assert_equal %{<div id="elt-1" style="display:none;position:absolute;top:4;left:7;width:20;height:17">} +
85
85
  %{<svg width="20" height="17"><rect x="7" y="4" width="20" height="17" transform="rotate( 10 8)" />} +
86
86
  %{</svg></div>},
87
87
  @calzini.render("rect", { "top" => "4", "left" => "7", "width" => "20", "height" => "17", "hidden" => true })
@@ -11,7 +11,11 @@ class TestCalziniButton < Minitest::Test
11
11
  assert_equal %{<button id="elt-1" onclick="handle('click')" onmouseover="handle('hover')"></button>}, @calzini.render("button", {})
12
12
  end
13
13
 
14
- def test_button_all_properties_set
14
+ def test_button_with_html_class
15
+ assert_equal %{<button id="elt-1" onclick="handle('click')" onmouseover="handle('hover')" class="buttonish"></button>}, @calzini.render("button", { "html_class" => "buttonish" })
16
+ end
17
+
18
+ def test_button_all_standard_properties_set
15
19
  props = {
16
20
  "color" => "red",
17
21
  "padding_top" => "4",
@@ -26,13 +30,11 @@ class TestCalziniButton < Minitest::Test
26
30
  "font" => "Lucida",
27
31
  }
28
32
  assert_equal %{<button id="elt-1" onclick="handle('click')" onmouseover="handle('hover')" } +
29
- %{style="background-color:red;padding-top:4;padding-bottom:5;color:blue;} +
30
- %{width:201px;height:203px;font-size:17px;top:10;left:11;position:absolute;} +
31
- %{font-family:Lucida"></button>},
33
+ %{style="position:absolute;top:10;left:11;width:201px;height:203px;padding-top:4;padding-bottom:5;background-color:red;color:blue;font-size:17px;font-family:Lucida"></button>},
32
34
  @calzini.render("button", props)
33
35
  end
34
36
 
35
- def test_button_all_properties_nil
37
+ def test_button_all_standard_properties_nil
36
38
  props = {
37
39
  "color" => nil,
38
40
  "padding_top" => nil,
@@ -23,32 +23,32 @@ class TestCalziniMiscDrawables < Minitest::Test
23
23
  end
24
24
 
25
25
  def test_edit_box_default
26
- assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)"></textarea>},
26
+ assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')"></textarea>},
27
27
  @calzini.render("edit_box", {})
28
28
  end
29
29
 
30
30
  def test_edit_box_hidden
31
- assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)" style="display:none"></textarea>},
31
+ assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')" style="display:none"></textarea>},
32
32
  @calzini.render("edit_box", { "hidden" => true })
33
33
  end
34
34
 
35
35
  def test_edit_box_simple
36
- assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)" style="height:50;width:75">default</textarea>},
36
+ assert_equal %{<textarea id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')" style="width:75;height:50">default</textarea>},
37
37
  @calzini.render("edit_box", { "height" => "50", "width" => "75", "text" => "default" })
38
38
  end
39
39
 
40
40
  def test_edit_line_default
41
- assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" />},
41
+ assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')" style="font:;color:" />},
42
42
  @calzini.render("edit_line", {})
43
43
  end
44
44
 
45
45
  def test_edit_line_hidden
46
- assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" style="display:none" />},
46
+ assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')" style="display:none;font:;color:" />},
47
47
  @calzini.render("edit_line", { "hidden" => true })
48
48
  end
49
49
 
50
50
  def test_edit_line_simple
51
- assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" value="(default)" style="width:200" />},
51
+ assert_equal %{<input id="elt-1" oninput="handle('change', this.value)" onmouseover="handle('hover')" value="(default)" style="width:200;font:;color:" />},
52
52
  @calzini.render("edit_line", { "width" => "200", "text" => "(default)" })
53
53
  end
54
54
 
@@ -63,7 +63,7 @@ class TestCalziniMiscDrawables < Minitest::Test
63
63
  end
64
64
 
65
65
  def test_image_with_abs_positioning
66
- assert_equal %{<img id="elt-1" src="https://example.com/example.png" style="width:150;height:200;top:15;left:20;position:absolute" />},
66
+ assert_equal %{<img id="elt-1" src="https://example.com/example.png" style="position:absolute;top:15;left:20;width:150;height:200" />},
67
67
  @calzini.render("image", { "url" => "https://example.com/example.png", "height" => "200", "width" => "150", "top" => "15", "left" => "20" })
68
68
  end
69
69
 
@@ -74,14 +74,14 @@ class TestCalziniMiscDrawables < Minitest::Test
74
74
 
75
75
  def test_list_box_simple
76
76
  assert_equal %{<select id="elt-1" onchange="handle('change', this.options[this.selectedIndex].value)"} +
77
- %{ style="height:75;width:150"><option value="dog">dog</option>} +
77
+ %{ style="width:150;height:75"><option value="dog">dog</option>} +
78
78
  %{<option value="cat" selected="true">cat</option><option value="bird">bird</option></select>},
79
79
  @calzini.render("list_box", { "height" => "75", "width" => "150", "items" => ["dog", "cat", "bird"], "choose" => "cat" })
80
80
  end
81
81
 
82
82
  def test_list_box_none_selected
83
83
  assert_equal %{<select id="elt-1" onchange="handle('change', this.options[this.selectedIndex].value)"} +
84
- %{ style="height:75;width:150"><option value="dog">dog</option>} +
84
+ %{ style="width:150;height:75"><option value="dog">dog</option>} +
85
85
  %{<option value="cat">cat</option><option value="bird">bird</option></select>},
86
86
  @calzini.render("list_box", { "height" => "75", "width" => "150", "items" => ["dog", "cat", "bird"] })
87
87
  end