sproutcore 1.0.1049.pre.2 → 1.4.0.rc
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION.yml +4 -4
- data/lib/Buildfile +1 -1
- data/lib/frameworks/sproutcore/Buildfile +13 -27
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/library.js +0 -42
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/view_configs.js +100 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +1 -1
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/dialogs.js +33 -9
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +5 -2
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +1 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +21 -11
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +0 -7
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +6 -24
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +46 -36
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +32 -50
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +2 -7
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +66 -42
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +4 -12
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/{desktop/tests → datastore/tests/models}/datetime_recordattribute.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +3 -27
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +21 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +15 -19
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +22 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +54 -12
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +45 -18
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +52 -32
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +3 -28
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +10 -30
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +17 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +20 -128
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +39 -8
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +47 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +90 -59
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +39 -29
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +15 -11
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +16 -17
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +278 -457
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +5 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +101 -5
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +87 -85
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +278 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +146 -60
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +80 -211
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +10 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +34 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +248 -331
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +12 -1
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +2 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +6 -12
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +9 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +1 -83
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +7 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +2 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +107 -143
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +8 -4
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +4 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +44 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +9 -9
- data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +114 -6
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +37 -38
- data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +5 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +17 -19
- data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +311 -255
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +10 -10
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +53 -44
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +17 -16
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +0 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +3 -11
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +4 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invokeLater.js +5 -7
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendEvent.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/clippingFrame.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createLayer.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutStyle.js +56 -118
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/prepareContext.js +4 -12
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/render.js +5 -48
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayer.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayerLocation.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/viewDidResize.js +2 -24
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +2 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +3 -3
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +49 -21
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +85 -54
- data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +256 -1174
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +81 -74
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +2 -2
- data/lib/frameworks/sproutcore/frameworks/media/views/miniControls.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/mobile/tests/views/button/ui.js +1 -8
- data/lib/frameworks/sproutcore/frameworks/mobile/views/button.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +54 -25
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +1 -11
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +8 -5
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +1 -1
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +24 -25
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +9 -6
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +13 -6
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +26 -11
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +140 -33
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +48 -1
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +2 -3
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +1 -1
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/scroller.css +8 -4
- data/lib/sproutcore/helpers/entry_sorter.rb +14 -1
- data/sproutcore.gemspec +0 -2
- metadata +12 -443
- data/lib/frameworks/sproutcore/Gemfile +0 -8
- data/lib/frameworks/sproutcore/Gemfile.lock +0 -33
- data/lib/frameworks/sproutcore/apps/test_controls/Buildfile +0 -0
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/categories.js +0 -108
- data/lib/frameworks/sproutcore/apps/test_controls/controllers/category.js +0 -31
- data/lib/frameworks/sproutcore/apps/test_controls/core.js +0 -29
- data/lib/frameworks/sproutcore/apps/test_controls/main.js +0 -14
- data/lib/frameworks/sproutcore/apps/test_controls/resources/buttons_page.js +0 -124
- data/lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js +0 -45
- data/lib/frameworks/sproutcore/apps/test_controls/resources/flow_layout_page.js +0 -77
- data/lib/frameworks/sproutcore/apps/test_controls/resources/list_page.js +0 -40
- data/lib/frameworks/sproutcore/apps/test_controls/resources/loading.rhtml +0 -9
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.css +0 -54
- data/lib/frameworks/sproutcore/apps/test_controls/resources/main_page.js +0 -136
- data/lib/frameworks/sproutcore/apps/test_controls/resources/progress_page.js +0 -42
- data/lib/frameworks/sproutcore/apps/test_controls/resources/radio_page.js +0 -41
- data/lib/frameworks/sproutcore/apps/test_controls/resources/scroll_page.js +0 -76
- data/lib/frameworks/sproutcore/apps/test_controls/resources/segmented_page.js +0 -75
- data/lib/frameworks/sproutcore/apps/test_controls/resources/select_page.js +0 -60
- data/lib/frameworks/sproutcore/apps/test_controls/resources/sliders_page.js +0 -53
- data/lib/frameworks/sproutcore/apps/test_controls/resources/strings.js +0 -50
- data/lib/frameworks/sproutcore/apps/test_controls/resources/tab_page.js +0 -15
- data/lib/frameworks/sproutcore/apps/test_controls/resources/text_field_page.js +0 -40
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/bin/edit_json.rb +0 -14
- data/lib/frameworks/sproutcore/bin/erubis +0 -14
- data/lib/frameworks/sproutcore/bin/prettify_json.rb +0 -14
- data/lib/frameworks/sproutcore/bin/rackup +0 -14
- data/lib/frameworks/sproutcore/bin/rake2thor +0 -14
- data/lib/frameworks/sproutcore/bin/sc-build +0 -14
- data/lib/frameworks/sproutcore/bin/sc-build-number +0 -14
- data/lib/frameworks/sproutcore/bin/sc-docs +0 -14
- data/lib/frameworks/sproutcore/bin/sc-gen +0 -14
- data/lib/frameworks/sproutcore/bin/sc-init +0 -14
- data/lib/frameworks/sproutcore/bin/sc-manifest +0 -14
- data/lib/frameworks/sproutcore/bin/sc-server +0 -14
- data/lib/frameworks/sproutcore/bin/sproutcore +0 -14
- data/lib/frameworks/sproutcore/bin/thin +0 -14
- data/lib/frameworks/sproutcore/bin/thor +0 -14
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +0 -130
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/button.js +0 -147
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/checkbox.js +0 -87
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/checkbox_control.js +0 -103
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/disclosure.js +0 -82
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/disclosure_control.js +0 -103
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/image_button.js +0 -33
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/list_item.js +0 -334
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/masterDetail.js +0 -23
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/panel.js +0 -34
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/picker.js +0 -50
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/segment.js +0 -79
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/segmented.js +0 -172
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/slider.js +0 -86
- data/lib/frameworks/sproutcore/frameworks/desktop/renderers/workspace.js +0 -22
- data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -112
- data/lib/frameworks/sproutcore/frameworks/desktop/views/master_detail.js +0 -249
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation.js +0 -237
- data/lib/frameworks/sproutcore/frameworks/desktop/views/navigation_bar.js +0 -181
- data/lib/frameworks/sproutcore/frameworks/desktop/views/workspace.js +0 -270
- data/lib/frameworks/sproutcore/frameworks/documentation/core.js +0 -0
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/default_styles.css +0 -5
- data/lib/frameworks/sproutcore/frameworks/forms/english.lproj/strings.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/auto_hide.js +0 -85
- data/lib/frameworks/sproutcore/frameworks/forms/mixins/edit_mode.js +0 -43
- data/lib/frameworks/sproutcore/frameworks/forms/renderers/form.js +0 -24
- data/lib/frameworks/sproutcore/frameworks/forms/renderers/form_row.js +0 -24
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_label.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_radio_field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_row.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/tests/views/form_text_field.js +0 -15
- data/lib/frameworks/sproutcore/frameworks/forms/views/form.js +0 -266
- data/lib/frameworks/sproutcore/frameworks/forms/views/form_row.js +0 -188
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/pinch.js +0 -81
- data/lib/frameworks/sproutcore/frameworks/foundation/gestures/swipe.js +0 -142
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_mixin.js +0 -33
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/auto_resize.js +0 -74
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/flowed_layout.js +0 -415
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/gestureable.js +0 -106
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/control.js +0 -122
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/image.js +0 -51
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/label.js +0 -96
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/renderer.js +0 -316
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/title.js +0 -108
- data/lib/frameworks/sproutcore/frameworks/foundation/renderers/view.js +0 -62
- data/lib/frameworks/sproutcore/frameworks/foundation/system/gesture.js +0 -245
- data/lib/frameworks/sproutcore/frameworks/foundation/system/theme.js +0 -108
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/renderers/renderer/base.js +0 -170
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/renderers/renderer/inheritance.js +0 -39
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/theme.js +0 -86
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendTouchEvent.js +0 -267
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/animation.js +0 -321
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/build.js +0 -85
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/build_children.js +0 -89
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/renderer.js +0 -443
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/theme.js +0 -41
- data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +0 -6240
- data/lib/frameworks/sproutcore/frameworks/test +0 -77
- data/lib/frameworks/sproutcore/themes/ace/Buildfile +0 -0
- data/lib/frameworks/sproutcore/themes/ace/README.md +0 -161
- data/lib/frameworks/sproutcore/themes/ace/build +0 -2
- data/lib/frameworks/sproutcore/themes/ace/build-d +0 -2
- data/lib/frameworks/sproutcore/themes/ace/chance/README.md +0 -113
- data/lib/frameworks/sproutcore/themes/ace/chance/chance.rb +0 -203
- data/lib/frameworks/sproutcore/themes/ace/chance/lib/css.rb +0 -202
- data/lib/frameworks/sproutcore/themes/ace/chance/lib/slicedice.rb +0 -391
- data/lib/frameworks/sproutcore/themes/ace/chance/sc-theme.rb +0 -0
- data/lib/frameworks/sproutcore/themes/ace/chance/scripts/setup.rb +0 -126
- data/lib/frameworks/sproutcore/themes/ace/mockups/dark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/mockups/dark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/mockups/light.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/mockups/light.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/images/1.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/images/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/images/3.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/resources/theme.css +0 -1832
- data/lib/frameworks/sproutcore/themes/ace/scroll_test/resources/images/1.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/scroll_test/resources/images/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/scroll_test/resources/images/3.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/scroll_test/resources/theme.css +0 -147
- data/lib/frameworks/sproutcore/themes/ace/scroll_test/scrollbars.html +0 -326
- data/lib/frameworks/sproutcore/themes/ace/src/body.css +0 -13
- data/lib/frameworks/sproutcore/themes/ace/src/collections/list.css +0 -4
- data/lib/frameworks/sproutcore/themes/ace/src/collections/list_item.css +0 -7
- data/lib/frameworks/sproutcore/themes/ace/src/collections/source_list/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/collections/source_list/selection.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/collections/source_list/source_list_view.css +0 -37
- data/lib/frameworks/sproutcore/themes/ace/src/containers/container.css +0 -3
- data/lib/frameworks/sproutcore/themes/ace/src/containers/masterdetail/master-detail.css +0 -26
- data/lib/frameworks/sproutcore/themes/ace/src/containers/split/split.css +0 -4
- data/lib/frameworks/sproutcore/themes/ace/src/containers/tab/tab.css +0 -9
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button.js +0 -23
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/button_view.css +0 -53
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/18px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/button_view.css +0 -144
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/button_view_30.css +0 -111
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/button_view.css +0 -57
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/44px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/button_view/button_view.css +0 -56
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_closed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_open_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/buttons/disclosure_view/disclosure_view.css +0 -64
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox.css +0 -25
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/14px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox.css +0 -25
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_checked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/16px/checkbox_unchecked_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/checkbox.css +0 -4
- data/lib/frameworks/sproutcore/themes/ace/src/controls/checkboxes/checkbox_control.css +0 -31
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view.css +0 -70
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_content.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_indeterminate_content.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/progress/progress_view/progress_view_track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio.css +0 -61
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_mixed_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_unselected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/radio/radio_unselected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/horizontal.css +0 -77
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/horizontal/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/thumb.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/track_and_arrows_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/scroll/vertical/vertical.css +0 -74
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented.css +0 -92
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/18px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented.css +0 -87
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/24px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented.css +0 -93
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/30px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented.css +0 -101
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_normal.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_normal.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/44px/segmented_selected_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/segmented.css +0 -73
- data/lib/frameworks/sproutcore/themes/ace/src/controls/segmented/segmented.js +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/active_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/active_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/normal_select.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/normal_select.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/select/select.css +0 -45
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/14px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/14px/slider.css +0 -43
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/16px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/16px/slider.css +0 -44
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/knob_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/slider.css +0 -44
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/22px/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/slider.css +0 -3
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/slider.js +0 -27
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/track.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/slider/track.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_handle.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_handle.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_off.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_off.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_on.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/controls/switch/24px/switch_on.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/core/loading.css +0 -50
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/button_view.css +0 -142
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_capsule.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_capsule.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/24px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/button_view_30.css +0 -111
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/normal_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_active_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button_pointer.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/30px/selected_button_pointer.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/button.css +0 -20
- data/lib/frameworks/sproutcore/themes/ace/src/dark/buttons/button.js +0 -3
- data/lib/frameworks/sproutcore/themes/ace/src/form/iphone/form.js +0 -21
- data/lib/frameworks/sproutcore/themes/ace/src/form/iphone/form_row.js +0 -24
- data/lib/frameworks/sproutcore/themes/ace/src/form/iphone/iphone.css +0 -51
- data/lib/frameworks/sproutcore/themes/ace/src/form/iphone/iphone.js +0 -14
- data/lib/frameworks/sproutcore/themes/ace/src/form/iphone/label.js +0 -32
- data/lib/frameworks/sproutcore/themes/ace/src/panels/pane.css +0 -3
- data/lib/frameworks/sproutcore/themes/ace/src/panels/panel.css +0 -70
- data/lib/frameworks/sproutcore/themes/ace/src/panels/panel.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/panel.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark_active.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/checkmark_active.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/down.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/down.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.css +0 -154
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu_item.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/menu_item.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/up.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/menu/up.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/picker.css +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/picker.js +0 -1
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/picker.js +0 -14
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.css +0 -271
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.js +0 -5
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_empty.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_empty.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers_notoolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_pointers_notoolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/popover_sourcelist.css +0 -5
- data/lib/frameworks/sproutcore/themes/ace/src/panels/picker/popover/workspace.js +0 -51
- data/lib/frameworks/sproutcore/themes/ace/src/theme.js +0 -12
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/normal/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.css +0 -8
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/normal/toolbar.psd +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/panel_header/panel_header.png +0 -0
- data/lib/frameworks/sproutcore/themes/ace/src/toolbars/panel_header/panel_header.psd +0 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/theme.js +0 -16
@@ -1,170 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: SproutCore - JavaScript Application Framework
|
3
|
-
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
|
4
|
-
// Portions ©2008-2009 Apple Inc. All rights reserved.
|
5
|
-
// License: Licensed under MIT license (see license.js)
|
6
|
-
// ==========================================================================
|
7
|
-
|
8
|
-
/*global module test equals context ok */
|
9
|
-
|
10
|
-
var context = null, elem = null, testRenderer = null;
|
11
|
-
|
12
|
-
module("SC.Renderer", {
|
13
|
-
setup: function() {
|
14
|
-
elem = document.createElement('div');
|
15
|
-
context = SC.RenderContext(elem) ;
|
16
|
-
testRenderer = SC.Renderer.extend({
|
17
|
-
render: function(context) {
|
18
|
-
context.push("<a class='test'>Hello</a>");
|
19
|
-
},
|
20
|
-
update: function() {
|
21
|
-
this.$(".test").text("Hi");
|
22
|
-
},
|
23
|
-
didAttachLayer: function(layer) {
|
24
|
-
this.layerWasAttached = YES;
|
25
|
-
this.layerAttached = layer;
|
26
|
-
}
|
27
|
-
}).create();
|
28
|
-
},
|
29
|
-
|
30
|
-
teardown: function() {
|
31
|
-
testRenderer = elem = context = null; // avoid memory leaks
|
32
|
-
}
|
33
|
-
});
|
34
|
-
|
35
|
-
test("calling layer() with no layer attached should return null.", function(){
|
36
|
-
var renderer = testRenderer();
|
37
|
-
equals(renderer.layer(), null, "there should be no layer yet");
|
38
|
-
});
|
39
|
-
|
40
|
-
test("calling layer() with an attached layer should return the layer.", function(){
|
41
|
-
var renderer = testRenderer();
|
42
|
-
renderer.attachLayer(elem);
|
43
|
-
equals(renderer.layer(), elem, "layer should be the layer we attached.");
|
44
|
-
});
|
45
|
-
|
46
|
-
test("calling layer() with an attached layer provider should return the layer.", function(){
|
47
|
-
var renderer = testRenderer();
|
48
|
-
var layerProvider = {
|
49
|
-
isLayerProvider: YES,
|
50
|
-
getLayer: function() { return elem; }
|
51
|
-
};
|
52
|
-
|
53
|
-
renderer.attachLayer(layerProvider);
|
54
|
-
equals(renderer.layerAttached, layerProvider, "make sure that we did indeed send the provider.");
|
55
|
-
equals(renderer.layer(), elem, "layer should be the layer we attached via provider");
|
56
|
-
});
|
57
|
-
|
58
|
-
test("attaching a layer to a renderer causes didAttachLayer to be called with a layer.", function() {
|
59
|
-
var renderer = testRenderer();
|
60
|
-
ok(!renderer.renderWasCalled, "render should not be called");
|
61
|
-
ok(!renderer.updateWasCalled, "update should not be called");
|
62
|
-
ok(!renderer.layerWasAttached, "there should be no layer yet");
|
63
|
-
renderer.attachLayer(elem);
|
64
|
-
ok(!renderer.renderWasCalled, "render still should not be called");
|
65
|
-
ok(!renderer.updateWasCalled, "update still should not be called");
|
66
|
-
ok(renderer.layerWasAttached, "there should be now be a layer");
|
67
|
-
equals(renderer.layerAttached, elem, "the attached layer ought to be our element");
|
68
|
-
});
|
69
|
-
|
70
|
-
test("attaching a layer provider to a renderer causes didAttachLayer to be called with the layer provider.", function() {
|
71
|
-
var renderer = testRenderer();
|
72
|
-
var layerProvider = {
|
73
|
-
isLayerProvider: YES,
|
74
|
-
getLayer: function() { return elem; }
|
75
|
-
};
|
76
|
-
|
77
|
-
ok(!renderer.renderWasCalled, "render should not be called");
|
78
|
-
ok(!renderer.updateWasCalled, "update should not be called");
|
79
|
-
ok(!renderer.layerWasAttached, "there should be no layer yet");
|
80
|
-
renderer.attachLayer(layerProvider);
|
81
|
-
ok(!renderer.renderWasCalled, "render still should not be called");
|
82
|
-
ok(!renderer.updateWasCalled, "update still should not be called");
|
83
|
-
ok(renderer.layerWasAttached, "there should be now be a layer");
|
84
|
-
equals(renderer.layerAttached, layerProvider, "the attached layer ought to be our layer provider");
|
85
|
-
});
|
86
|
-
|
87
|
-
test("rendering to a context, attaching the layer, and then updating, updates the layer.", function() {
|
88
|
-
// first, render
|
89
|
-
var renderer = testRenderer();
|
90
|
-
renderer.render(context);
|
91
|
-
context.update();
|
92
|
-
|
93
|
-
// now, get the render output
|
94
|
-
var initialHTML = elem.innerHTML;
|
95
|
-
|
96
|
-
// check that it cannot update without attaching layer (definitely should not be possible)
|
97
|
-
renderer.update();
|
98
|
-
equals(elem.innerHTML, initialHTML, "check that it can't update without attaching layer (should be impossible)");
|
99
|
-
|
100
|
-
// update
|
101
|
-
renderer.attachLayer(elem);
|
102
|
-
renderer.update();
|
103
|
-
|
104
|
-
// and check again
|
105
|
-
ok(elem.innerHTML != initialHTML, "it should now have updated.");
|
106
|
-
});
|
107
|
-
|
108
|
-
test("provide() provides a good layer provider.", function() {
|
109
|
-
var renderer = testRenderer();
|
110
|
-
|
111
|
-
// make sure that trying to get the layer before rendering returns null
|
112
|
-
var provider = renderer.provide(".test");
|
113
|
-
equals(provider.getLayer(), null, "Check that trying to get layer before rendering returns null.");
|
114
|
-
|
115
|
-
// okay, render
|
116
|
-
renderer.render(context);
|
117
|
-
context.update();
|
118
|
-
|
119
|
-
// the layer provider should NOT work yet, as we have not attached anything
|
120
|
-
equals(provider.getLayer(), null, "provider still should not work--nothing attached.");
|
121
|
-
|
122
|
-
// attach
|
123
|
-
renderer.attachLayer(elem);
|
124
|
-
|
125
|
-
// oddly, the same provider should work
|
126
|
-
equals(provider.getLayer(), elem.childNodes[0], "previously non-functional provider should now work.");
|
127
|
-
|
128
|
-
// now get new provider
|
129
|
-
provider = renderer.provide(".test");
|
130
|
-
equals(provider.getLayer(), elem.childNodes[0], "new provider should also work.");
|
131
|
-
});
|
132
|
-
|
133
|
-
test("setting properties in general works", function(){
|
134
|
-
var renderer = testRenderer();
|
135
|
-
renderer.attr("foo", "bar");
|
136
|
-
equals(renderer.foo, "bar", "foo=bar now that we've set it.");
|
137
|
-
|
138
|
-
renderer.attr({
|
139
|
-
"test": "abc",
|
140
|
-
"test2": "def"
|
141
|
-
});
|
142
|
-
|
143
|
-
equals(renderer.test, "abc", "test=abc");
|
144
|
-
equals(renderer.test2, "def", "test2=def");
|
145
|
-
});
|
146
|
-
|
147
|
-
test("didChange and resetChanges work as expected", function() {
|
148
|
-
var renderer = testRenderer();
|
149
|
-
|
150
|
-
// foo should not have changed yet
|
151
|
-
ok(!renderer.didChange("foo"), "foo can't have changed yet--it has never been set.");
|
152
|
-
|
153
|
-
// let us change it
|
154
|
-
renderer.attr("foo", "test");
|
155
|
-
|
156
|
-
// check that it has now been marked as changed
|
157
|
-
ok(renderer.didChange("foo"), "foo should be marked as having changed.");
|
158
|
-
|
159
|
-
// reset, and check again
|
160
|
-
renderer.resetChanges();
|
161
|
-
ok(!renderer.didChange("foo"), "foo should not be marked as changed anymore.");
|
162
|
-
|
163
|
-
// change to the same value. that should not count.
|
164
|
-
renderer.attr("foo", "test");
|
165
|
-
ok(!renderer.didChange("foo"), "we didn't really change it, did we?");
|
166
|
-
|
167
|
-
// change again, and test again (just in case reset did something weird)
|
168
|
-
renderer.attr("foo", "test2");
|
169
|
-
ok(renderer.didChange("foo"), "we now really did change it.");
|
170
|
-
});
|
data/lib/frameworks/sproutcore/frameworks/foundation/tests/renderers/renderer/inheritance.js
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
// ========================================================================
|
2
|
-
// SC.Renderer Base Tests
|
3
|
-
// ========================================================================
|
4
|
-
/*globals module test ok isObj equals expects same plan */
|
5
|
-
|
6
|
-
var Renderer, ChildRenderer, childRenderer; // global variables
|
7
|
-
|
8
|
-
module("SC.Renderer", {
|
9
|
-
|
10
|
-
setup: function() {
|
11
|
-
Renderer = SC.Renderer.extend({
|
12
|
-
prop: null,
|
13
|
-
func: function() {
|
14
|
-
this.prop = "super";
|
15
|
-
}
|
16
|
-
});
|
17
|
-
ChildRenderer = Renderer.extend({
|
18
|
-
func: function() {
|
19
|
-
sc_super();
|
20
|
-
}
|
21
|
-
});
|
22
|
-
childRenderer = ChildRenderer.create();
|
23
|
-
},
|
24
|
-
|
25
|
-
teardown: function() {
|
26
|
-
Renderer = ChildRenderer = childRenderer = null;
|
27
|
-
}
|
28
|
-
|
29
|
-
});
|
30
|
-
|
31
|
-
test("inheritance", function() {
|
32
|
-
equals(ChildRenderer.superclass, Renderer, "the child renderer's superclass should be the Renderer");
|
33
|
-
});
|
34
|
-
|
35
|
-
test("sc_super support", function() {
|
36
|
-
var child = childRenderer();
|
37
|
-
child.func();
|
38
|
-
equals(child.prop, "super", "property should have been set by superclass function");
|
39
|
-
});
|
@@ -1,86 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: SproutCore - JavaScript Application Framework
|
3
|
-
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
|
4
|
-
// Portions ©2008-2009 Apple Inc. All rights reserved.
|
5
|
-
// License: Licensed under MIT license (see license.js)
|
6
|
-
// ==========================================================================
|
7
|
-
|
8
|
-
/*global module test equals context ok */
|
9
|
-
|
10
|
-
var Ace, Dark, Capsule, DarkCapsule, AceOnly;
|
11
|
-
|
12
|
-
module("SC.Theme", {
|
13
|
-
setup: function() {
|
14
|
-
// make and register Ace
|
15
|
-
Ace = SC.Theme.extend({
|
16
|
-
"classNames": ["ace"]
|
17
|
-
});
|
18
|
-
SC.Theme.register("ace", Ace);
|
19
|
-
|
20
|
-
// Dark
|
21
|
-
Dark = Ace.subtheme("dark", "dark");
|
22
|
-
|
23
|
-
// Capsule
|
24
|
-
Capsule = Ace.subtheme("capsule", "capsule");
|
25
|
-
|
26
|
-
// Dark Capsule
|
27
|
-
DarkCapsule = Dark.subtheme("capsule", "dark-capsule");
|
28
|
-
|
29
|
-
// Ace Only
|
30
|
-
AceOnly = Ace.subtheme("aceOnly", "ace-only");
|
31
|
-
},
|
32
|
-
|
33
|
-
teardown: function() {
|
34
|
-
|
35
|
-
}
|
36
|
-
});
|
37
|
-
|
38
|
-
// use this utility to check themes. We put baseClass and classNames
|
39
|
-
// separate just in case the baseClass itself is wrong (a worst-case scenario test)
|
40
|
-
function themeIs(themeInstance, baseClass, classNames) {
|
41
|
-
ok(themeInstance, "theme exists");
|
42
|
-
if (!themeInstance) return;
|
43
|
-
|
44
|
-
ok(themeInstance.themeClass === baseClass, "check that themeClass is correct");
|
45
|
-
|
46
|
-
var isOk = themeInstance.classNames.length == classNames.length;
|
47
|
-
if (isOk) {
|
48
|
-
for (var idx = 0; idx < themeInstance.classNames.length; idx++) {
|
49
|
-
if (!themeInstance.classNames[idx] == classNames[idx]) isOk = NO;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
ok(isOk, "Class names should match: expected: " + classNames + "; result: " + themeInstance.classNames);
|
53
|
-
}
|
54
|
-
|
55
|
-
test("Calling SC.Theme.find finds proper theme.", function(){
|
56
|
-
var ace = SC.Theme.find("ace");
|
57
|
-
themeIs(ace, Ace, ["ace"]);
|
58
|
-
});
|
59
|
-
|
60
|
-
test("There is no proliferation of theme registration (that is, subthemes are not registered globally)", function(){
|
61
|
-
var dark = SC.Theme.find("dark");
|
62
|
-
ok(!dark, "Theme should not be found.");
|
63
|
-
});
|
64
|
-
|
65
|
-
test("Calling find on a subtheme class finds proper theme.", function(){
|
66
|
-
var dark = Ace.find("dark");
|
67
|
-
themeIs(dark, Dark, ["ace", "dark"]);
|
68
|
-
});
|
69
|
-
|
70
|
-
test("Calling find on a theme instance finds proper theme.", function(){
|
71
|
-
var ace = SC.Theme.find("ace");
|
72
|
-
var dark = ace.find("dark");
|
73
|
-
themeIs(dark, Dark, ["ace", "dark"]);
|
74
|
-
});
|
75
|
-
|
76
|
-
test("Calling find on a subtheme instance finds the proper theme.", function(){
|
77
|
-
var dark = Ace.find("dark");
|
78
|
-
var capsule = dark.find("capsule");
|
79
|
-
themeIs(capsule, DarkCapsule, ["ace", "dark", "dark-capsule"]);
|
80
|
-
});
|
81
|
-
|
82
|
-
test("Calling find on a subtheme instance will find themes in base themes.", function() {
|
83
|
-
var dark = Ace.find("dark");
|
84
|
-
var aceOnly = dark.find("aceOnly");
|
85
|
-
themeIs(aceOnly, AceOnly, ["ace", "ace-only"]);
|
86
|
-
});
|
@@ -1,267 +0,0 @@
|
|
1
|
-
// ==========================================================================
|
2
|
-
// Project: SproutCore - JavaScript Application Framework
|
3
|
-
// Copyright: ©2006-2010 Apple Inc. and contributors.
|
4
|
-
// License: Licensed under MIT license (see license.js)
|
5
|
-
// ==========================================================================
|
6
|
-
|
7
|
-
/*global module test equals context ok same Q$ htmlbody */
|
8
|
-
var pane, fooView, barView, defaultResponder, evt, callCount ;
|
9
|
-
var handlerYes, handlerNo, handlerMixed;
|
10
|
-
|
11
|
-
module("SC.Pane#sendTouchEvent - single view", {
|
12
|
-
setup: function() {
|
13
|
-
|
14
|
-
callCount = 0;
|
15
|
-
var handler = function(theEvent) {
|
16
|
-
callCount++ ;
|
17
|
-
equals(theEvent, evt, 'should pass event');
|
18
|
-
return YES;
|
19
|
-
};
|
20
|
-
|
21
|
-
defaultResponder = SC.Object.create({ defaultEvent: handler });
|
22
|
-
pane = SC.Pane.create({
|
23
|
-
defaultResponder: defaultResponder,
|
24
|
-
childViews: [SC.View.extend({
|
25
|
-
fooEvent: handler,
|
26
|
-
childViews: [SC.View.extend({
|
27
|
-
barEvent: handler
|
28
|
-
})]
|
29
|
-
})]
|
30
|
-
});
|
31
|
-
fooView = pane.childViews[0];
|
32
|
-
ok(fooView.fooEvent, 'has fooEvent handler');
|
33
|
-
|
34
|
-
barView = fooView.childViews[0];
|
35
|
-
ok(barView.barEvent, 'has barEvent handler');
|
36
|
-
|
37
|
-
evt = SC.Object.create(); // mock
|
38
|
-
},
|
39
|
-
|
40
|
-
teardown: function() {
|
41
|
-
pane = fooView = barView = defaultResponder = evt = null ;
|
42
|
-
}
|
43
|
-
});
|
44
|
-
|
45
|
-
test("when invoked with target = nested view", function() {
|
46
|
-
var handler ;
|
47
|
-
|
48
|
-
// test event handler on target
|
49
|
-
callCount = 0;
|
50
|
-
handler = pane.sendTouchEvent('barEvent', evt, barView);
|
51
|
-
equals(callCount, 1, 'should invoke handler');
|
52
|
-
equals(handler[0], barView, 'should return view that handled event');
|
53
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
54
|
-
|
55
|
-
// test event handler on target parent
|
56
|
-
callCount = 0;
|
57
|
-
handler = pane.sendTouchEvent('fooEvent', evt, barView);
|
58
|
-
equals(callCount, 1, 'should invoke handler');
|
59
|
-
equals(handler[0], fooView, 'should return responder that handled event');
|
60
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
61
|
-
|
62
|
-
// test event handler on default responder
|
63
|
-
callCount = 0;
|
64
|
-
handler = pane.sendTouchEvent('defaultEvent', evt, barView);
|
65
|
-
equals(callCount, 1, 'should invoke handler');
|
66
|
-
equals(handler[0], defaultResponder, 'should return responder that handled event');
|
67
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
68
|
-
|
69
|
-
// test unhandled event handler
|
70
|
-
callCount = 0;
|
71
|
-
handler = pane.sendTouchEvent('imaginary', evt, barView);
|
72
|
-
equals(callCount, 0, 'should not invoke handler');
|
73
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
74
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
75
|
-
|
76
|
-
});
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
test("when invoked with target = middle view", function() {
|
81
|
-
var handler ;
|
82
|
-
|
83
|
-
// test event handler on child view of target
|
84
|
-
callCount = 0;
|
85
|
-
handler = pane.sendTouchEvent('barEvent', evt, fooView);
|
86
|
-
equals(callCount, 0, 'should not invoke handler');
|
87
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
88
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
89
|
-
|
90
|
-
// test event handler on target
|
91
|
-
callCount = 0;
|
92
|
-
handler = pane.sendTouchEvent('fooEvent', evt, fooView);
|
93
|
-
equals(callCount, 1, 'should invoke handler');
|
94
|
-
equals(handler[0], fooView, 'should return responder that handled event');
|
95
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
96
|
-
|
97
|
-
|
98
|
-
// test event handler on default responder
|
99
|
-
callCount = 0;
|
100
|
-
handler = pane.sendTouchEvent('defaultEvent', evt, fooView);
|
101
|
-
equals(callCount, 1, 'should invoke handler');
|
102
|
-
equals(handler[0], defaultResponder, 'should return responder that handled event');
|
103
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
104
|
-
|
105
|
-
|
106
|
-
// test unhandled event handler
|
107
|
-
callCount = 0;
|
108
|
-
handler = pane.sendTouchEvent('imaginary', evt, fooView);
|
109
|
-
equals(callCount, 0, 'should not invoke handler');
|
110
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
111
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
112
|
-
|
113
|
-
});
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
test("when invoked with target = pane", function() {
|
118
|
-
var handler ;
|
119
|
-
|
120
|
-
// test event handler on child view of target
|
121
|
-
callCount = 0;
|
122
|
-
handler = pane.sendTouchEvent('barEvent', evt, pane);
|
123
|
-
equals(callCount, 0, 'should not invoke handler');
|
124
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
125
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
126
|
-
|
127
|
-
// test event handler on target
|
128
|
-
callCount = 0;
|
129
|
-
handler = pane.sendTouchEvent('fooEvent', evt, pane);
|
130
|
-
equals(callCount, 0, 'should not invoke handler');
|
131
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
132
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
133
|
-
|
134
|
-
// test event handler on default responder
|
135
|
-
callCount = 0;
|
136
|
-
handler = pane.sendTouchEvent('defaultEvent', evt, pane);
|
137
|
-
equals(callCount, 1, 'should invoke handler');
|
138
|
-
equals(handler[0], defaultResponder, 'should return responder that handled event');
|
139
|
-
equals(handler.get('length'), 1, 'should only be handled by one view');
|
140
|
-
|
141
|
-
// test unhandled event handler
|
142
|
-
callCount = 0;
|
143
|
-
handler = pane.sendTouchEvent('imaginary', evt, pane);
|
144
|
-
equals(callCount, 0, 'should not invoke handler');
|
145
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
146
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
147
|
-
|
148
|
-
});
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
test("when invoked with target = null", function() {
|
153
|
-
var handler ;
|
154
|
-
|
155
|
-
// should start @ first responder
|
156
|
-
pane.firstResponder = fooView;
|
157
|
-
|
158
|
-
// test event handler on child view of target
|
159
|
-
callCount = 0;
|
160
|
-
handler = pane.sendTouchEvent('barEvent', evt);
|
161
|
-
equals(callCount, 0, 'should not invoke handler');
|
162
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
163
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
164
|
-
|
165
|
-
// test event handler on target
|
166
|
-
callCount = 0;
|
167
|
-
handler = pane.sendTouchEvent('fooEvent', evt);
|
168
|
-
equals(callCount, 1, 'should invoke handler');
|
169
|
-
equals(handler[0], fooView, 'should return responder that handled event');
|
170
|
-
|
171
|
-
// test event handler on default responder
|
172
|
-
callCount = 0;
|
173
|
-
handler = pane.sendTouchEvent('defaultEvent', evt);
|
174
|
-
equals(callCount, 1, 'should invoke handler');
|
175
|
-
equals(handler[0], defaultResponder, 'should return responder that handled event');
|
176
|
-
|
177
|
-
// test unhandled event handler
|
178
|
-
callCount = 0;
|
179
|
-
handler = pane.sendTouchEvent('imaginary', evt);
|
180
|
-
equals(callCount, 0, 'should not invoke handler');
|
181
|
-
equals(SC.typeOf(handler), SC.T_ARRAY, 'should return array if no handlers');
|
182
|
-
equals(handler.get('length'), 0, 'array should be empty');
|
183
|
-
|
184
|
-
});
|
185
|
-
|
186
|
-
module("SC.Pane#sendTouchEvent - multiple views", {
|
187
|
-
setup: function() {
|
188
|
-
|
189
|
-
callCount = 0;
|
190
|
-
handlerYes = function(theEvent) {
|
191
|
-
callCount++ ;
|
192
|
-
equals(theEvent, evt, 'should pass event');
|
193
|
-
return YES;
|
194
|
-
};
|
195
|
-
|
196
|
-
handlerNo = function(theEvent) {
|
197
|
-
callCount++ ;
|
198
|
-
equals(theEvent, evt, 'should pass event');
|
199
|
-
return NO;
|
200
|
-
};
|
201
|
-
|
202
|
-
handlerMixed = function(theEvent) {
|
203
|
-
callCount++ ;
|
204
|
-
equals(theEvent, evt, 'should pass event');
|
205
|
-
return SC.MIXED_STATE;
|
206
|
-
};
|
207
|
-
|
208
|
-
defaultResponder = SC.Object.create({ defaultEvent: handlerMixed,
|
209
|
-
barEvent: handlerMixed });
|
210
|
-
pane = SC.Pane.create({
|
211
|
-
defaultResponder: defaultResponder,
|
212
|
-
childViews: [SC.View.extend({
|
213
|
-
fooEvent: handlerMixed,
|
214
|
-
barEvent: handlerMixed,
|
215
|
-
childViews: [SC.View.extend({
|
216
|
-
barEvent: handlerMixed
|
217
|
-
})]
|
218
|
-
})]
|
219
|
-
});
|
220
|
-
fooView = pane.childViews[0];
|
221
|
-
ok(fooView.fooEvent, 'has fooEvent handler');
|
222
|
-
|
223
|
-
barView = fooView.childViews[0];
|
224
|
-
ok(barView.barEvent, 'has barEvent handler');
|
225
|
-
|
226
|
-
evt = SC.Object.create(); // mock
|
227
|
-
},
|
228
|
-
|
229
|
-
teardown: function() {
|
230
|
-
pane = fooView = barView = defaultResponder = evt = null ;
|
231
|
-
}
|
232
|
-
});
|
233
|
-
|
234
|
-
test('view chain with only non-exclusive responders', function() {
|
235
|
-
var handler;
|
236
|
-
|
237
|
-
callCount = 0;
|
238
|
-
handler = pane.sendTouchEvent('barEvent', evt, barView);
|
239
|
-
equals(callCount, 3, 'should invoke handler on entire chain');
|
240
|
-
equals(handler[0], barView, 'should return responder that returned SC.MIXED_STATE');
|
241
|
-
equals(handler[1], fooView, 'should return responder that returned SC.MIXED_STATE');
|
242
|
-
equals(handler[2], defaultResponder, 'should return responder that returned SC.MIXED_STATE');
|
243
|
-
equals(handler.get('length'), 3, 'should be handled by all three responders');
|
244
|
-
});
|
245
|
-
|
246
|
-
test('view chain with one exclusive responder', function() {
|
247
|
-
var handler;
|
248
|
-
|
249
|
-
fooView.barEvent = handlerYes;
|
250
|
-
callCount = 0;
|
251
|
-
handler = pane.sendTouchEvent('barEvent', evt, barView);
|
252
|
-
equals(callCount, 2, 'should invoke handler on first two views');
|
253
|
-
equals(handler[0], fooView, 'should return responder that returned YES');
|
254
|
-
equals(handler.get('length'), 1, 'responder should have exclusive control');
|
255
|
-
});
|
256
|
-
|
257
|
-
test('view chain with default responder that returns YES', function() {
|
258
|
-
var handler;
|
259
|
-
|
260
|
-
fooView.barEvent = handlerNo;
|
261
|
-
defaultResponder.barEvent = handlerYes;
|
262
|
-
callCount = 0;
|
263
|
-
handler = pane.sendTouchEvent('barEvent', evt, barView);
|
264
|
-
equals(callCount, 3, 'should invoke handler on all three responders');
|
265
|
-
equals(handler[0], defaultResponder, 'should return responder that returned YES');
|
266
|
-
equals(handler.get('length'), 1, 'responder should have exclusive control');
|
267
|
-
});
|