sproutcore 1.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/DISTRIBUTION.yml +20 -0
- data/Gemfile +3 -0
- data/History.txt +54 -0
- data/README.txt +104 -0
- data/Rakefile +446 -0
- data/Todo.txt +1 -0
- data/VERSION.yml +7 -0
- data/bin/sc-build +18 -0
- data/bin/sc-build-number +18 -0
- data/bin/sc-docs +19 -0
- data/bin/sc-gen +18 -0
- data/bin/sc-init +18 -0
- data/bin/sc-manifest +18 -0
- data/bin/sc-server +18 -0
- data/bin/sproutcore +18 -0
- data/design/Technical Notes.graffle/QuickLook/Preview.pdf +0 -0
- data/design/Technical Notes.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/design/Technical Notes.graffle/data.plist +5534 -0
- data/design/Technical Notes.graffle/image8.png +0 -0
- data/lib/Buildfile +140 -0
- data/lib/buildtasks/build.rake +103 -0
- data/lib/buildtasks/entry.rake +68 -0
- data/lib/buildtasks/manifest.rake +615 -0
- data/lib/buildtasks/render.rake +21 -0
- data/lib/buildtasks/target.rake +65 -0
- data/lib/doc_templates/jsdoc/allclasses.tmpl +17 -0
- data/lib/doc_templates/jsdoc/allfiles.tmpl +56 -0
- data/lib/doc_templates/jsdoc/class.tmpl +487 -0
- data/lib/doc_templates/jsdoc/index.tmpl +38 -0
- data/lib/doc_templates/jsdoc/publish.js +170 -0
- data/lib/doc_templates/jsdoc/static/default.css +162 -0
- data/lib/doc_templates/jsdoc/static/header.html +2 -0
- data/lib/doc_templates/jsdoc/static/index.html +19 -0
- data/lib/doc_templates/jsdoc/symbol.tmpl +35 -0
- data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
- data/lib/doc_templates/sproutcore/allfiles.tmpl +56 -0
- data/lib/doc_templates/sproutcore/class.tmpl +674 -0
- data/lib/doc_templates/sproutcore/classes-json.tmpl +55 -0
- data/lib/doc_templates/sproutcore/index.tmpl +48 -0
- data/lib/doc_templates/sproutcore/publish.js +346 -0
- data/lib/doc_templates/sproutcore/static/default.css +258 -0
- data/lib/doc_templates/sproutcore/static/header.html +2 -0
- data/lib/doc_templates/sproutcore/static/index.html +19 -0
- data/lib/doc_templates/sproutcore/symbol.tmpl +35 -0
- data/lib/frameworks/sproutcore/Buildfile +101 -0
- data/lib/frameworks/sproutcore/CHANGELOG.md +170 -0
- data/lib/frameworks/sproutcore/HISTORY +697 -0
- data/lib/frameworks/sproutcore/README.md +68 -0
- data/lib/frameworks/sproutcore/apps/docs/core.js +27 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +14378 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/main_page.js +22 -0
- data/lib/frameworks/sproutcore/apps/docs/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/docs/main.js +30 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/README +25 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/TODO +72 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/beautify.js +1058 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/design.js +20 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/file.js +75 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/files.js +40 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/layout.js +53 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/library.js +201 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/page.js +18 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/property.js +19 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/property_editor.js +17 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/target.js +20 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/targets.js +43 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/controllers/view_configs.js +100 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/core.js +67 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/core_file.js +124 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/data_source.js +250 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/app_page.js +377 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +111 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/button.css +310 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/dock.css +85 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/general.css +52 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +120 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/menu.css +52 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/modal.css +40 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/picker.css +188 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/search.css +60 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/tabbed.css +68 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +67 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/dialogs.js +302 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/inspectors.js +365 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/main_page.js +95 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/english.lproj/strings.js +87 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/fixtures/file.js +35 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/main.js +28 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/mixins/drop_down.js +97 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/design.js +22 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/dir.js +92 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/file.js +51 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/target.js +82 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/models/view_config.js +49 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/resources/test_page.js +37 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/inspector.js +144 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/library.js +133 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/main.js +224 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/modals.js +291 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/states/ready.js +197 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/design.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/designs.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/file.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/controllers/files.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/models/file.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/models/view_config.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/tests/views/list_item.js +15 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/anchor.js +277 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/application_list_item.js +19 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/event_blocker.js +32 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/label_designer.js +16 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/list_item.js +42 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/plist_item.js +39 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/simple_button.js +157 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/tear_off_picker.js +56 -0
- data/lib/frameworks/sproutcore/apps/greenhouse/views/web.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/detail.js +25 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/source.js +29 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/target.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/targets.js +86 -0
- data/lib/frameworks/sproutcore/apps/tests/controllers/tests.js +33 -0
- data/lib/frameworks/sproutcore/apps/tests/core.js +133 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
- data/lib/frameworks/sproutcore/apps/tests/english.lproj/strings.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/main.js +27 -0
- data/lib/frameworks/sproutcore/apps/tests/states/no_targets.js +26 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready.js +56 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_detail.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_empty.js +48 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_list.js +41 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_loading.js +44 -0
- data/lib/frameworks/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
- data/lib/frameworks/sproutcore/apps/tests/states/start.js +39 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/source.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/target.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/models/test.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
- data/lib/frameworks/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
- data/lib/frameworks/sproutcore/apps/welcome/controllers/targets.js +49 -0
- data/lib/frameworks/sproutcore/apps/welcome/core.js +30 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.css +7 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/main_page.js +77 -0
- data/lib/frameworks/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/apps/welcome/main.js +19 -0
- data/lib/frameworks/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
- data/lib/frameworks/sproutcore/design/CollectionView State Charts.graffle +4848 -0
- data/lib/frameworks/sproutcore/design/Design Charts.graffle +16845 -0
- data/lib/frameworks/sproutcore/design/Record State Table.numbers +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +19588 -0
- data/lib/frameworks/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/data.plist +1452 -0
- data/lib/frameworks/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/data.plist +24187 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
- data/lib/frameworks/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.graffle +9025 -0
- data/lib/frameworks/sproutcore/design/greenhouse-statechart.pdf +0 -0
- data/lib/frameworks/sproutcore/design/iphone-webapp-loading.psd +0 -0
- data/lib/frameworks/sproutcore/frameworks/animation/Buildfile +3 -0
- data/lib/frameworks/sproutcore/frameworks/animation/LICENSE +25 -0
- data/lib/frameworks/sproutcore/frameworks/animation/README.md +79 -0
- data/lib/frameworks/sproutcore/frameworks/animation/core.js +1192 -0
- data/lib/frameworks/sproutcore/frameworks/animation/tests/core.js +147 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/README +9 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/core.js +7 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/bootstrap/system/loader.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/core.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/data_source.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/target.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/core_tools/models/test.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/core.js +8 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/cascade.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/data_source.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/json.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_attribute.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/child_record.js +105 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/children_attribute.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/many_attribute.js +153 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record.js +1201 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/record_attribute.js +494 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/models/single_attribute.js +159 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +242 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/many_array.js +415 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/nested_store.js +588 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +1600 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +651 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +2666 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +235 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/parentless.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/normalize.js +273 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +171 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +154 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/parse.js +216 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +72 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +106 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +73 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +184 -0
- data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/core.js +865 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/english.lproj/en-US.js +186 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/extras.js +332 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/license.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/parser.js +1116 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/spanish.lproj/es-CO.js +186 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/sugarpak.js +475 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/time.js +269 -0
- data/lib/frameworks/sproutcore/frameworks/datejs/validators/datejs.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/debug/core.js +114 -0
- data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/design.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/localization.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/designer/coders/object.js +347 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/controllers.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/design.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/designs.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_design.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/designer/controllers/page_files.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/designer/core.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_rule.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/designer/css/css_style_sheet.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/button.js +21 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/label.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/object_designer.js +296 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/tab.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/text_field.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/designer/designers/view_designer.js +1259 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/css/designer.css +96 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/design_page.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/high_light.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/designer/english.lproj/selection_handles.css +58 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/object.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/page.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/designer/ext/view.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/button.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/designer/mixins/snap_lines.js +221 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/designer_drop_target.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/drawing.js +219 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/high_light.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/page_item_view.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/designer/views/selection_handles.js +78 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/core.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/debug/drag.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/disclosure.css +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/icons.css +943 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/list_item.css +161 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +109 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/segmented.css +134 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +66 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/video.css +3 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +138 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +694 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_group.js +22 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +61 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +295 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +253 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +410 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +1115 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/palette.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +696 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +849 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +214 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_data_source.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +175 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +299 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +923 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/key_bindings.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +187 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/integration/dialog.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/mixins/border.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +135 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/pane_page.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/methods.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/button/ui.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +95 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +127 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/list_item.js +288 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/progress/ui.js +287 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/radio/ui.js +232 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/scroller.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +119 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +226 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select/ui.js +216 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +132 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/separator.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/split/ui.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +231 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +88 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +619 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +112 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +3073 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/date_field.js +319 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/disclosure.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/grid.js +207 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list.js +631 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/list_item.js +836 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_item.js +681 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/menu_scroll.js +588 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/popup_button.js +298 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/progress.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/radio.js +376 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scene.js +204 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroll.js +1790 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/scroller.js +884 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +678 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +673 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +324 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/separator.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/slider.js +286 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/source_list_group.js +169 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split.js +781 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/split_divider.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/stacked.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +184 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/thumb.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/toolbar.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/web.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/desktop/views/well.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/TESTING +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/array.js +518 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/controller.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/object.js +342 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/controllers/tree.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/core.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/debug/control_test_pane.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +79 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/core.css +474 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/label.css +42 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/text_field.css +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/english.lproj/view.css +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/object.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/ext/run_loop.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/license.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/button.js +360 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/collection_content.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/content_display.js +96 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/control.js +377 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/editable.js +152 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/inline_text_field.js +580 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/responder_context.js +269 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/selection_support.js +250 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +77 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/string.js +543 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/tree_item_content.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/mixins/validatable.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/main.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/panes/pane.js +848 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +907 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/protocols/inline_editor_delegate.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/application.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/benchmark.js +514 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/browser.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/builder.js +210 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/bundle.js +337 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/core_query.js +2049 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/cursor.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/datetime.js +1129 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/device.js +143 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/event.js +894 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/exception_handler.js +85 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/image_cache.js +432 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/json.js +515 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/locale.js +293 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/math.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/page.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/platform.js +297 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/ready.js +197 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/render_context.js +988 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/request.js +599 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/responder.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/response.js +538 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/root_responder.js +2060 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/routes.js +420 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/task_queue.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/time.js +473 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/timer.js +551 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/user_defaults.js +397 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/system/utils.js +710 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tasks/task.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/array_case.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/enum_case.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/null_case.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/selection_support.js +318 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/array/single_case.js +136 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/empty_case.js +82 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/multiple_case.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_case.js +193 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/object/single_enumerable_case.js +265 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/integration/creating_views.js +113 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/content.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/content.js +168 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +227 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/responder_context.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +142 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/string.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/builder.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_core.js +1334 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_dimensions.js +387 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/jquery_selector.js +405 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/core_query/within.js +66 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/datetime.js +348 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/json.js +14 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/locale.js +134 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/begin.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/element.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/end.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/get.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_attr.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_basic.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_className.js +179 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/helpers_style.js +101 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/init.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/join.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/push_text.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/tag.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/render_context/update.js +218 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/request.js +223 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeKeyPane.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMainPane.js +68 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/makeMenuPane.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/root_responder.js +101 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/root_responder/targetForAction.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/routes.js +352 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/task_queue.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invalidate.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/invokeLater.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/isPaused.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/performAction.js +69 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/timer/schedule.js +170 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/user_defaults.js +24 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/normalizeURL.js +18 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/range.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/system/utils/rect.js +99 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/credit_card.js +35 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/date.js +26 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/number.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/password.js +13 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/validators/validator.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/methods.js +10 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +115 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/image/ui.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/label/ui.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/main_pane.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/append_remove.js +124 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/firstResponder.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/keyPane.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/layout.js +31 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/pane/sendEvent.js +206 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +530 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/clippingFrame.js +133 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertFrames.js +246 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/convertLayouts.js +145 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createChildViews.js +122 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/createLayer.js +97 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/destroyLayer.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/didAppendToDocument.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/findLayerInParentLayer.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/init.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/insertBefore.js +200 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisible.js +51 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/isVisibleInWindow.js +116 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layer.js +150 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutChildViews.js +162 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutDidChange.js +127 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/layoutStyle.js +531 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/nextValidKeyView.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/parentViewDidChange.js +67 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/prepareContext.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/removeChild.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/render.js +83 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/replaceChild.js +29 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayer.js +146 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/updateLayerLocation.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/view/viewDidResize.js +202 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date.js +52 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/email.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/not_empty.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/number.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/password.js +86 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/positive_integer.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/validators/validator.js +326 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +139 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/field.js +320 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/image.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/label.js +339 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/text_field.js +946 -0
- data/lib/frameworks/sproutcore/frameworks/foundation/views/view.js +3313 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/controls.png +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/video.css +120 -0
- data/lib/frameworks/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/audio.js +739 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/controls.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/media_slider.js +243 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/mini_controls.js +63 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/simple_controls.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/media/views/video.js +832 -0
- data/lib/frameworks/sproutcore/frameworks/mini/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/README +12 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/core.js +1061 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +238 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/license.js +28 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +643 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/comparable.js +45 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/copyable.js +64 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/delegate_support.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +1298 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/freezable.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/mixins/observable.js +1347 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/chain_observer.js +141 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_queue.js +173 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/private/observer_set.js +180 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/observable_protocol.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/protocols/sparse_array_delegate.js +131 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/binding.js +1000 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/cookie.js +160 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/error.js +157 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +1199 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/logger.js +452 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/object.js +888 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/range_observer.js +271 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/run_loop.js +295 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/selection_set.js +697 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/set.js +532 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/system/sparse_array.js +379 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/IsEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/beget.js +23 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/clone.js +84 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/console.js +16 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/guidFor.js +182 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/inspect.js +27 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/isArray.js +25 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/itemType.js +39 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/keys.js +20 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/makeArray.js +30 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +19 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +37 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array.js +57 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +622 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +667 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +79 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +81 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +395 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/cookie.js +163 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/error.js +53 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/logger.js +177 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/base.js +195 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/object/bindings.js +360 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/run_loop.js +120 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/add.js +92 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/copy.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/indexSetForSource.js +98 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/isEqual.js +60 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/selection_set/remove.js +111 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/set.js +292 -0
- data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/sparse_array.js +194 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/core.js +11 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/mixins/statechart.js +336 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +176 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/basic.js +90 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/history.js +71 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/nested.js +59 -0
- data/lib/frameworks/sproutcore/frameworks/statechart/tests/transient.js +148 -0
- data/lib/frameworks/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
- data/lib/frameworks/sproutcore/frameworks/table/system/table_column.js +125 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table.js +439 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_cell.js +62 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_head.js +158 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_header.js +212 -0
- data/lib/frameworks/sproutcore/frameworks/table/views/table_row.js +155 -0
- data/lib/frameworks/sproutcore/frameworks/testing/core.js +196 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
- data/lib/frameworks/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
- data/lib/frameworks/sproutcore/frameworks/testing/extras.js +17 -0
- data/lib/frameworks/sproutcore/frameworks/testing/jquery.js +3559 -0
- data/lib/frameworks/sproutcore/frameworks/testing/qunit.js +827 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/dump.js +205 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/equiv.js +201 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +695 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/runner.js +209 -0
- data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +228 -0
- data/lib/frameworks/sproutcore/frameworks/testing/utils.js +62 -0
- data/lib/frameworks/sproutcore/lib/index.rhtml +119 -0
- data/lib/frameworks/sproutcore/license.js +30 -0
- data/lib/frameworks/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
- data/lib/frameworks/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/button.css +399 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/checkbox.css +78 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/collection.css +135 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/core.css +76 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/disclosure.css +57 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/label.css +11 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/list_item.css +82 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/menu.css +20 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +36 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/pane.css +18 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/panel.css +33 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/picker.css +17 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/progress.css +27 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/radio.css +125 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/scroller.css +159 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/segmented.css +275 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/slider.css +94 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/split_view.css +11 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/tab.css +14 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/table.css +14 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/text_field.css +5 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/toolbar.css +7 -0
- data/lib/frameworks/sproutcore/themes/standard_theme/english.lproj/well.css +36 -0
- data/lib/gen/Buildfile +16 -0
- data/lib/gen/app/Buildfile +36 -0
- data/lib/gen/app/README +1 -0
- data/lib/gen/app/USAGE +13 -0
- data/lib/gen/app/templates/apps/@target_name@/core.js +27 -0
- data/lib/gen/app/templates/apps/@target_name@/main.js +30 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/loading.rhtml +9 -0
- data/lib/gen/app/templates/apps/@target_name@/resources/main_page.js +24 -0
- data/lib/gen/controller/Buildfile +18 -0
- data/lib/gen/controller/README +1 -0
- data/lib/gen/controller/USAGE +13 -0
- data/lib/gen/controller/templates/controllers/@filename@.js +18 -0
- data/lib/gen/controller/templates/tests/controllers/@filename@.js +15 -0
- data/lib/gen/data-source/Buildfile +18 -0
- data/lib/gen/data-source/README +1 -0
- data/lib/gen/data-source/USAGE +15 -0
- data/lib/gen/data-source/templates/data_sources/@filename@.js +64 -0
- data/lib/gen/design/Buildfile +23 -0
- data/lib/gen/design/README +1 -0
- data/lib/gen/design/USAGE +10 -0
- data/lib/gen/design/templates/resources/@filename@.js +16 -0
- data/lib/gen/framework/Buildfile +36 -0
- data/lib/gen/framework/README +1 -0
- data/lib/gen/framework/USAGE +13 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/core.js +21 -0
- data/lib/gen/framework/templates/frameworks/@target_name@/english.lproj/strings.js +15 -0
- data/lib/gen/language/Buildfile +26 -0
- data/lib/gen/language/README +1 -0
- data/lib/gen/language/USAGE +13 -0
- data/lib/gen/language/templates/@filename@/strings.js +14 -0
- data/lib/gen/model/Buildfile +16 -0
- data/lib/gen/model/README +1 -0
- data/lib/gen/model/USAGE +15 -0
- data/lib/gen/model/templates/fixtures/@filename@.js +35 -0
- data/lib/gen/model/templates/models/@filename@.js +19 -0
- data/lib/gen/model/templates/tests/models/@filename@.js +15 -0
- data/lib/gen/page/Buildfile +36 -0
- data/lib/gen/page/README +1 -0
- data/lib/gen/page/USAGE +15 -0
- data/lib/gen/page/templates/pages/@target_name@/Buildfile +16 -0
- data/lib/gen/page/templates/pages/@target_name@/core.js +22 -0
- data/lib/gen/page/templates/pages/@target_name@/en.lproj/strings.js +14 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.css +1 -0
- data/lib/gen/page/templates/pages/@target_name@/resources/body.rhtml +7 -0
- data/lib/gen/project/Buildfile +45 -0
- data/lib/gen/project/INIT +3 -0
- data/lib/gen/project/README +1 -0
- data/lib/gen/project/USAGE +2 -0
- data/lib/gen/project/templates/@filename@/Buildfile +7 -0
- data/lib/gen/project/templates/@filename@/README +7 -0
- data/lib/gen/responder/Buildfile +18 -0
- data/lib/gen/responder/README +1 -0
- data/lib/gen/responder/USAGE +15 -0
- data/lib/gen/responder/templates/states/@filename@.js +39 -0
- data/lib/gen/test/Buildfile +25 -0
- data/lib/gen/test/README +1 -0
- data/lib/gen/test/USAGE +12 -0
- data/lib/gen/test/templates/tests/@filename@.js +15 -0
- data/lib/gen/theme/Buildfile +36 -0
- data/lib/gen/theme/README +1 -0
- data/lib/gen/theme/USAGE +13 -0
- data/lib/gen/theme/templates/themes/@target_name@/resources/theme_styles.css +11 -0
- data/lib/gen/view/Buildfile +18 -0
- data/lib/gen/view/README +1 -0
- data/lib/gen/view/USAGE +13 -0
- data/lib/gen/view/templates/tests/views/@filename@.js +15 -0
- data/lib/gen/view/templates/views/@filename@.js +18 -0
- data/lib/sproutcore.rb +167 -0
- data/lib/sproutcore/builders.rb +13 -0
- data/lib/sproutcore/builders/base.rb +90 -0
- data/lib/sproutcore/builders/bundle.rb +63 -0
- data/lib/sproutcore/builders/combine.rb +60 -0
- data/lib/sproutcore/builders/html.rb +211 -0
- data/lib/sproutcore/builders/javascript.rb +101 -0
- data/lib/sproutcore/builders/less.rb +41 -0
- data/lib/sproutcore/builders/minify.rb +159 -0
- data/lib/sproutcore/builders/sass.rb +65 -0
- data/lib/sproutcore/builders/strings.rb +45 -0
- data/lib/sproutcore/builders/stylesheet.rb +56 -0
- data/lib/sproutcore/builders/test.rb +59 -0
- data/lib/sproutcore/builders/test_index.rb +26 -0
- data/lib/sproutcore/buildfile.rb +490 -0
- data/lib/sproutcore/buildfile/build_task.rb +33 -0
- data/lib/sproutcore/buildfile/buildfile_dsl.rb +169 -0
- data/lib/sproutcore/buildfile/cloneable.rb +34 -0
- data/lib/sproutcore/buildfile/early_time.rb +30 -0
- data/lib/sproutcore/buildfile/invocation_chain.rb +64 -0
- data/lib/sproutcore/buildfile/namespace.rb +33 -0
- data/lib/sproutcore/buildfile/string_ext.rb +202 -0
- data/lib/sproutcore/buildfile/task.rb +333 -0
- data/lib/sproutcore/buildfile/task_arguments.rb +106 -0
- data/lib/sproutcore/buildfile/task_manager.rb +195 -0
- data/lib/sproutcore/deprecated/view_helper.rb +662 -0
- data/lib/sproutcore/helpers.rb +11 -0
- data/lib/sproutcore/helpers/capture_helper.rb +30 -0
- data/lib/sproutcore/helpers/cssmin.rb +202 -0
- data/lib/sproutcore/helpers/dom_id_helper.rb +21 -0
- data/lib/sproutcore/helpers/entry_sorter.rb +128 -0
- data/lib/sproutcore/helpers/html5_manifest.rb +88 -0
- data/lib/sproutcore/helpers/packed_optimizer.rb +102 -0
- data/lib/sproutcore/helpers/static_helper.rb +376 -0
- data/lib/sproutcore/helpers/tag_helper.rb +182 -0
- data/lib/sproutcore/helpers/text_helper.rb +303 -0
- data/lib/sproutcore/models.rb +8 -0
- data/lib/sproutcore/models/generator.rb +493 -0
- data/lib/sproutcore/models/hash_struct.rb +124 -0
- data/lib/sproutcore/models/manifest.rb +385 -0
- data/lib/sproutcore/models/manifest_entry.rb +355 -0
- data/lib/sproutcore/models/project.rb +267 -0
- data/lib/sproutcore/models/target.rb +758 -0
- data/lib/sproutcore/rack.rb +7 -0
- data/lib/sproutcore/rack/builder.rb +344 -0
- data/lib/sproutcore/rack/dev.rb +92 -0
- data/lib/sproutcore/rack/docs.rb +24 -0
- data/lib/sproutcore/rack/filesystem.rb +324 -0
- data/lib/sproutcore/rack/proxy.rb +149 -0
- data/lib/sproutcore/rack/service.rb +153 -0
- data/lib/sproutcore/rack/test_runner.rb +24 -0
- data/lib/sproutcore/render_engines/erubis.rb +55 -0
- data/lib/sproutcore/render_engines/haml.rb +39 -0
- data/lib/sproutcore/tools.rb +360 -0
- data/lib/sproutcore/tools/build.rb +106 -0
- data/lib/sproutcore/tools/build_number.rb +23 -0
- data/lib/sproutcore/tools/docs.rb +53 -0
- data/lib/sproutcore/tools/gen.rb +101 -0
- data/lib/sproutcore/tools/init.rb +40 -0
- data/lib/sproutcore/tools/manifest.rb +85 -0
- data/lib/sproutcore/tools/server.rb +48 -0
- data/lib/sproutcore/vendor/github_gem_lint.rb +22 -0
- data/lib/sproutcore/vendor/jsdoc/README.txt +151 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Chain.js +102 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Dumper.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Hash.js +47 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Link.js +142 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Namespace.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Opt.js +134 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Reflection.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/String.js +93 -0
- data/lib/sproutcore/vendor/jsdoc/app/frame/Testrun.js +129 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/FOODOC.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +159 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +292 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC.js +98 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/DocComment.js +200 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/DocTag.js +294 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +162 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +100 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Lang.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Parser.js +109 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Symbol.js +681 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +226 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TextStream.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Token.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +332 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +133 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Util.js +32 -0
- data/lib/sproutcore/vendor/jsdoc/app/lib/JSDOC/Walker.js +453 -0
- data/lib/sproutcore/vendor/jsdoc/app/main.js +74 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/commentSrcJson.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/frameworkPrototype.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/functionCall.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/publishSrcHilite.js +62 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/sproutcoreTags.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/symbolLink.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/tagParamConfig.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/app/plugins/tagSynonyms.js +43 -0
- data/lib/sproutcore/vendor/jsdoc/app/run.js +346 -0
- data/lib/sproutcore/vendor/jsdoc/app/t/TestDoc.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/app/t/runner.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test.js +304 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/addon.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/anon_inner.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/augments.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/augments2.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/borrows.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/borrows2.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/config.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/constructs.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/encoding.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/encoding_other.js +12 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/functions_anon.js +39 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/functions_nested.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/global.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/globals.js +25 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/ignore.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/inner.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/jsdoc_test.js +477 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/lend.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/memberof.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/memberof_constructor.js +15 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/name.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/namespace_nested.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/nocode.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/oblit_anon.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/overview.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/param_inline.js +37 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/params_optional.js +8 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype.js +17 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_nested.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_oblit.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/prototype_oblit_constructor.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/public.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shared.js +42 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shared2.js +2 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/shortcuts.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/static_this.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/synonyms.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/tosource.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/app/test/variable_redefine.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/changes.txt +47 -0
- data/lib/sproutcore/vendor/jsdoc/conf/sample.conf +31 -0
- data/lib/sproutcore/vendor/jsdoc/java/build.xml +36 -0
- data/lib/sproutcore/vendor/jsdoc/java/build_1.4.xml +36 -0
- data/lib/sproutcore/vendor/jsdoc/java/classes/js.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/java/src/JsDebugRun.java +21 -0
- data/lib/sproutcore/vendor/jsdoc/java/src/JsRun.java +21 -0
- data/lib/sproutcore/vendor/jsdoc/jsdebug.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/jsrun.jar +0 -0
- data/lib/sproutcore/vendor/jsdoc/t/TestDoc.js +144 -0
- data/lib/sproutcore/vendor/jsdoc/t/runner.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test.js +304 -0
- data/lib/sproutcore/vendor/jsdoc/test/addon.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/test/anon_inner.js +14 -0
- data/lib/sproutcore/vendor/jsdoc/test/augments.js +31 -0
- data/lib/sproutcore/vendor/jsdoc/test/augments2.js +26 -0
- data/lib/sproutcore/vendor/jsdoc/test/borrows.js +41 -0
- data/lib/sproutcore/vendor/jsdoc/test/borrows2.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/config.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/test/constructs.js +18 -0
- data/lib/sproutcore/vendor/jsdoc/test/encoding.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/encoding_other.js +12 -0
- data/lib/sproutcore/vendor/jsdoc/test/functions_anon.js +39 -0
- data/lib/sproutcore/vendor/jsdoc/test/functions_nested.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/test/global.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/globals.js +25 -0
- data/lib/sproutcore/vendor/jsdoc/test/ignore.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/inner.js +16 -0
- data/lib/sproutcore/vendor/jsdoc/test/jsdoc_test.js +477 -0
- data/lib/sproutcore/vendor/jsdoc/test/lend.js +33 -0
- data/lib/sproutcore/vendor/jsdoc/test/memberof.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/memberof_constructor.js +15 -0
- data/lib/sproutcore/vendor/jsdoc/test/name.js +19 -0
- data/lib/sproutcore/vendor/jsdoc/test/namespace_nested.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/nocode.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/oblit_anon.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/overview.js +20 -0
- data/lib/sproutcore/vendor/jsdoc/test/param_inline.js +37 -0
- data/lib/sproutcore/vendor/jsdoc/test/params_optional.js +8 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype.js +17 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_nested.js +9 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_oblit.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/prototype_oblit_constructor.js +24 -0
- data/lib/sproutcore/vendor/jsdoc/test/public.js +10 -0
- data/lib/sproutcore/vendor/jsdoc/test/shared.js +42 -0
- data/lib/sproutcore/vendor/jsdoc/test/shared2.js +2 -0
- data/lib/sproutcore/vendor/jsdoc/test/shortcuts.js +22 -0
- data/lib/sproutcore/vendor/jsdoc/test/static_this.js +13 -0
- data/lib/sproutcore/vendor/jsdoc/test/synonyms.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/tosource.js +23 -0
- data/lib/sproutcore/vendor/jsdoc/test/variable_redefine.js +14 -0
- data/lib/sproutcore/vendor/yui-compressor/SCyuicompressor-2.4.2.jar +0 -0
- data/lib/sproutcore/vendor/yui-compressor/yuicompressor-2.4.2.jar +0 -0
- data/lib/sproutcore/version.rb +11 -0
- data/spec/buildtasks/build/copy_spec.rb +60 -0
- data/spec/buildtasks/build/spec_helper.rb +36 -0
- data/spec/buildtasks/manifest/catalog_spec.rb +48 -0
- data/spec/buildtasks/manifest/hide_buildfiles_spec.rb +126 -0
- data/spec/buildtasks/manifest/localize_spec.rb +97 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/bundle_spec.rb +254 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/combine_spec.rb +254 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/css_spec.rb +87 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/html_spec.rb +175 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/javascript_spec.rb +65 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/minify_spec.rb +70 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/packed_spec.rb +152 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/sass_spec.rb +98 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/strings_spec.rb +64 -0
- data/spec/buildtasks/manifest/prepare_build_tasks/tests_spec.rb +163 -0
- data/spec/buildtasks/manifest/prepare_spec.rb +43 -0
- data/spec/buildtasks/manifest/spec_helper.rb +35 -0
- data/spec/buildtasks/target_spec.rb +270 -0
- data/spec/fixtures/builder_tests/Buildfile +20 -0
- data/spec/fixtures/builder_tests/apps/bundle_test/bundle.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/a.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/b.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/c.js +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/a.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/b.css +1 -0
- data/spec/fixtures/builder_tests/apps/combine_test/english.lproj/c.css +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/bar1_sample.rhtml +2 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/erb_sample.html.erb +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/icons/image.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/image.jpg +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/rhtml_sample.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/english.lproj/style.css +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/french-icons/fr.png +0 -0
- data/spec/fixtures/builder_tests/apps/html_test/french.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/apps/html_test/lib/layout_template.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/html_test/scripts.js +0 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_static.js +15 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/sc_super.js +4 -0
- data/spec/fixtures/builder_tests/apps/javascript_test/strings.js +7 -0
- data/spec/fixtures/builder_tests/apps/less_test/sample.less +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.sass +4 -0
- data/spec/fixtures/builder_tests/apps/sass_test/sample.scss +4 -0
- data/spec/fixtures/builder_tests/apps/strings_test/lproj/strings.js +8 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/build_directives.css +9 -0
- data/spec/fixtures/builder_tests/apps/stylesheet_test/sc_static.css +12 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/alt_layout.rhtml +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/lib/test_layout.rhtml +3 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/qunit_test2.js +1 -0
- data/spec/fixtures/builder_tests/apps/test_test/tests/rhtml_test.rhtml +4 -0
- data/spec/fixtures/builder_tests/frameworks/debug/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/debug/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/dynamic_req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/dynamic_req_target_1/english.lproj/dynamic_req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/core.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/qunit/english.lproj/dummy.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/req_style_1.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/strings.js +4 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_1/req_js_1.js +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/req_style_2.css +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/english.lproj/test.rhtml +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/javascript.js +1 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/lib/alt_layout.rhtml +0 -0
- data/spec/fixtures/builder_tests/frameworks/req_target_2/req_js_2.js +0 -0
- data/spec/fixtures/builder_tests/themes/sample_theme/Buildfile +1 -0
- data/spec/fixtures/buildfiles/basic/Buildfile +11 -0
- data/spec/fixtures/buildfiles/basic/task_module.rake +6 -0
- data/spec/fixtures/buildfiles/installed/Buildfile +5 -0
- data/spec/fixtures/buildfiles/installed/Buildfile2 +5 -0
- data/spec/fixtures/buildfiles/project_test/Buildfile +4 -0
- data/spec/fixtures/buildfiles/project_test/not_project/Buildfile +2 -0
- data/spec/fixtures/buildfiles/project_test/not_project/child/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/Buildfile +1 -0
- data/spec/fixtures/entry_for_project/apps/test_app/entry.txt +0 -0
- data/spec/fixtures/entry_for_project/apps/test_app/frameworks/nested/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/entry_for_project/frameworks/unrelated/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/Buildfile +8 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/bars/bar1/foos/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/Buildfile +5 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/custom_foodir/foo2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/custom_foos/foos/not_foo1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/custom/foos/foo1/bars/bar2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/nested/Buildfile +8 -0
- data/spec/fixtures/find_targets/nested/apps/app1/Buildfile +1 -0
- data/spec/fixtures/find_targets/nested/apps/app1/apps/nested_app/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/Apps/app1/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/clients/client1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework1/frameworks/framework1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/frameworks/framework2/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme1/PLACEHOLDER +0 -0
- data/spec/fixtures/find_targets/standard/themes/theme2/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/English.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/FreNCH.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/caps_long_names/UnknOWN.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/english.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/french.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/german.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/italian.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/japanese.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/spanish.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/long_names/unknown.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/no_names/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/de.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-CA.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-GB.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en-US.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/en.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/es.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/foo.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/fr.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/it.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/languages/apps/short_names/ja.lproj/PLACEHOLDER +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/1.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/B.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/a/b.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/b/a.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/c.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/core.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/B.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/a/b.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/b/a.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/c.css +0 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/english.lproj/strings.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/main.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/resources/main_page.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/t.js +1 -0
- data/spec/fixtures/ordered_entries/apps/no_requires/utils.js +1 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/a.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/b.js +3 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/c.js +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/a.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/b.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/c.css +2 -0
- data/spec/fixtures/ordered_entries/apps/with_requires/english.lproj/d.js +1 -0
- data/spec/fixtures/real_world/Buildfile +12 -0
- data/spec/fixtures/real_world/apps/account/README +1 -0
- data/spec/fixtures/real_world/apps/calendar/README +1 -0
- data/spec/fixtures/real_world/apps/contacts/README_BEFORE_EDITING +1 -0
- data/spec/fixtures/real_world/apps/files/README +1 -0
- data/spec/fixtures/real_world/apps/mail/README +1 -0
- data/spec/fixtures/real_world/apps/mobile_photos/README +1 -0
- data/spec/fixtures/real_world/apps/photos/README +1 -0
- data/spec/fixtures/real_world/apps/uploader/README +1 -0
- data/spec/fixtures/real_world/frameworks/core_files/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/core_photos/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/shared/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +26 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/README +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/apps/test_runner/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/debug-resource.html +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/debug/sample_debug.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/debug/sample_debug-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo2.sass +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo3.scss +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/demo4.less +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.haml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.html.erb +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/file_extension_test.rhtml +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/fixtures/sample_fixtures-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/has_require.css +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_require.css +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/no_sc_resource.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/protocols/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.css +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/sc_resource.rhtml +3 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/english.lproj/tests/sample-loc.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample-json-fixture.json +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/fixtures/sample_fixtures.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/application/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/costello/core.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/data_store/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/debug/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/desktop/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/empty_theme/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/foundation/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/mobile/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/qunit/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/frameworks/uploader/PLACEHOLDER +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/french-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/french.lproj/strings.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/german-resource.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/german.lproj/strings.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/has_require.js +4 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/lib/index.html +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/no_require.js +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/protocols/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/resources/boo.png +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/sc_resource.js +6 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample1.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/nested/sample2.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.js +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/tests/sample.rhtml +1 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/themes/standard_theme/README +0 -0
- data/spec/fixtures/real_world/frameworks/sproutcore/views/view.js +1 -0
- data/spec/fixtures/real_world/generators/sample_custom/Buildfile +0 -0
- data/spec/fixtures/real_world/generators/sample_custom/templates/{filename}.js +1 -0
- data/spec/fixtures/recursive_project/Buildfile +8 -0
- data/spec/fixtures/recursive_project/frameworks/sproutcore/frameworks/costello/PLACEHOLDER +0 -0
- data/spec/lib/builders/bundle_spec.rb +295 -0
- data/spec/lib/builders/combine_spec.rb +67 -0
- data/spec/lib/builders/html_spec.rb +580 -0
- data/spec/lib/builders/javascript_spec.rb +82 -0
- data/spec/lib/builders/less_spec.rb +51 -0
- data/spec/lib/builders/sass_spec.rb +72 -0
- data/spec/lib/builders/spec_helper.rb +30 -0
- data/spec/lib/builders/strings_spec.rb +55 -0
- data/spec/lib/builders/stylesheet_spec.rb +64 -0
- data/spec/lib/builders/test_index_spec.rb +45 -0
- data/spec/lib/builders/test_spec.rb +137 -0
- data/spec/lib/buildfile/config_for_spec.rb +81 -0
- data/spec/lib/buildfile/define_spec.rb +59 -0
- data/spec/lib/buildfile/dup_spec.rb +65 -0
- data/spec/lib/buildfile/invoke_spec.rb +135 -0
- data/spec/lib/buildfile/load_spec.rb +51 -0
- data/spec/lib/buildfile/task/dup_spec.rb +55 -0
- data/spec/lib/buildfile/task_defined_spec.rb +17 -0
- data/spec/lib/buildfile_commands/build_task_spec.rb +19 -0
- data/spec/lib/buildfile_commands/config_spec.rb +97 -0
- data/spec/lib/buildfile_commands/import_spec.rb +17 -0
- data/spec/lib/buildfile_commands/namespace_spec.rb +18 -0
- data/spec/lib/buildfile_commands/proxies_spec.rb +38 -0
- data/spec/lib/buildfile_commands/replace_task_spec.rb +29 -0
- data/spec/lib/buildfile_commands/task_spec.rb +36 -0
- data/spec/lib/helpers/packing_optimizer/optimize_spec.rb +26 -0
- data/spec/lib/models/hash_struct/deep_clone_spec.rb +27 -0
- data/spec/lib/models/hash_struct/has_options_spec.rb +32 -0
- data/spec/lib/models/hash_struct/hash_spec.rb +29 -0
- data/spec/lib/models/hash_struct/merge_spec.rb +19 -0
- data/spec/lib/models/hash_struct/method_missing.rb +41 -0
- data/spec/lib/models/manifest/add_entry_spec.rb +36 -0
- data/spec/lib/models/manifest/add_transform_spec.rb +93 -0
- data/spec/lib/models/manifest/build_spec.rb +78 -0
- data/spec/lib/models/manifest/entry_for_spec.rb +94 -0
- data/spec/lib/models/manifest/find_entry.rb +109 -0
- data/spec/lib/models/manifest/prepare_spec.rb +62 -0
- data/spec/lib/models/manifest_entry/cacheable_url_spec.rb +31 -0
- data/spec/lib/models/manifest_entry/hyperdomain_prefix.rb +34 -0
- data/spec/lib/models/manifest_entry/prepare_spec.rb +54 -0
- data/spec/lib/models/project/add_target_spec.rb +44 -0
- data/spec/lib/models/project/buildfile_spec.rb +35 -0
- data/spec/lib/models/project/find_targets_for_spec.rb +78 -0
- data/spec/lib/models/project/load_nearest_project_spec.rb +23 -0
- data/spec/lib/models/project/target_for_spec.rb +33 -0
- data/spec/lib/models/project/targets_spec.rb +62 -0
- data/spec/lib/models/target/compute_build_number_spec.rb +126 -0
- data/spec/lib/models/target/config_spec.rb +30 -0
- data/spec/lib/models/target/expand_required_targets_spec.rb +48 -0
- data/spec/lib/models/target/installed_languages_spec.rb +47 -0
- data/spec/lib/models/target/lproj_for_spec.rb +38 -0
- data/spec/lib/models/target/manifest_for_spec.rb +42 -0
- data/spec/lib/models/target/parent_target_spec.rb +21 -0
- data/spec/lib/models/target/prepare_spec.rb +53 -0
- data/spec/lib/models/target/required_targets_spec.rb +129 -0
- data/spec/lib/models/target/target_for_spec.rb +56 -0
- data/spec/lib/tools/build_number_spec.rb +35 -0
- data/spec/lib/tools/gen_spec.rb +209 -0
- data/spec/lib/tools/tools_spec.rb +96 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +138 -0
- data/sproutcore.gemspec +51 -0
- metadata +1897 -0
@@ -0,0 +1,184 @@
|
|
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
|
+
/*globals module ok equals same test MyApp */
|
7
|
+
|
8
|
+
|
9
|
+
var store, storeKey1, storeKey2, storeKey3, storeKey4, storeKey5, storeKey6;
|
10
|
+
var storeKey7, storeKey8, json, json1, json2, json3, json4, json5, json6 ;
|
11
|
+
var json7, json8;
|
12
|
+
|
13
|
+
module("SC.Store#retrieveRecord", {
|
14
|
+
setup: function() {
|
15
|
+
|
16
|
+
store = SC.Store.create();
|
17
|
+
|
18
|
+
json1 = {
|
19
|
+
guid: "retrieveGUID1",
|
20
|
+
string: "string",
|
21
|
+
number: 23,
|
22
|
+
bool: YES
|
23
|
+
};
|
24
|
+
json2 = {
|
25
|
+
guid: "retrieveGUID2",
|
26
|
+
string: "string",
|
27
|
+
number: 23,
|
28
|
+
bool: YES
|
29
|
+
};
|
30
|
+
json3 = {
|
31
|
+
guid: "retrieveGUID3",
|
32
|
+
string: "string",
|
33
|
+
number: 23,
|
34
|
+
bool: YES
|
35
|
+
};
|
36
|
+
json4 = {
|
37
|
+
guid: "retrieveGUID4",
|
38
|
+
string: "string",
|
39
|
+
number: 23,
|
40
|
+
bool: YES
|
41
|
+
};
|
42
|
+
json5 = {
|
43
|
+
guid: "retrieveGUID5",
|
44
|
+
string: "string",
|
45
|
+
number: 23,
|
46
|
+
bool: YES
|
47
|
+
};
|
48
|
+
json6 = {
|
49
|
+
guid: "retrieveGUID6",
|
50
|
+
string: "string",
|
51
|
+
number: 23,
|
52
|
+
bool: YES
|
53
|
+
};
|
54
|
+
json7 = {
|
55
|
+
guid: "retrieveGUID7",
|
56
|
+
string: "string",
|
57
|
+
number: 23,
|
58
|
+
bool: YES
|
59
|
+
};
|
60
|
+
json8 = {
|
61
|
+
guid: "retrieveGUID8",
|
62
|
+
string: "string",
|
63
|
+
number: 23,
|
64
|
+
bool: YES
|
65
|
+
};
|
66
|
+
|
67
|
+
storeKey1 = SC.Store.generateStoreKey();
|
68
|
+
store.writeDataHash(storeKey1, json1, SC.Record.EMPTY);
|
69
|
+
storeKey2 = SC.Store.generateStoreKey();
|
70
|
+
store.writeDataHash(storeKey2, json2, SC.Record.ERROR);
|
71
|
+
storeKey3 = SC.Store.generateStoreKey();
|
72
|
+
store.writeDataHash(storeKey3, json3, SC.Record.DESTROYED_CLEAN);
|
73
|
+
storeKey4 = SC.Store.generateStoreKey();
|
74
|
+
store.writeDataHash(storeKey4, json4, SC.Record.BUSY_DESTROYING);
|
75
|
+
storeKey5 = SC.Store.generateStoreKey();
|
76
|
+
store.writeDataHash(storeKey5, json5, SC.Record.BUSY_CREATING);
|
77
|
+
storeKey6 = SC.Store.generateStoreKey();
|
78
|
+
store.writeDataHash(storeKey6, json6, SC.Record.BUSY_COMMITTING);
|
79
|
+
storeKey7 = SC.Store.generateStoreKey();
|
80
|
+
store.writeDataHash(storeKey7, json7, SC.Record.DESTROYED_DIRTY);
|
81
|
+
storeKey8 = SC.Store.generateStoreKey();
|
82
|
+
store.writeDataHash(storeKey8, json8, SC.Record.READY_CLEAN);
|
83
|
+
}
|
84
|
+
});
|
85
|
+
|
86
|
+
function testStates(canLoad) {
|
87
|
+
var msg, status;
|
88
|
+
|
89
|
+
SC.RunLoop.begin();
|
90
|
+
|
91
|
+
store.retrieveRecord(undefined, undefined, storeKey1, YES);
|
92
|
+
status = store.readStatus( storeKey1);
|
93
|
+
if (canLoad) {
|
94
|
+
equals(status, SC.Record.BUSY_LOADING, "the status should have changed to BUSY_LOADING");
|
95
|
+
} else {
|
96
|
+
equals(status, SC.Record.ERROR, "the status should remain empty");
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
store.retrieveRecord(undefined, undefined, storeKey2, YES);
|
101
|
+
status = store.readStatus( storeKey2);
|
102
|
+
if (canLoad) {
|
103
|
+
equals(status, SC.Record.BUSY_LOADING, "the status should have changed to BUSY_LOADING");
|
104
|
+
} else {
|
105
|
+
equals(status, SC.Record.ERROR, "the status should become empty");
|
106
|
+
}
|
107
|
+
|
108
|
+
store.retrieveRecord(undefined, undefined, storeKey3, YES);
|
109
|
+
status = store.readStatus( storeKey3);
|
110
|
+
if (canLoad) {
|
111
|
+
equals(status, SC.Record.BUSY_LOADING, "the status should have changed to BUSY_LOADING");
|
112
|
+
} else {
|
113
|
+
equals(status, SC.Record.ERROR, "the status should become empty");
|
114
|
+
}
|
115
|
+
|
116
|
+
try{
|
117
|
+
store.retrieveRecord(undefined, undefined, storeKey4, YES);
|
118
|
+
msg='';
|
119
|
+
}catch(error1){
|
120
|
+
msg=error1.message;
|
121
|
+
}
|
122
|
+
equals(msg, SC.Record.BUSY_ERROR.message, "should throw error");
|
123
|
+
|
124
|
+
try{
|
125
|
+
store.retrieveRecord(undefined, undefined, storeKey5, YES);
|
126
|
+
msg='';
|
127
|
+
}catch(error2){
|
128
|
+
msg=error2.message;
|
129
|
+
}
|
130
|
+
equals(msg, SC.Record.BUSY_ERROR.message, "should throw error");
|
131
|
+
|
132
|
+
try{
|
133
|
+
store.retrieveRecord(undefined, undefined, storeKey6, YES);
|
134
|
+
msg='';
|
135
|
+
}catch(error3){
|
136
|
+
msg=error3.message;
|
137
|
+
}
|
138
|
+
equals(msg, SC.Record.BUSY_ERROR.message, "should throw error");
|
139
|
+
|
140
|
+
try{
|
141
|
+
store.retrieveRecord(undefined, undefined, storeKey7, YES);
|
142
|
+
msg='';
|
143
|
+
}catch(error4){
|
144
|
+
msg=error4.message;
|
145
|
+
}
|
146
|
+
equals(msg, SC.Record.BAD_STATE_ERROR.message, "should throw error");
|
147
|
+
|
148
|
+
|
149
|
+
store.retrieveRecord(undefined, undefined, storeKey8, YES);
|
150
|
+
status = store.readStatus( storeKey8);
|
151
|
+
if (canLoad) {
|
152
|
+
ok(SC.Record.BUSY_REFRESH | (status & 0x03), "the status changed to BUSY_REFRESH.");
|
153
|
+
} else {
|
154
|
+
equals(status, SC.Record.READY_CLEAN, "the status should remain ready clean");
|
155
|
+
}
|
156
|
+
|
157
|
+
SC.RunLoop.end();
|
158
|
+
}
|
159
|
+
|
160
|
+
test("Retrieve a record without a data source", function() {
|
161
|
+
testStates(NO);
|
162
|
+
});
|
163
|
+
|
164
|
+
test("Retrieve a record without a working data source and check for different errors and states", function() {
|
165
|
+
// build a fake data source that claims to NOT handle retrieval
|
166
|
+
var source = SC.DataSource.create({
|
167
|
+
retrieveRecords: function() { return NO ; }
|
168
|
+
});
|
169
|
+
store.set('dataSource', source);
|
170
|
+
|
171
|
+
testStates(NO);
|
172
|
+
|
173
|
+
});
|
174
|
+
|
175
|
+
test("Retrieve a record with working data source and check for different errors and states", function() {
|
176
|
+
// build a fake data source that claims to handle retrieval
|
177
|
+
var source = SC.DataSource.create({
|
178
|
+
retrieveRecords: function() { return YES ; }
|
179
|
+
});
|
180
|
+
store.set('dataSource', source);
|
181
|
+
|
182
|
+
testStates(YES);
|
183
|
+
|
184
|
+
});
|
@@ -0,0 +1,125 @@
|
|
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
|
+
/*globals module ok equals same test MyApp */
|
7
|
+
|
8
|
+
// NOTE: The test below are based on the Data Hashes state chart. This models
|
9
|
+
// the "write" event in the NestedStore portion of the diagram.
|
10
|
+
|
11
|
+
var store, child, storeKey, json;
|
12
|
+
module("SC.Store#writeDataHash", {
|
13
|
+
setup: function() {
|
14
|
+
store = SC.Store.create();
|
15
|
+
|
16
|
+
json = {
|
17
|
+
string: "string",
|
18
|
+
number: 23,
|
19
|
+
bool: YES
|
20
|
+
};
|
21
|
+
|
22
|
+
storeKey = SC.Store.generateStoreKey();
|
23
|
+
child = store.chain(); // test multiple levels deep
|
24
|
+
}
|
25
|
+
});
|
26
|
+
|
27
|
+
// ..........................................................
|
28
|
+
// BASIC STATE TRANSITIONS
|
29
|
+
//
|
30
|
+
|
31
|
+
// The transition from each base state performs the same operation, so just
|
32
|
+
// run the same test on each state.
|
33
|
+
function testWriteDataHash() {
|
34
|
+
var oldrev = store.revisions[storeKey];
|
35
|
+
|
36
|
+
// perform test
|
37
|
+
var json2 = { foo: "bar" };
|
38
|
+
equals(store.writeDataHash(storeKey, json2, SC.Record.READY_NEW), store, 'should return receiver');
|
39
|
+
|
40
|
+
// verify
|
41
|
+
equals(store.storeKeyEditState(storeKey), SC.Store.EDITABLE, 'new edit state should be editable');
|
42
|
+
|
43
|
+
equals(store.readDataHash(storeKey), json2, 'should have new json data hash');
|
44
|
+
equals(store.readStatus(storeKey), SC.Record.READY_NEW, 'should have new status');
|
45
|
+
|
46
|
+
equals(store.revisions[storeKey], oldrev, 'should not change revision');
|
47
|
+
if (!SC.none(oldrev)) {
|
48
|
+
ok(store.revisions.hasOwnProperty(storeKey), 'should clone reference to revision');
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
test("edit state=LOCKED - also writes a NEW hash", function() {
|
54
|
+
|
55
|
+
// test preconditions
|
56
|
+
equals(store.storeKeyEditState(storeKey), SC.Store.LOCKED, 'precond - edit state should be locked');
|
57
|
+
|
58
|
+
testWriteDataHash();
|
59
|
+
});
|
60
|
+
|
61
|
+
test("edit state=EDITABLE - also overwrites an EXISTING hash", function() {
|
62
|
+
|
63
|
+
// test preconditions
|
64
|
+
store.writeDataHash(storeKey, { foo: "bar" });
|
65
|
+
equals(store.storeKeyEditState(storeKey), SC.Store.EDITABLE, 'precond - edit state should be editable');
|
66
|
+
|
67
|
+
testWriteDataHash();
|
68
|
+
|
69
|
+
});
|
70
|
+
|
71
|
+
// ..........................................................
|
72
|
+
// PROPOGATING TO NESTED STORES
|
73
|
+
//
|
74
|
+
|
75
|
+
test("change should propogate to child if child edit state = INHERITED", function() {
|
76
|
+
|
77
|
+
// verify preconditions
|
78
|
+
equals(child.storeKeyEditState(storeKey), SC.Store.INHERITED, 'precond - child edit state should be INHERITED');
|
79
|
+
|
80
|
+
// perform change
|
81
|
+
var json2 = { version: 2 };
|
82
|
+
store.writeDataHash(storeKey, json2, SC.Record.READY_NEW);
|
83
|
+
|
84
|
+
// verify
|
85
|
+
same(child.readDataHash(storeKey), json2, 'child should pick up change');
|
86
|
+
equals(child.readStatus(storeKey), SC.Record.READY_NEW, 'child should pick up new status');
|
87
|
+
});
|
88
|
+
|
89
|
+
|
90
|
+
function testLockedOrEditableChild() {
|
91
|
+
// perform change
|
92
|
+
var json2 = { version: 2 };
|
93
|
+
store.writeDataHash(storeKey, json2, SC.Record.READY_NEW);
|
94
|
+
|
95
|
+
// verify
|
96
|
+
same(child.readDataHash(storeKey), json, 'child should NOT pick up change');
|
97
|
+
equals(child.readStatus(storeKey), SC.Record.READY_CLEAN, 'child should pick up new status');
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
test("change should not propogate to child if child edit state = LOCKED", function() {
|
102
|
+
store.writeDataHash(storeKey, json, SC.Record.READY_CLEAN);
|
103
|
+
store.editables = null ; // clear to simulate locked mode.
|
104
|
+
|
105
|
+
// verify preconditions
|
106
|
+
child.readDataHash(storeKey);
|
107
|
+
equals(child.storeKeyEditState(storeKey), SC.Store.LOCKED, 'precond - child edit state should be LOCKED');
|
108
|
+
|
109
|
+
testLockedOrEditableChild();
|
110
|
+
});
|
111
|
+
|
112
|
+
test("change should not propogate to child if child edit state = EDITABLE", function() {
|
113
|
+
store.writeDataHash(storeKey, json, SC.Record.READY_CLEAN);
|
114
|
+
store.editables = null ; // clear to simulate locked mode.
|
115
|
+
|
116
|
+
// verify preconditions
|
117
|
+
child.readEditableDataHash(storeKey);
|
118
|
+
equals(child.storeKeyEditState(storeKey), SC.Store.EDITABLE, 'precond - child edit state should be EDITABLE');
|
119
|
+
|
120
|
+
testLockedOrEditableChild();
|
121
|
+
});
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
@@ -0,0 +1,865 @@
|
|
1
|
+
/**
|
2
|
+
* @version: 1.0 Alpha-1
|
3
|
+
* @author: Coolite Inc. http://www.coolite.com/
|
4
|
+
* @date: 2008-04-13
|
5
|
+
* @copyright: Copyright (c) 2006-2008, Coolite Inc. (http://www.coolite.com/). All rights reserved.
|
6
|
+
* @license: Licensed under The MIT License. See license.txt and http://www.datejs.com/license/.
|
7
|
+
* @website: http://www.datejs.com/
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function () {
|
11
|
+
var $D = Date,
|
12
|
+
$P = $D.prototype,
|
13
|
+
$C = $D.CultureInfo,
|
14
|
+
p = function (s, l) {
|
15
|
+
if (!l) {
|
16
|
+
l = 2;
|
17
|
+
}
|
18
|
+
return ("000" + s).slice(l * -1);
|
19
|
+
};
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Resets the time of this Date object to 12:00 AM (00:00), which is the start of the day.
|
23
|
+
* @param {Boolean} .clone() this date instance before clearing Time
|
24
|
+
* @return {Date} this
|
25
|
+
*/
|
26
|
+
$P.clearTime = function () {
|
27
|
+
this.setHours(0);
|
28
|
+
this.setMinutes(0);
|
29
|
+
this.setSeconds(0);
|
30
|
+
this.setMilliseconds(0);
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
|
34
|
+
/**
|
35
|
+
* Resets the time of this Date object to the current time ('now').
|
36
|
+
* @return {Date} this
|
37
|
+
*/
|
38
|
+
$P.setTimeToNow = function () {
|
39
|
+
var n = new Date();
|
40
|
+
this.setHours(n.getHours());
|
41
|
+
this.setMinutes(n.getMinutes());
|
42
|
+
this.setSeconds(n.getSeconds());
|
43
|
+
this.setMilliseconds(n.getMilliseconds());
|
44
|
+
return this;
|
45
|
+
};
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Gets a date that is set to the current date. The time is set to the start of the day (00:00 or 12:00 AM).
|
49
|
+
* @return {Date} The current date.
|
50
|
+
*/
|
51
|
+
$D.today = function () {
|
52
|
+
return new Date().clearTime();
|
53
|
+
};
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Compares the first date to the second date and returns an number indication of their relative values.
|
57
|
+
* @param {Date} First Date object to compare [Required].
|
58
|
+
* @param {Date} Second Date object to compare to [Required].
|
59
|
+
* @return {Number} -1 = date1 is lessthan date2. 0 = values are equal. 1 = date1 is greaterthan date2.
|
60
|
+
*/
|
61
|
+
$D.compare = function (date1, date2) {
|
62
|
+
if (isNaN(date1) || isNaN(date2)) {
|
63
|
+
throw new Error(date1 + " - " + date2);
|
64
|
+
} else if (date1 instanceof Date && date2 instanceof Date) {
|
65
|
+
return (date1 < date2) ? -1 : (date1 > date2) ? 1 : 0;
|
66
|
+
} else {
|
67
|
+
throw new TypeError(date1 + " - " + date2);
|
68
|
+
}
|
69
|
+
};
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Compares the first Date object to the second Date object and returns true if they are equal.
|
73
|
+
* @param {Date} First Date object to compare [Required]
|
74
|
+
* @param {Date} Second Date object to compare to [Required]
|
75
|
+
* @return {Boolean} true if dates are equal. false if they are not equal.
|
76
|
+
*/
|
77
|
+
$D.equals = function (date1, date2) {
|
78
|
+
return (date1.compareTo(date2) === 0);
|
79
|
+
};
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Gets the day number (0-6) if given a CultureInfo specific string which is a valid dayName, abbreviatedDayName or shortestDayName (two char).
|
83
|
+
* @param {String} The name of the day (eg. "Monday, "Mon", "tuesday", "tue", "We", "we").
|
84
|
+
* @return {Number} The day number
|
85
|
+
*/
|
86
|
+
$D.getDayNumberFromName = function (name) {
|
87
|
+
var n = $C.dayNames, m = $C.abbreviatedDayNames, o = $C.shortestDayNames, s = name.toLowerCase();
|
88
|
+
for (var i = 0; i < n.length; i++) {
|
89
|
+
if (n[i].toLowerCase() == s || m[i].toLowerCase() == s || o[i].toLowerCase() == s) {
|
90
|
+
return i;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
return -1;
|
94
|
+
};
|
95
|
+
|
96
|
+
/**
|
97
|
+
* Gets the month number (0-11) if given a Culture Info specific string which is a valid monthName or abbreviatedMonthName.
|
98
|
+
* @param {String} The name of the month (eg. "February, "Feb", "october", "oct").
|
99
|
+
* @return {Number} The day number
|
100
|
+
*/
|
101
|
+
$D.getMonthNumberFromName = function (name) {
|
102
|
+
var n = $C.monthNames, m = $C.abbreviatedMonthNames, s = name.toLowerCase();
|
103
|
+
for (var i = 0; i < n.length; i++) {
|
104
|
+
if (n[i].toLowerCase() == s || m[i].toLowerCase() == s) {
|
105
|
+
return i;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
return -1;
|
109
|
+
};
|
110
|
+
|
111
|
+
/**
|
112
|
+
* Determines if the current date instance is within a LeapYear.
|
113
|
+
* @param {Number} The year.
|
114
|
+
* @return {Boolean} true if date is within a LeapYear, otherwise false.
|
115
|
+
*/
|
116
|
+
$D.isLeapYear = function (year) {
|
117
|
+
return ((year % 4 === 0 && year % 100 !== 0) || year % 400 === 0);
|
118
|
+
};
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Gets the number of days in the month, given a year and month value. Automatically corrects for LeapYear.
|
122
|
+
* @param {Number} The year.
|
123
|
+
* @param {Number} The month (0-11).
|
124
|
+
* @return {Number} The number of days in the month.
|
125
|
+
*/
|
126
|
+
$D.getDaysInMonth = function (year, month) {
|
127
|
+
return [31, ($D.isLeapYear(year) ? 29 : 28), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
|
128
|
+
};
|
129
|
+
|
130
|
+
$D.getTimezoneAbbreviation = function (offset) {
|
131
|
+
var z = $C.timezones, p;
|
132
|
+
for (var i = 0; i < z.length; i++) {
|
133
|
+
if (z[i].offset === offset) {
|
134
|
+
return z[i].name;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
return null;
|
138
|
+
};
|
139
|
+
|
140
|
+
$D.getTimezoneOffset = function (name) {
|
141
|
+
var z = $C.timezones, p;
|
142
|
+
for (var i = 0; i < z.length; i++) {
|
143
|
+
if (z[i].name === name.toUpperCase()) {
|
144
|
+
return z[i].offset;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
return null;
|
148
|
+
};
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Returns a new Date object that is an exact date and time copy of the original instance.
|
152
|
+
* @return {Date} A new Date instance
|
153
|
+
*/
|
154
|
+
$P.clone = function () {
|
155
|
+
return new Date(this.getTime());
|
156
|
+
};
|
157
|
+
|
158
|
+
/**
|
159
|
+
* Compares this instance to a Date object and returns an number indication of their relative values.
|
160
|
+
* @param {Date} Date object to compare [Required]
|
161
|
+
* @return {Number} -1 = this is lessthan date. 0 = values are equal. 1 = this is greaterthan date.
|
162
|
+
*/
|
163
|
+
$P.compareTo = function (date) {
|
164
|
+
return Date.compare(this, date);
|
165
|
+
};
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Compares this instance to another Date object and returns true if they are equal.
|
169
|
+
* @param {Date} Date object to compare. If no date to compare, new Date() [now] is used.
|
170
|
+
* @return {Boolean} true if dates are equal. false if they are not equal.
|
171
|
+
*/
|
172
|
+
$P.equals = function (date) {
|
173
|
+
return Date.equals(this, date || new Date());
|
174
|
+
};
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Determines if this instance is between a range of two dates or equal to either the start or end dates.
|
178
|
+
* @param {Date} Start of range [Required]
|
179
|
+
* @param {Date} End of range [Required]
|
180
|
+
* @return {Boolean} true is this is between or equal to the start and end dates, else false
|
181
|
+
*/
|
182
|
+
$P.between = function (start, end) {
|
183
|
+
return this.getTime() >= start.getTime() && this.getTime() <= end.getTime();
|
184
|
+
};
|
185
|
+
|
186
|
+
/**
|
187
|
+
* Determines if this date occurs after the date to compare to.
|
188
|
+
* @param {Date} Date object to compare. If no date to compare, new Date() ("now") is used.
|
189
|
+
* @return {Boolean} true if this date instance is greater than the date to compare to (or "now"), otherwise false.
|
190
|
+
*/
|
191
|
+
$P.isAfter = function (date) {
|
192
|
+
return this.compareTo(date || new Date()) === 1;
|
193
|
+
};
|
194
|
+
|
195
|
+
/**
|
196
|
+
* Determines if this date occurs before the date to compare to.
|
197
|
+
* @param {Date} Date object to compare. If no date to compare, new Date() ("now") is used.
|
198
|
+
* @return {Boolean} true if this date instance is less than the date to compare to (or "now").
|
199
|
+
*/
|
200
|
+
$P.isBefore = function (date) {
|
201
|
+
return (this.compareTo(date || new Date()) === -1);
|
202
|
+
};
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Determines if the current Date instance occurs today.
|
206
|
+
* @return {Boolean} true if this date instance is 'today', otherwise false.
|
207
|
+
*/
|
208
|
+
|
209
|
+
/**
|
210
|
+
* Determines if the current Date instance occurs on the same Date as the supplied 'date'.
|
211
|
+
* If no 'date' to compare to is provided, the current Date instance is compared to 'today'.
|
212
|
+
* @param {date} Date object to compare. If no date to compare, the current Date ("now") is used.
|
213
|
+
* @return {Boolean} true if this Date instance occurs on the same Day as the supplied 'date'.
|
214
|
+
*/
|
215
|
+
$P.isToday = $P.isSameDay = function (date) {
|
216
|
+
return this.clone().clearTime().equals((date || new Date()).clone().clearTime());
|
217
|
+
};
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Adds the specified number of milliseconds to this instance.
|
221
|
+
* @param {Number} The number of milliseconds to add. The number can be positive or negative [Required]
|
222
|
+
* @return {Date} this
|
223
|
+
*/
|
224
|
+
$P.addMilliseconds = function (value) {
|
225
|
+
this.setMilliseconds(this.getMilliseconds() + value * 1);
|
226
|
+
return this;
|
227
|
+
};
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Adds the specified number of seconds to this instance.
|
231
|
+
* @param {Number} The number of seconds to add. The number can be positive or negative [Required]
|
232
|
+
* @return {Date} this
|
233
|
+
*/
|
234
|
+
$P.addSeconds = function (value) {
|
235
|
+
return this.addMilliseconds(value * 1000);
|
236
|
+
};
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Adds the specified number of seconds to this instance.
|
240
|
+
* @param {Number} The number of seconds to add. The number can be positive or negative [Required]
|
241
|
+
* @return {Date} this
|
242
|
+
*/
|
243
|
+
$P.addMinutes = function (value) {
|
244
|
+
return this.addMilliseconds(value * 60000); /* 60*1000 */
|
245
|
+
};
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Adds the specified number of hours to this instance.
|
249
|
+
* @param {Number} The number of hours to add. The number can be positive or negative [Required]
|
250
|
+
* @return {Date} this
|
251
|
+
*/
|
252
|
+
$P.addHours = function (value) {
|
253
|
+
return this.addMilliseconds(value * 3600000); /* 60*60*1000 */
|
254
|
+
};
|
255
|
+
|
256
|
+
/**
|
257
|
+
* Adds the specified number of days to this instance.
|
258
|
+
* @param {Number} The number of days to add. The number can be positive or negative [Required]
|
259
|
+
* @return {Date} this
|
260
|
+
*/
|
261
|
+
$P.addDays = function (value) {
|
262
|
+
this.setDate(this.getDate() + value * 1);
|
263
|
+
return this;
|
264
|
+
};
|
265
|
+
|
266
|
+
/**
|
267
|
+
* Adds the specified number of weeks to this instance.
|
268
|
+
* @param {Number} The number of weeks to add. The number can be positive or negative [Required]
|
269
|
+
* @return {Date} this
|
270
|
+
*/
|
271
|
+
$P.addWeeks = function (value) {
|
272
|
+
return this.addDays(value * 7);
|
273
|
+
};
|
274
|
+
|
275
|
+
/**
|
276
|
+
* Adds the specified number of months to this instance.
|
277
|
+
* @param {Number} The number of months to add. The number can be positive or negative [Required]
|
278
|
+
* @return {Date} this
|
279
|
+
*/
|
280
|
+
$P.addMonths = function (value) {
|
281
|
+
var n = this.getDate();
|
282
|
+
this.setDate(1);
|
283
|
+
this.setMonth(this.getMonth() + value * 1);
|
284
|
+
this.setDate(Math.min(n, $D.getDaysInMonth(this.getFullYear(), this.getMonth())));
|
285
|
+
return this;
|
286
|
+
};
|
287
|
+
|
288
|
+
/**
|
289
|
+
* Adds the specified number of years to this instance.
|
290
|
+
* @param {Number} The number of years to add. The number can be positive or negative [Required]
|
291
|
+
* @return {Date} this
|
292
|
+
*/
|
293
|
+
$P.addYears = function (value) {
|
294
|
+
return this.addMonths(value * 12);
|
295
|
+
};
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Adds (or subtracts) to the value of the years, months, weeks, days, hours, minutes, seconds, milliseconds of the date instance using given configuration object. Positive and Negative values allowed.
|
299
|
+
* Example
|
300
|
+
<pre><code>
|
301
|
+
Date.today().add( { days: 1, months: 1 } )
|
302
|
+
|
303
|
+
new Date().add( { years: -1 } )
|
304
|
+
</code></pre>
|
305
|
+
* @param {Object} Configuration object containing attributes (months, days, etc.)
|
306
|
+
* @return {Date} this
|
307
|
+
*/
|
308
|
+
$P.add = function (config) {
|
309
|
+
if (typeof config == "number") {
|
310
|
+
this._orient = config;
|
311
|
+
return this;
|
312
|
+
}
|
313
|
+
|
314
|
+
var x = config;
|
315
|
+
|
316
|
+
if (x.milliseconds) {
|
317
|
+
this.addMilliseconds(x.milliseconds);
|
318
|
+
}
|
319
|
+
if (x.seconds) {
|
320
|
+
this.addSeconds(x.seconds);
|
321
|
+
}
|
322
|
+
if (x.minutes) {
|
323
|
+
this.addMinutes(x.minutes);
|
324
|
+
}
|
325
|
+
if (x.hours) {
|
326
|
+
this.addHours(x.hours);
|
327
|
+
}
|
328
|
+
if (x.weeks) {
|
329
|
+
this.addWeeks(x.weeks);
|
330
|
+
}
|
331
|
+
if (x.months) {
|
332
|
+
this.addMonths(x.months);
|
333
|
+
}
|
334
|
+
if (x.years) {
|
335
|
+
this.addYears(x.years);
|
336
|
+
}
|
337
|
+
if (x.days) {
|
338
|
+
this.addDays(x.days);
|
339
|
+
}
|
340
|
+
return this;
|
341
|
+
};
|
342
|
+
|
343
|
+
var $y, $m, $d;
|
344
|
+
|
345
|
+
/**
|
346
|
+
* Get the week number. Week one (1) is the week which contains the first Thursday of the year. Monday is considered the first day of the week.
|
347
|
+
* This algorithm is a JavaScript port of the work presented by Claus Tøndering at http://www.tondering.dk/claus/cal/node8.html#SECTION00880000000000000000
|
348
|
+
* .getWeek() Algorithm Copyright (c) 2008 Claus Tondering.
|
349
|
+
* The .getWeek() function does NOT convert the date to UTC. The local datetime is used. Please use .getISOWeek() to get the week of the UTC converted date.
|
350
|
+
* @return {Number} 1 to 53
|
351
|
+
*/
|
352
|
+
$P.getWeek = function () {
|
353
|
+
var a, b, c, d, e, f, g, n, s, w;
|
354
|
+
|
355
|
+
$y = (!$y) ? this.getFullYear() : $y;
|
356
|
+
$m = (!$m) ? this.getMonth() + 1 : $m;
|
357
|
+
$d = (!$d) ? this.getDate() : $d;
|
358
|
+
|
359
|
+
if ($m <= 2) {
|
360
|
+
a = $y - 1;
|
361
|
+
b = (a / 4 | 0) - (a / 100 | 0) + (a / 400 | 0);
|
362
|
+
c = ((a - 1) / 4 | 0) - ((a - 1) / 100 | 0) + ((a - 1) / 400 | 0);
|
363
|
+
s = b - c;
|
364
|
+
e = 0;
|
365
|
+
f = $d - 1 + (31 * ($m - 1));
|
366
|
+
} else {
|
367
|
+
a = $y;
|
368
|
+
b = (a / 4 | 0) - (a / 100 | 0) + (a / 400 | 0);
|
369
|
+
c = ((a - 1) / 4 | 0) - ((a - 1) / 100 | 0) + ((a - 1) / 400 | 0);
|
370
|
+
s = b - c;
|
371
|
+
e = s + 1;
|
372
|
+
f = $d + ((153 * ($m - 3) + 2) / 5) + 58 + s;
|
373
|
+
}
|
374
|
+
|
375
|
+
g = (a + b) % 7;
|
376
|
+
d = (f + g - e) % 7;
|
377
|
+
n = (f + 3 - d) | 0;
|
378
|
+
|
379
|
+
if (n < 0) {
|
380
|
+
w = 53 - ((g - s) / 5 | 0);
|
381
|
+
} else if (n > 364 + s) {
|
382
|
+
w = 1;
|
383
|
+
} else {
|
384
|
+
w = (n / 7 | 0) + 1;
|
385
|
+
}
|
386
|
+
|
387
|
+
$y = $m = $d = null;
|
388
|
+
|
389
|
+
return w;
|
390
|
+
};
|
391
|
+
|
392
|
+
/**
|
393
|
+
* Get the ISO 8601 week number. Week one ("01") is the week which contains the first Thursday of the year. Monday is considered the first day of the week.
|
394
|
+
* The .getISOWeek() function does convert the date to it's UTC value. Please use .getWeek() to get the week of the local date.
|
395
|
+
* @return {String} "01" to "53"
|
396
|
+
*/
|
397
|
+
$P.getISOWeek = function () {
|
398
|
+
$y = this.getUTCFullYear();
|
399
|
+
$m = this.getUTCMonth() + 1;
|
400
|
+
$d = this.getUTCDate();
|
401
|
+
return p(this.getWeek());
|
402
|
+
};
|
403
|
+
|
404
|
+
/**
|
405
|
+
* Moves the date to Monday of the week set. Week one (1) is the week which contains the first Thursday of the year.
|
406
|
+
* @param {Number} A Number (1 to 53) that represents the week of the year.
|
407
|
+
* @return {Date} this
|
408
|
+
*/
|
409
|
+
$P.setWeek = function (n) {
|
410
|
+
return this.moveToDayOfWeek(1).addWeeks(n - this.getWeek());
|
411
|
+
};
|
412
|
+
|
413
|
+
// private
|
414
|
+
var validate = function (n, min, max, name) {
|
415
|
+
if (typeof n == "undefined") {
|
416
|
+
return false;
|
417
|
+
} else if (typeof n != "number") {
|
418
|
+
throw new TypeError(n + " is not a Number.");
|
419
|
+
} else if (n < min || n > max) {
|
420
|
+
throw new RangeError(n + " is not a valid value for " + name + ".");
|
421
|
+
}
|
422
|
+
return true;
|
423
|
+
};
|
424
|
+
|
425
|
+
/**
|
426
|
+
* Validates the number is within an acceptable range for milliseconds [0-999].
|
427
|
+
* @param {Number} The number to check if within range.
|
428
|
+
* @return {Boolean} true if within range, otherwise false.
|
429
|
+
*/
|
430
|
+
$D.validateMillisecond = function (value) {
|
431
|
+
return validate(value, 0, 999, "millisecond");
|
432
|
+
};
|
433
|
+
|
434
|
+
/**
|
435
|
+
* Validates the number is within an acceptable range for seconds [0-59].
|
436
|
+
* @param {Number} The number to check if within range.
|
437
|
+
* @return {Boolean} true if within range, otherwise false.
|
438
|
+
*/
|
439
|
+
$D.validateSecond = function (value) {
|
440
|
+
return validate(value, 0, 59, "second");
|
441
|
+
};
|
442
|
+
|
443
|
+
/**
|
444
|
+
* Validates the number is within an acceptable range for minutes [0-59].
|
445
|
+
* @param {Number} The number to check if within range.
|
446
|
+
* @return {Boolean} true if within range, otherwise false.
|
447
|
+
*/
|
448
|
+
$D.validateMinute = function (value) {
|
449
|
+
return validate(value, 0, 59, "minute");
|
450
|
+
};
|
451
|
+
|
452
|
+
/**
|
453
|
+
* Validates the number is within an acceptable range for hours [0-23].
|
454
|
+
* @param {Number} The number to check if within range.
|
455
|
+
* @return {Boolean} true if within range, otherwise false.
|
456
|
+
*/
|
457
|
+
$D.validateHour = function (value) {
|
458
|
+
return validate(value, 0, 23, "hour");
|
459
|
+
};
|
460
|
+
|
461
|
+
/**
|
462
|
+
* Validates the number is within an acceptable range for the days in a month [0-MaxDaysInMonth].
|
463
|
+
* @param {Number} The number to check if within range.
|
464
|
+
* @return {Boolean} true if within range, otherwise false.
|
465
|
+
*/
|
466
|
+
$D.validateDay = function (value, year, month) {
|
467
|
+
return validate(value, 1, $D.getDaysInMonth(year, month), "day");
|
468
|
+
};
|
469
|
+
|
470
|
+
/**
|
471
|
+
* Validates the number is within an acceptable range for months [0-11].
|
472
|
+
* @param {Number} The number to check if within range.
|
473
|
+
* @return {Boolean} true if within range, otherwise false.
|
474
|
+
*/
|
475
|
+
$D.validateMonth = function (value) {
|
476
|
+
return validate(value, 0, 11, "month");
|
477
|
+
};
|
478
|
+
|
479
|
+
/**
|
480
|
+
* Validates the number is within an acceptable range for years.
|
481
|
+
* @param {Number} The number to check if within range.
|
482
|
+
* @return {Boolean} true if within range, otherwise false.
|
483
|
+
*/
|
484
|
+
$D.validateYear = function (value) {
|
485
|
+
return validate(value, 0, 9999, "year");
|
486
|
+
};
|
487
|
+
|
488
|
+
/**
|
489
|
+
* Set the value of year, month, day, hour, minute, second, millisecond of date instance using given configuration object.
|
490
|
+
* Example
|
491
|
+
<pre><code>
|
492
|
+
Date.today().set( { day: 20, month: 1 } )
|
493
|
+
|
494
|
+
new Date().set( { millisecond: 0 } )
|
495
|
+
</code></pre>
|
496
|
+
*
|
497
|
+
* @param {Object} Configuration object containing attributes (month, day, etc.)
|
498
|
+
* @return {Date} this
|
499
|
+
*/
|
500
|
+
$P.set = function (config) {
|
501
|
+
if ($D.validateMillisecond(config.millisecond)) {
|
502
|
+
this.addMilliseconds(config.millisecond - this.getMilliseconds());
|
503
|
+
}
|
504
|
+
|
505
|
+
if ($D.validateSecond(config.second)) {
|
506
|
+
this.addSeconds(config.second - this.getSeconds());
|
507
|
+
}
|
508
|
+
|
509
|
+
if ($D.validateMinute(config.minute)) {
|
510
|
+
this.addMinutes(config.minute - this.getMinutes());
|
511
|
+
}
|
512
|
+
|
513
|
+
if ($D.validateHour(config.hour)) {
|
514
|
+
this.addHours(config.hour - this.getHours());
|
515
|
+
}
|
516
|
+
|
517
|
+
if ($D.validateMonth(config.month)) {
|
518
|
+
this.addMonths(config.month - this.getMonth());
|
519
|
+
}
|
520
|
+
|
521
|
+
if ($D.validateYear(config.year)) {
|
522
|
+
this.addYears(config.year - this.getFullYear());
|
523
|
+
}
|
524
|
+
|
525
|
+
/* day has to go last because you can't validate the day without first knowing the month */
|
526
|
+
if ($D.validateDay(config.day, this.getFullYear(), this.getMonth())) {
|
527
|
+
this.addDays(config.day - this.getDate());
|
528
|
+
}
|
529
|
+
|
530
|
+
if (config.timezone) {
|
531
|
+
this.setTimezone(config.timezone);
|
532
|
+
}
|
533
|
+
|
534
|
+
if (config.timezoneOffset) {
|
535
|
+
this.setTimezoneOffset(config.timezoneOffset);
|
536
|
+
}
|
537
|
+
|
538
|
+
if (config.week && validate(config.week, 0, 53, "week")) {
|
539
|
+
this.setWeek(config.week);
|
540
|
+
}
|
541
|
+
|
542
|
+
return this;
|
543
|
+
};
|
544
|
+
|
545
|
+
/**
|
546
|
+
* Moves the date to the first day of the month.
|
547
|
+
* @return {Date} this
|
548
|
+
*/
|
549
|
+
$P.moveToFirstDayOfMonth = function () {
|
550
|
+
return this.set({ day: 1 });
|
551
|
+
};
|
552
|
+
|
553
|
+
/**
|
554
|
+
* Moves the date to the last day of the month.
|
555
|
+
* @return {Date} this
|
556
|
+
*/
|
557
|
+
$P.moveToLastDayOfMonth = function () {
|
558
|
+
return this.set({ day: $D.getDaysInMonth(this.getFullYear(), this.getMonth())});
|
559
|
+
};
|
560
|
+
|
561
|
+
/**
|
562
|
+
* Moves the date to the next n'th occurrence of the dayOfWeek starting from the beginning of the month. The number (-1) is a magic number and will return the last occurrence of the dayOfWeek in the month.
|
563
|
+
* @param {Number} The dayOfWeek to move to
|
564
|
+
* @param {Number} The n'th occurrence to move to. Use (-1) to return the last occurrence in the month
|
565
|
+
* @return {Date} this
|
566
|
+
*/
|
567
|
+
$P.moveToNthOccurrence = function (dayOfWeek, occurrence) {
|
568
|
+
var shift = 0;
|
569
|
+
if (occurrence > 0) {
|
570
|
+
shift = occurrence - 1;
|
571
|
+
}
|
572
|
+
else if (occurrence === -1) {
|
573
|
+
this.moveToLastDayOfMonth();
|
574
|
+
if (this.getDay() !== dayOfWeek) {
|
575
|
+
this.moveToDayOfWeek(dayOfWeek, -1);
|
576
|
+
}
|
577
|
+
return this;
|
578
|
+
}
|
579
|
+
return this.moveToFirstDayOfMonth().addDays(-1).moveToDayOfWeek(dayOfWeek, +1).addWeeks(shift);
|
580
|
+
};
|
581
|
+
|
582
|
+
/**
|
583
|
+
* Move to the next or last dayOfWeek based on the orient value.
|
584
|
+
* @param {Number} The dayOfWeek to move to
|
585
|
+
* @param {Number} Forward (+1) or Back (-1). Defaults to +1. [Optional]
|
586
|
+
* @return {Date} this
|
587
|
+
*/
|
588
|
+
$P.moveToDayOfWeek = function (dayOfWeek, orient) {
|
589
|
+
var diff = (dayOfWeek - this.getDay() + 7 * (orient || +1)) % 7;
|
590
|
+
return this.addDays((diff === 0) ? diff += 7 * (orient || +1) : diff);
|
591
|
+
};
|
592
|
+
|
593
|
+
/**
|
594
|
+
* Move to the next or last month based on the orient value.
|
595
|
+
* @param {Number} The month to move to. 0 = January, 11 = December
|
596
|
+
* @param {Number} Forward (+1) or Back (-1). Defaults to +1. [Optional]
|
597
|
+
* @return {Date} this
|
598
|
+
*/
|
599
|
+
$P.moveToMonth = function (month, orient) {
|
600
|
+
var diff = (month - this.getMonth() + 12 * (orient || +1)) % 12;
|
601
|
+
return this.addMonths((diff === 0) ? diff += 12 * (orient || +1) : diff);
|
602
|
+
};
|
603
|
+
|
604
|
+
/**
|
605
|
+
* Get the Ordinal day (numeric day number) of the year, adjusted for leap year.
|
606
|
+
* @return {Number} 1 through 365 (366 in leap years)
|
607
|
+
*/
|
608
|
+
$P.getOrdinalNumber = function () {
|
609
|
+
return Math.ceil((this.clone().clearTime() - new Date(this.getFullYear(), 0, 1)) / 86400000) + 1;
|
610
|
+
};
|
611
|
+
|
612
|
+
/**
|
613
|
+
* Get the time zone abbreviation of the current date.
|
614
|
+
* @return {String} The abbreviated time zone name (e.g. "EST")
|
615
|
+
*/
|
616
|
+
$P.getTimezone = function () {
|
617
|
+
return $D.getTimezoneAbbreviation(this.getUTCOffset());
|
618
|
+
};
|
619
|
+
|
620
|
+
$P.setTimezoneOffset = function (offset) {
|
621
|
+
var here = this.getTimezoneOffset(), there = Number(offset) * -6 / 10;
|
622
|
+
return this.addMinutes(there - here);
|
623
|
+
};
|
624
|
+
|
625
|
+
$P.setTimezone = function (offset) {
|
626
|
+
return this.setTimezoneOffset($D.getTimezoneOffset(offset));
|
627
|
+
};
|
628
|
+
|
629
|
+
/**
|
630
|
+
* Indicates whether Daylight Saving Time is observed in the current time zone.
|
631
|
+
* @return {Boolean} true|false
|
632
|
+
*/
|
633
|
+
$P.hasDaylightSavingTime = function () {
|
634
|
+
return (Date.today().set({month: 0, day: 1}).getTimezoneOffset() !== Date.today().set({month: 6, day: 1}).getTimezoneOffset());
|
635
|
+
};
|
636
|
+
|
637
|
+
/**
|
638
|
+
* Indicates whether this Date instance is within the Daylight Saving Time range for the current time zone.
|
639
|
+
* @return {Boolean} true|false
|
640
|
+
*/
|
641
|
+
$P.isDaylightSavingTime = function () {
|
642
|
+
return Date.today().set({month: 0, day: 1}).getTimezoneOffset() != this.getTimezoneOffset();
|
643
|
+
};
|
644
|
+
|
645
|
+
/**
|
646
|
+
* Get the offset from UTC of the current date.
|
647
|
+
* @return {String} The 4-character offset string prefixed with + or - (e.g. "-0500")
|
648
|
+
*/
|
649
|
+
$P.getUTCOffset = function () {
|
650
|
+
var n = this.getTimezoneOffset() * -10 / 6, r;
|
651
|
+
if (n < 0) {
|
652
|
+
r = (n - 10000).toString();
|
653
|
+
return r.charAt(0) + r.substr(2);
|
654
|
+
} else {
|
655
|
+
r = (n + 10000).toString();
|
656
|
+
return "+" + r.substr(1);
|
657
|
+
}
|
658
|
+
};
|
659
|
+
|
660
|
+
/**
|
661
|
+
* Returns the number of milliseconds between this date and date.
|
662
|
+
* @param {Date} Defaults to now
|
663
|
+
* @return {Number} The diff in milliseconds
|
664
|
+
*/
|
665
|
+
$P.getElapsed = function (date) {
|
666
|
+
return (date || new Date()) - this;
|
667
|
+
};
|
668
|
+
|
669
|
+
if (!$P.toISOString) {
|
670
|
+
/**
|
671
|
+
* Converts the current date instance into a string with an ISO 8601 format. The date is converted to it's UTC value.
|
672
|
+
* @return {String} ISO 8601 string of date
|
673
|
+
*/
|
674
|
+
$P.toISOString = function () {
|
675
|
+
// From http://www.json.org/json.js. Public Domain.
|
676
|
+
function f(n) {
|
677
|
+
return n < 10 ? '0' + n : n;
|
678
|
+
}
|
679
|
+
|
680
|
+
return '"' + this.getUTCFullYear() + '-' +
|
681
|
+
f(this.getUTCMonth() + 1) + '-' +
|
682
|
+
f(this.getUTCDate()) + 'T' +
|
683
|
+
f(this.getUTCHours()) + ':' +
|
684
|
+
f(this.getUTCMinutes()) + ':' +
|
685
|
+
f(this.getUTCSeconds()) + 'Z"';
|
686
|
+
};
|
687
|
+
}
|
688
|
+
|
689
|
+
// private
|
690
|
+
$P._toString = $P.toString;
|
691
|
+
|
692
|
+
/**
|
693
|
+
* Converts the value of the current Date object to its equivalent string representation.
|
694
|
+
* Format Specifiers
|
695
|
+
<pre>
|
696
|
+
CUSTOM DATE AND TIME FORMAT STRINGS
|
697
|
+
Format Description Example
|
698
|
+
------ --------------------------------------------------------------------------- -----------------------
|
699
|
+
s The seconds of the minute between 0-59. "0" to "59"
|
700
|
+
ss The seconds of the minute with leading zero if required. "00" to "59"
|
701
|
+
|
702
|
+
m The minute of the hour between 0-59. "0" or "59"
|
703
|
+
mm The minute of the hour with leading zero if required. "00" or "59"
|
704
|
+
|
705
|
+
h The hour of the day between 1-12. "1" to "12"
|
706
|
+
hh The hour of the day with leading zero if required. "01" to "12"
|
707
|
+
|
708
|
+
H The hour of the day between 0-23. "0" to "23"
|
709
|
+
HH The hour of the day with leading zero if required. "00" to "23"
|
710
|
+
|
711
|
+
d The day of the month between 1 and 31. "1" to "31"
|
712
|
+
dd The day of the month with leading zero if required. "01" to "31"
|
713
|
+
ddd Abbreviated day name. $C.abbreviatedDayNames. "Mon" to "Sun"
|
714
|
+
dddd The full day name. $C.dayNames. "Monday" to "Sunday"
|
715
|
+
|
716
|
+
M The month of the year between 1-12. "1" to "12"
|
717
|
+
MM The month of the year with leading zero if required. "01" to "12"
|
718
|
+
MMM Abbreviated month name. $C.abbreviatedMonthNames. "Jan" to "Dec"
|
719
|
+
MMMM The full month name. $C.monthNames. "January" to "December"
|
720
|
+
|
721
|
+
yy The year as a two-digit number. "99" or "08"
|
722
|
+
yyyy The full four digit year. "1999" or "2008"
|
723
|
+
|
724
|
+
t Displays the first character of the A.M./P.M. designator. "A" or "P"
|
725
|
+
$C.amDesignator or $C.pmDesignator
|
726
|
+
tt Displays the A.M./P.M. designator. "AM" or "PM"
|
727
|
+
$C.amDesignator or $C.pmDesignator
|
728
|
+
|
729
|
+
S The ordinal suffix ("st, "nd", "rd" or "th") of the current day. "st, "nd", "rd" or "th"
|
730
|
+
|
731
|
+
|| *Format* || *Description* || *Example* ||
|
732
|
+
|| d || The CultureInfo shortDate Format Pattern || "M/d/yyyy" ||
|
733
|
+
|| D || The CultureInfo longDate Format Pattern || "dddd, MMMM dd, yyyy" ||
|
734
|
+
|| F || The CultureInfo fullDateTime Format Pattern || "dddd, MMMM dd, yyyy h:mm:ss tt" ||
|
735
|
+
|| m || The CultureInfo monthDay Format Pattern || "MMMM dd" ||
|
736
|
+
|| r || The CultureInfo rfc1123 Format Pattern || "ddd, dd MMM yyyy HH:mm:ss GMT" ||
|
737
|
+
|| s || The CultureInfo sortableDateTime Format Pattern || "yyyy-MM-ddTHH:mm:ss" ||
|
738
|
+
|| t || The CultureInfo shortTime Format Pattern || "h:mm tt" ||
|
739
|
+
|| T || The CultureInfo longTime Format Pattern || "h:mm:ss tt" ||
|
740
|
+
|| u || The CultureInfo universalSortableDateTime Format Pattern || "yyyy-MM-dd HH:mm:ssZ" ||
|
741
|
+
|| y || The CultureInfo yearMonth Format Pattern || "MMMM, yyyy" ||
|
742
|
+
|
743
|
+
|
744
|
+
STANDARD DATE AND TIME FORMAT STRINGS
|
745
|
+
Format Description Example ("en-US")
|
746
|
+
------ --------------------------------------------------------------------------- -----------------------
|
747
|
+
d The CultureInfo shortDate Format Pattern "M/d/yyyy"
|
748
|
+
D The CultureInfo longDate Format Pattern "dddd, MMMM dd, yyyy"
|
749
|
+
F The CultureInfo fullDateTime Format Pattern "dddd, MMMM dd, yyyy h:mm:ss tt"
|
750
|
+
m The CultureInfo monthDay Format Pattern "MMMM dd"
|
751
|
+
r The CultureInfo rfc1123 Format Pattern "ddd, dd MMM yyyy HH:mm:ss GMT"
|
752
|
+
s The CultureInfo sortableDateTime Format Pattern "yyyy-MM-ddTHH:mm:ss"
|
753
|
+
t The CultureInfo shortTime Format Pattern "h:mm tt"
|
754
|
+
T The CultureInfo longTime Format Pattern "h:mm:ss tt"
|
755
|
+
u The CultureInfo universalSortableDateTime Format Pattern "yyyy-MM-dd HH:mm:ssZ"
|
756
|
+
y The CultureInfo yearMonth Format Pattern "MMMM, yyyy"
|
757
|
+
</pre>
|
758
|
+
* @param {String} A format string consisting of one or more format spcifiers [Optional].
|
759
|
+
* @return {String} A string representation of the current Date object.
|
760
|
+
*/
|
761
|
+
$P.toString = function (format) {
|
762
|
+
var x = this;
|
763
|
+
|
764
|
+
// Standard Date and Time Format Strings. Formats pulled from CultureInfo file and
|
765
|
+
// may vary by culture.
|
766
|
+
if (format && format.length == 1) {
|
767
|
+
var c = $C.formatPatterns;
|
768
|
+
x.t = x.toString;
|
769
|
+
switch (format) {
|
770
|
+
case "d":
|
771
|
+
return x.t(c.shortDate);
|
772
|
+
case "D":
|
773
|
+
return x.t(c.longDate);
|
774
|
+
case "F":
|
775
|
+
return x.t(c.fullDateTime);
|
776
|
+
case "m":
|
777
|
+
return x.t(c.monthDay);
|
778
|
+
case "r":
|
779
|
+
return x.t(c.rfc1123);
|
780
|
+
case "s":
|
781
|
+
return x.t(c.sortableDateTime);
|
782
|
+
case "t":
|
783
|
+
return x.t(c.shortTime);
|
784
|
+
case "T":
|
785
|
+
return x.t(c.longTime);
|
786
|
+
case "u":
|
787
|
+
return x.t(c.universalSortableDateTime);
|
788
|
+
case "y":
|
789
|
+
return x.t(c.yearMonth);
|
790
|
+
}
|
791
|
+
}
|
792
|
+
|
793
|
+
var ord = function (n) {
|
794
|
+
switch (n * 1) {
|
795
|
+
case 1:
|
796
|
+
case 21:
|
797
|
+
case 31:
|
798
|
+
return "st";
|
799
|
+
case 2:
|
800
|
+
case 22:
|
801
|
+
return "nd";
|
802
|
+
case 3:
|
803
|
+
case 23:
|
804
|
+
return "rd";
|
805
|
+
default:
|
806
|
+
return "th";
|
807
|
+
}
|
808
|
+
};
|
809
|
+
|
810
|
+
return format ? format.replace(/(\\)?(dd?d?d?|MM?M?M?|yy?y?y?|hh?|HH?|mm?|ss?|tt?|S)/g,
|
811
|
+
function (m) {
|
812
|
+
if (m.charAt(0) === "\\") {
|
813
|
+
return m.replace("\\", "");
|
814
|
+
}
|
815
|
+
x.h = x.getHours;
|
816
|
+
switch (m) {
|
817
|
+
case "hh":
|
818
|
+
return p(x.h() < 13 ? (x.h() === 0 ? 12 : x.h()) : (x.h() - 12));
|
819
|
+
case "h":
|
820
|
+
return x.h() < 13 ? (x.h() === 0 ? 12 : x.h()) : (x.h() - 12);
|
821
|
+
case "HH":
|
822
|
+
return p(x.h());
|
823
|
+
case "H":
|
824
|
+
return x.h();
|
825
|
+
case "mm":
|
826
|
+
return p(x.getMinutes());
|
827
|
+
case "m":
|
828
|
+
return x.getMinutes();
|
829
|
+
case "ss":
|
830
|
+
return p(x.getSeconds());
|
831
|
+
case "s":
|
832
|
+
return x.getSeconds();
|
833
|
+
case "yyyy":
|
834
|
+
return p(x.getFullYear(), 4);
|
835
|
+
case "yy":
|
836
|
+
return p(x.getFullYear());
|
837
|
+
case "dddd":
|
838
|
+
return $C.dayNames[x.getDay()];
|
839
|
+
case "ddd":
|
840
|
+
return $C.abbreviatedDayNames[x.getDay()];
|
841
|
+
case "dd":
|
842
|
+
return p(x.getDate());
|
843
|
+
case "d":
|
844
|
+
return x.getDate();
|
845
|
+
case "MMMM":
|
846
|
+
return $C.monthNames[x.getMonth()];
|
847
|
+
case "MMM":
|
848
|
+
return $C.abbreviatedMonthNames[x.getMonth()];
|
849
|
+
case "MM":
|
850
|
+
return p((x.getMonth() + 1));
|
851
|
+
case "M":
|
852
|
+
return x.getMonth() + 1;
|
853
|
+
case "t":
|
854
|
+
return x.h() < 12 ? $C.amDesignator.substring(0, 1) : $C.pmDesignator.substring(0, 1);
|
855
|
+
case "tt":
|
856
|
+
return x.h() < 12 ? $C.amDesignator : $C.pmDesignator;
|
857
|
+
case "S":
|
858
|
+
return ord(x.getDate());
|
859
|
+
default:
|
860
|
+
return m;
|
861
|
+
}
|
862
|
+
}
|
863
|
+
) : this._toString();
|
864
|
+
};
|
865
|
+
}());
|