zena 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +80 -25
- data/Rakefile +2 -2
- data/app/controllers/columns_controller.rb +2 -2
- data/app/controllers/nodes_controller.rb +22 -29
- data/app/controllers/user_sessions_controller.rb +35 -10
- data/app/controllers/users_controller.rb +2 -2
- data/app/controllers/versions_controller.rb +2 -2
- data/app/models/group.rb +15 -1
- data/app/models/node.rb +109 -8
- data/app/models/role.rb +4 -0
- data/app/models/site.rb +64 -58
- data/app/models/template.rb +1 -1
- data/app/models/user.rb +135 -29
- data/app/models/user_session.rb +0 -1
- data/app/models/virtual_class.rb +11 -6
- data/app/views/columns/_form.html.erb +3 -1
- data/app/views/columns/_li.html.erb +1 -1
- data/app/views/columns/create.rjs +1 -1
- data/app/views/groups/_form.rhtml +16 -13
- data/app/views/relations/_form.erb +18 -6
- data/app/views/sites/_form.erb +12 -6
- data/app/views/users/_form.rhtml +23 -8
- data/app/views/users/_li.rhtml +14 -3
- data/app/views/users/index.rhtml +1 -1
- data/app/views/virtual_classes/_form.erb +12 -2
- data/app/views/zafu/default/Node-+login.zafu +8 -1
- data/app/views/zafu/default/Node-+search.zafu +1 -1
- data/bricks/acls/lib/bricks/acls.rb +1 -0
- data/bricks/acls/zena/migrate/20130903150356_longer_names_for_acl.rb +9 -0
- data/bricks/acls/zena/test/integration/acl_integration_test.rb +2 -2
- data/bricks/currency/lib/bricks/currency.rb +120 -0
- data/bricks/currency/zena/test/unit/currency_test.rb +43 -0
- data/bricks/fs_skin/lib/bricks/fs_skin.rb +1 -1
- data/bricks/fs_skin/zena/skins/blog/Node-+search.zafu +1 -1
- data/bricks/fs_skin/zena/skins/blog/Node.zafu +1 -1
- data/bricks/fs_skin/zena/test/unit/fs_skin_view_test.rb +35 -0
- data/bricks/pdf/lib/bricks/pdf.rb +1 -1
- data/bricks/sphinx/lib/bricks/sphinx.rb +2 -0
- data/bricks/sphinx/zena/init.rb +14 -0
- data/bricks/tags/zena/test/zafu/tags.yml +5 -1
- data/bricks/worker/lib/bricks/worker.rb +3 -2
- data/bricks/zena/zena/migrate/20130829093753_add_versioned_flag_to_column.rb +10 -0
- data/bricks/zena/zena/migrate/20130903084909_count_login_attempts.rb +11 -0
- data/bricks/zena/zena/migrate/20131104153126_index_fullpath.rb +10 -0
- data/bricks/zena/zena/migrate/20131104210011_rebuild_fullpath_after_change.rb +10 -0
- data/bricks/zena/zena/migrate/20131105160420_add_skin_id_to_sites.rb +9 -0
- data/bricks/zena/zena/migrate/20131105175822_add_profile_to_users.rb +11 -0
- data/bricks/zena/zena/migrate/20140213120038_fix_idx_scope.rb +13 -0
- data/bricks/zena/zena/migrate/20140628140247_add_site_readonly.rb +9 -0
- data/config/bricks.yml +8 -4
- data/config/gems.yml +5 -3
- data/db/init/base/skins/default/Node-+login.zafu +8 -1
- data/db/init/base/skins/default/Node-+search.zafu +1 -1
- data/lib/bricks/loader.rb +5 -5
- data/lib/gettext_strings.rb +3 -0
- data/lib/tasks/zena.rake +25 -22
- data/lib/zafu/process/context.rb +4 -0
- data/lib/zena/acts/secure_node.rb +3 -3
- data/lib/zena/app.rb +1 -0
- data/lib/zena/deploy.rb +1 -1
- data/lib/zena/deploy/template.rb +1 -1
- data/lib/zena/foxy_parser.rb +5 -2
- data/lib/zena/info.rb +1 -1
- data/lib/zena/site_worker.rb +2 -2
- data/lib/zena/test_controller.rb +5 -2
- data/lib/zena/use/action.rb +9 -2
- data/lib/zena/use/ajax.rb +20 -4
- data/lib/zena/use/ancestry.rb +89 -15
- data/lib/zena/use/authlogic.rb +8 -2
- data/lib/zena/use/context.rb +1 -0
- data/lib/zena/use/display.rb +1 -97
- data/lib/zena/use/forms.rb +28 -8
- data/lib/zena/use/html_tags.rb +16 -7
- data/lib/zena/use/i18n.rb +1 -1
- data/lib/zena/use/prop_eval.rb +6 -1
- data/lib/zena/use/query_node.rb +69 -4
- data/lib/zena/use/recursion.rb +1 -1
- data/lib/zena/use/refactor.rb +5 -2
- data/lib/zena/use/relations.rb +1 -0
- data/lib/zena/use/rendering.rb +7 -4
- data/lib/zena/use/test_helper.rb +8 -4
- data/lib/zena/use/upload.rb +14 -0
- data/lib/zena/use/urls.rb +39 -23
- data/lib/zena/use/version_hash.rb +5 -2
- data/lib/zena/use/workflow.rb +116 -70
- data/lib/zena/use/zafu_eval.rb +41 -0
- data/lib/zena/use/zafu_safe_definitions.rb +1 -0
- data/lib/zena/use/zafu_templates.rb +32 -26
- data/lib/zena/use/zazen.rb +8 -7
- data/locale/app.pot +5 -1
- data/locale/de/LC_MESSAGES/zena.mo +0 -0
- data/locale/de/zena.po +385 -281
- data/locale/en/LC_MESSAGES/zena.mo +0 -0
- data/locale/en/zena.po +378 -271
- data/locale/fr/LC_MESSAGES/zena.mo +0 -0
- data/locale/fr/zena.po +387 -272
- data/locale/it/LC_MESSAGES/zena.mo +0 -0
- data/locale/it/zena.po +433 -404
- data/locale/zena.pot +362 -268
- data/public/javascripts/grid.js +280 -104
- data/public/javascripts/zena.js +43 -15
- data/public/stylesheets/admin.css +8 -2
- data/public/stylesheets/grid.css +5 -2
- data/public/stylesheets/popup.css +1 -1
- data/test/fixtures/files/TestNode.zafu +51 -0
- data/test/functional/nodes_controller_test.rb +20 -5
- data/test/functional/user_sessions_controller_test.rb +41 -6
- data/test/functional/users_controller_test.rb +1 -2
- data/test/integration/navigation_test.rb +22 -4
- data/test/integration/query_node/basic.yml +7 -0
- data/test/integration/query_node/complex.yml +1 -1
- data/test/integration/query_node/errors.yml +1 -1
- data/test/integration/query_node/filters.yml +34 -1
- data/test/integration/query_node/relations.yml +6 -13
- data/test/integration/query_node_test.rb +22 -3
- data/test/integration/zafu_compiler/action.yml +1 -1
- data/test/integration/zafu_compiler/alias_site.yml +52 -0
- data/test/integration/zafu_compiler/complex.yml +1 -1
- data/test/integration/zafu_compiler/complex_ok.yml +5 -5
- data/test/integration/zafu_compiler/context.yml +1 -1
- data/test/integration/zafu_compiler/display.yml +56 -5
- data/test/integration/zafu_compiler/forms.yml +35 -2
- data/test/integration/zafu_compiler/meta.yml +4 -0
- data/test/integration/zafu_compiler/rubyless.yml +1 -1
- data/test/integration/zafu_compiler/safe_definitions.yml +4 -0
- data/test/integration/zafu_compiler/security.yml +10 -0
- data/test/integration/zafu_compiler/site.yml +5 -1
- data/test/integration/zafu_compiler/urls.yml +8 -2
- data/test/integration/zafu_compiler/zafu_attributes.yml +2 -1
- data/test/integration/zafu_compiler/zazen.yml +4 -0
- data/test/integration/zafu_compiler_test.rb +47 -4
- data/test/selenium/Grid/grid1.rsel +8 -8
- data/test/sites/complex/sites.yml +2 -2
- data/test/sites/complex/users.yml +1 -0
- data/test/sites/zena/columns.yml +4 -0
- data/test/sites/zena/sites.yml +1 -0
- data/test/sites/zena/users.yml +1 -0
- data/test/unit/node_test.rb +53 -5
- data/test/unit/note_test.rb +1 -1
- data/test/unit/relation_proxy_test.rb +20 -0
- data/test/unit/role_test.rb +2 -0
- data/test/unit/site_test.rb +28 -6
- data/test/unit/user_test.rb +332 -1
- data/test/unit/virtual_class_test.rb +55 -0
- data/test/unit/workflow_test.rb +175 -0
- data/test/unit/zena/use/ancestry_test.rb +52 -10
- data/test/unit/zena/use/prop_eval_test.rb +44 -0
- data/test/unit/zena/use/rendering_test.rb +48 -2
- data/test/unit/zena/use/upload_test.rb +15 -13
- data/test/unit/zena/use/urls_test.rb +1 -0
- data/vendor/plugins/ar_mysql_full_text/lib/ar_mysql_full_text.rb +39 -25
- data/zena.gemspec +69 -307
- metadata +143 -368
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand +0 -24
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand +0 -58
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand +0 -88
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand +0 -27
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences +0 -19
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet +0 -22
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet +0 -23
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet +0 -20
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet +0 -18
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet +0 -16
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb +0 -104
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb +0 -17
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt +0 -13
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb +0 -25
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage +0 -166
- data/vendor/TextMate/Ruby Shoulda.tmbundle/info.plist +0 -304
- data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +0 -37
- data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +0 -52
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/catch_exception.rb +0 -39
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +0 -118
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/stdin_dialog.rb +0 -14
- data/vendor/TextMate/Zena.tmbundle/info.plist +0 -17
- data/vendor/plugins/selenium-on-rails/CHANGELOG +0 -125
- data/vendor/plugins/selenium-on-rails/LICENSE-2.0.txt +0 -202
- data/vendor/plugins/selenium-on-rails/README.md +0 -202
- data/vendor/plugins/selenium-on-rails/Rakefile +0 -38
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumController.html +0 -265
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumHelper.html +0 -148
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails.html +0 -126
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/FixtureLoader.html +0 -231
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/PartialsSupport.html +0 -195
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Paths.html +0 -295
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/RSelenese.html +0 -219
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Renderer.html +0 -156
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/Selenese.html +0 -179
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/SuiteRenderer.html +0 -223
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilder.html +0 -441
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderAccessors.html +0 -3098
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderActions.html +0 -2080
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderUserAccessors.html +0 -116
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRails/TestBuilderUserActions.html +0 -116
- data/vendor/plugins/selenium-on-rails/doc/classes/SeleniumOnRailsConfig.html +0 -150
- data/vendor/plugins/selenium-on-rails/doc/files/CHANGELOG.html +0 -422
- data/vendor/plugins/selenium-on-rails/doc/files/README.html +0 -321
- data/vendor/plugins/selenium-on-rails/doc/files/lib/controllers/selenium_controller_rb.html +0 -108
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_helper_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/acceptance_test_runner_rb.html +0 -222
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/fixture_loader_rb.html +0 -109
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/partials_support_rb.html +0 -111
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/paths_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/renderer_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/rselenese_rb.html +0 -118
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/selenese_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/suite_renderer_rb.html +0 -101
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_accessors_rb.html +0 -114
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_actions_rb.html +0 -113
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails/test_builder_rb.html +0 -120
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails_config_rb.html +0 -108
- data/vendor/plugins/selenium-on-rails/doc/files/lib/selenium_on_rails_rb.html +0 -115
- data/vendor/plugins/selenium-on-rails/doc/fr_class_index.html +0 -42
- data/vendor/plugins/selenium-on-rails/doc/fr_file_index.html +0 -43
- data/vendor/plugins/selenium-on-rails/doc/fr_method_index.html +0 -182
- data/vendor/plugins/selenium-on-rails/doc/index.html +0 -24
- data/vendor/plugins/selenium-on-rails/doc/rdoc-style.css +0 -208
- data/vendor/plugins/selenium-on-rails/generators/selenium/USAGE +0 -19
- data/vendor/plugins/selenium-on-rails/generators/selenium/selenium_generator.rb +0 -50
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/rhtml.rhtml +0 -16
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/rselenese.rhtml +0 -14
- data/vendor/plugins/selenium-on-rails/generators/selenium/templates/selenese.rhtml +0 -11
- data/vendor/plugins/selenium-on-rails/init.rb +0 -15
- data/vendor/plugins/selenium-on-rails/lib/controllers/selenium_controller.rb +0 -122
- data/vendor/plugins/selenium-on-rails/lib/controllers/switch_environment_controller.rb +0 -16
- data/vendor/plugins/selenium-on-rails/lib/selenium_helper.rb +0 -8
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails.rb +0 -11
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/acceptance_test_runner.rb +0 -215
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/fixture_loader.rb +0 -57
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/partials_support.rb +0 -36
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/paths.rb +0 -61
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/renderer.rb +0 -20
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/rselenese.rb +0 -44
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/selenese.rb +0 -87
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/suite_renderer.rb +0 -56
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder.rb +0 -116
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_accessors.rb +0 -1002
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_actions.rb +0 -514
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_accessors.rb.example +0 -91
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_actions.rb.example +0 -24
- data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails_config.rb +0 -30
- data/vendor/plugins/selenium-on-rails/lib/views/layouts/layout.rhtml +0 -18
- data/vendor/plugins/selenium-on-rails/lib/views/record.rhtml +0 -5
- data/vendor/plugins/selenium-on-rails/lib/views/selenium_helper.rb +0 -9
- data/vendor/plugins/selenium-on-rails/lib/views/setup.rhtml +0 -67
- data/vendor/plugins/selenium-on-rails/lib/views/test_suite.rhtml +0 -26
- data/vendor/plugins/selenium-on-rails/routes.rb +0 -24
- data/vendor/plugins/selenium-on-rails/selenium-core/Blank.html +0 -7
- data/vendor/plugins/selenium-on-rails/selenium-core/InjectedRemoteRunner.html +0 -8
- data/vendor/plugins/selenium-on-rails/selenium-core/RemoteRunner.html +0 -110
- data/vendor/plugins/selenium-on-rails/selenium-core/SeleniumLog.html +0 -109
- data/vendor/plugins/selenium-on-rails/selenium-core/TestPrompt.html +0 -145
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner-splash.html +0 -55
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner.hta +0 -177
- data/vendor/plugins/selenium-on-rails/selenium-core/TestRunner.html +0 -177
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/butmin.gif +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/butplus.gif +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/domviewer.css +0 -298
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/domviewer.html +0 -16
- data/vendor/plugins/selenium-on-rails/selenium-core/domviewer/selenium-domviewer.js +0 -205
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/all.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/continue.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/continue_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/pause.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/pause_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/selected.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/step.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/icons/step_disabled.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/iedoc-core.xml +0 -1759
- data/vendor/plugins/selenium-on-rails/selenium-core/iedoc.xml +0 -1800
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/cssQuery-p.js +0 -6
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-level2.js +0 -142
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-level3.js +0 -150
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery-standard.js +0 -53
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/cssQuery/src/cssQuery.js +0 -356
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/prototype.js +0 -2006
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/builder.js +0 -101
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/controls.js +0 -815
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/dragdrop.js +0 -915
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/effects.js +0 -958
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/scriptaculous.js +0 -47
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/slider.js +0 -283
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/scriptaculous/unittest.js +0 -383
- data/vendor/plugins/selenium-on-rails/selenium-core/lib/snapsie.js +0 -91
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/find_matching_child.js +0 -69
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/htmlutils.js +0 -1616
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/injection.html +0 -72
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-api.js +0 -3184
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-browserbot.js +0 -2300
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-browserdetect.js +0 -153
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-commandhandlers.js +0 -377
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-executionloop.js +0 -175
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-logging.js +0 -148
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-remoterunner.js +0 -695
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-testrunner.js +0 -1362
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/selenium-version.js +0 -5
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-doc.html +0 -803
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-element.js +0 -1537
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/ui-map-sample.js +0 -979
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js +0 -3
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/user-extensions.js.sample +0 -75
- data/vendor/plugins/selenium-on-rails/selenium-core/scripts/xmlextras.js +0 -153
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium-logo.png +0 -0
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium-test.css +0 -43
- data/vendor/plugins/selenium-on-rails/selenium-core/selenium.css +0 -316
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/dom.js +0 -566
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/javascript-xpath-0.1.11.js +0 -2816
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/util.js +0 -549
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/xmltoken.js +0 -149
- data/vendor/plugins/selenium-on-rails/selenium-core/xpath/xpath.js +0 -2450
- data/vendor/plugins/selenium-on-rails/tasks/test_acceptance.rake +0 -8
- data/vendor/plugins/selenium-on-rails/test/fixtures/config.yml +0 -37
- data/vendor/plugins/selenium-on-rails/test/fixtures/selenium.yml +0 -27
- data/vendor/plugins/selenium-on-rails/test/paths_test.rb +0 -72
- data/vendor/plugins/selenium-on-rails/test/renderer_test.rb +0 -157
- data/vendor/plugins/selenium-on-rails/test/rselenese_test.rb +0 -708
- data/vendor/plugins/selenium-on-rails/test/selenese_test.rb +0 -242
- data/vendor/plugins/selenium-on-rails/test/selenium_controller_test.rb +0 -67
- data/vendor/plugins/selenium-on-rails/test/selenium_on_rails_config_test.rb +0 -43
- data/vendor/plugins/selenium-on-rails/test/selenium_support_test.rb +0 -35
- data/vendor/plugins/selenium-on-rails/test/setup_test.rb +0 -31
- data/vendor/plugins/selenium-on-rails/test/suite_renderer_test.rb +0 -109
- data/vendor/plugins/selenium-on-rails/test/switch_environment_controller_test.rb +0 -17
- data/vendor/plugins/selenium-on-rails/test/test_builder_functions_authortest.rb +0 -51
- data/vendor/plugins/selenium-on-rails/test/test_helper.rb +0 -101
- data/vendor/plugins/selenium-on-rails/test_data/_partial.rsel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/own_layout.html +0 -12
- data/vendor/plugins/selenium-on-rails/test_data/partials/_html.html +0 -6
- data/vendor/plugins/selenium-on-rails/test_data/partials/_nesting.rsel +0 -2
- data/vendor/plugins/selenium-on-rails/test_data/partials/_rhtml.rhtml +0 -6
- data/vendor/plugins/selenium-on-rails/test_data/partials/_rsel.rsel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/partials/_sel.sel +0 -5
- data/vendor/plugins/selenium-on-rails/test_data/partials/all_partials.rsel +0 -5
- data/vendor/plugins/selenium-on-rails/test_data/rhtml.rhtml +0 -7
- data/vendor/plugins/selenium-on-rails/test_data/rselenese.rsel +0 -8
- data/vendor/plugins/selenium-on-rails/test_data/selenese.sel +0 -7
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/subsuite/suite_one_subsuite_testcase.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/suite_one_testcase1.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_one/suite_one_testcase2.sel +0 -1
- data/vendor/plugins/selenium-on-rails/test_data/suite_two/suite_two_testcase.sel +0 -1
data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_accessors.rb.example
DELETED
@@ -1,91 +0,0 @@
|
|
1
|
-
# Mirrors the accessors specified in user-extensions.js from the selenium-core
|
2
|
-
module SeleniumOnRails::TestBuilderUserAccessors
|
3
|
-
|
4
|
-
# Return the length of text of a specified element.
|
5
|
-
#
|
6
|
-
# Related Assertions, automatically generated:
|
7
|
-
# * <tt>assert_text_length(locator, variable)</tt>
|
8
|
-
# * <tt>assert_not_text_length(locator, length)</tt>
|
9
|
-
# * <tt>verify_text_length(locator, length)</tt>
|
10
|
-
# * <tt>verify_not_text_length(locator, length)</tt>
|
11
|
-
# * <tt>wait_for_text_length(locator, length)</tt>
|
12
|
-
# * <tt>wait_for_not_text_length(locator, length)</tt>
|
13
|
-
def store_text_length locator, variable_name
|
14
|
-
command 'storeTextLength', locator, variable_name
|
15
|
-
end
|
16
|
-
|
17
|
-
# Checks if value entered more than once in textbox.
|
18
|
-
#
|
19
|
-
# Related Assertions, automatically generated:
|
20
|
-
# * <tt>assert_not_text_length(locator, text)</tt>
|
21
|
-
# * <tt>verify_text_length(locator, text)</tt>
|
22
|
-
# * <tt>verify_not_text_length(locator, text)</tt>
|
23
|
-
# * <tt>wait_for_text_length(locator, text)</tt>
|
24
|
-
# * <tt>wait_for_not_text_length(locator, text)</tt>
|
25
|
-
def assert_value_repeated locator, text
|
26
|
-
command 'assertValueRepeated', locator, text
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def self.generate_methods
|
32
|
-
public_instance_methods.each do |method|
|
33
|
-
case method
|
34
|
-
when 'store_text_length'
|
35
|
-
each_assertion method do |assertion_method, command_name|
|
36
|
-
define_method assertion_method do |arg1, arg2|
|
37
|
-
command command_name, arg1, arg2
|
38
|
-
end
|
39
|
-
end
|
40
|
-
when 'assert_value_repeated'
|
41
|
-
each_check method do |check_method, command_name|
|
42
|
-
define_method check_method do |arg1, arg2|
|
43
|
-
command command_name, arg1, arg2
|
44
|
-
end
|
45
|
-
end
|
46
|
-
else
|
47
|
-
raise "Internal error: Don't know how to process user accessor: #{method}"
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
|
52
|
-
# Generates all the assertions needed given a +store_method+.
|
53
|
-
def self.each_assertion store_method
|
54
|
-
before_negation = nil
|
55
|
-
after_negation = store_method.split('_')[1..-1] #throw away 'store'
|
56
|
-
if after_negation.last == 'present'
|
57
|
-
before_negation, after_negation = after_negation, after_negation.pop
|
58
|
-
end
|
59
|
-
|
60
|
-
['assert', 'verify', ['wait','for']].each do |action|
|
61
|
-
[nil, 'not'].each do |negation|
|
62
|
-
name = [action, before_negation, negation, after_negation].flatten.reject{|a|a.nil?}
|
63
|
-
method_name = name.join '_'
|
64
|
-
command = name.inject(name.shift.clone) {|n, p| n << p.capitalize}
|
65
|
-
yield method_name, command
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
def self.each_check assert_method
|
71
|
-
before_negation = nil
|
72
|
-
after_negation = assert_method.split('_')[1..-1] #throw away 'assert'
|
73
|
-
if after_negation.last == 'present'
|
74
|
-
before_negation, after_negation = after_negation, after_negation.pop
|
75
|
-
end
|
76
|
-
|
77
|
-
['assert', 'verify', ['wait', 'for']].each do |action|
|
78
|
-
[nil, 'not'].each do |negation|
|
79
|
-
unless (action == 'assert' && negation.nil?)
|
80
|
-
name = [action, before_negation, negation, after_negation].flatten.reject{|a|a.nil?}
|
81
|
-
method_name = name.join '_'
|
82
|
-
command = name.inject(name.shift.clone) {|n, p| n << p.capitalize}
|
83
|
-
yield method_name, command
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
generate_methods
|
90
|
-
|
91
|
-
end
|
data/vendor/plugins/selenium-on-rails/lib/selenium_on_rails/test_builder_user_actions.rb.example
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Mirrors the actions specified in user-extensions.js from the selenium-core
|
2
|
-
module SeleniumOnRails::TestBuilderUserActions
|
3
|
-
|
4
|
-
# Types the text twice into a text box.
|
5
|
-
def type_repeated locator, text
|
6
|
-
command 'typeRepeated', locator, text
|
7
|
-
end
|
8
|
-
|
9
|
-
private
|
10
|
-
|
11
|
-
# Generates the corresponding +_and_wait+ for each action.
|
12
|
-
def self.generate_and_wait_actions
|
13
|
-
public_instance_methods.each do |method|
|
14
|
-
define_method method + '_and_wait' do |*args|
|
15
|
-
make_command_waiting do
|
16
|
-
send method, *args
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
generate_and_wait_actions
|
23
|
-
|
24
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'safe_yaml'
|
2
|
-
require 'erb'
|
3
|
-
|
4
|
-
class SeleniumOnRailsConfig
|
5
|
-
@@defaults = {:environments => ['test']}
|
6
|
-
def self.get var, default = nil
|
7
|
-
value = configs[var.to_s]
|
8
|
-
value ||= @@defaults[var]
|
9
|
-
value ||= default
|
10
|
-
value ||= yield if block_given?
|
11
|
-
value
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
def self.configs
|
16
|
-
@@configs ||= nil
|
17
|
-
unless @@configs
|
18
|
-
files = [File.join(RAILS_ROOT, 'config', 'selenium.yml'), File.expand_path(File.dirname(__FILE__) + '/../config.yml')]
|
19
|
-
files.each do |file|
|
20
|
-
if File.exist?(file)
|
21
|
-
@@configs = YAML.load(ERB.new(IO.read(file)).result)
|
22
|
-
break
|
23
|
-
end
|
24
|
-
end
|
25
|
-
@@configs ||= {}
|
26
|
-
end
|
27
|
-
@@configs
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<title>Selenium on Rails<%= defined?(@page_title) ? ": #{@page_title}" : '' %></title>
|
6
|
-
</head>
|
7
|
-
<style type="text/css">
|
8
|
-
body, html { font-family: Verdana, Arial, sans-serif; }
|
9
|
-
table { border-collapse: collapse; margin: 10px 0px; }
|
10
|
-
td, th { border: 2px solid black; }
|
11
|
-
#notice { text-align: center; color: darkgreen; background-color: lightgreen; padding: 5px 15px; width: 400px; margin-left: auto; margin-right: auto; }
|
12
|
-
#notice * { text-align: left; }
|
13
|
-
#usagedescription { margin: 15px 30px; }
|
14
|
-
</style>
|
15
|
-
<body>
|
16
|
-
<%= @content_for_layout %>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,67 +0,0 @@
|
|
1
|
-
<% @page_title = 'Setup' -%>
|
2
|
-
<% if defined?(@session_wiped) or @cleared_tables.any? or @loaded_fixtures.any? -%>
|
3
|
-
<div id="notice">
|
4
|
-
<% if defined?(@session_wiped) -%>
|
5
|
-
<p>The session is wiped clean.</p>
|
6
|
-
<% end-%>
|
7
|
-
<% if @cleared_tables.any? -%>
|
8
|
-
<p>The following database tables are cleared:</p>
|
9
|
-
<ul>
|
10
|
-
<% for table in @cleared_tables -%>
|
11
|
-
<li><%= table %></li>
|
12
|
-
<% end-%>
|
13
|
-
</ul>
|
14
|
-
<% end -%>
|
15
|
-
<% if @loaded_fixtures.any? -%>
|
16
|
-
<p>The following fixtures are loaded:</p>
|
17
|
-
<ul>
|
18
|
-
<% for fixture in @loaded_fixtures -%>
|
19
|
-
<li><%= fixture %></li>
|
20
|
-
<% end-%>
|
21
|
-
</ul>
|
22
|
-
<% end -%>
|
23
|
-
</div>
|
24
|
-
<% end -%>
|
25
|
-
|
26
|
-
<div id="usagedescription">
|
27
|
-
<p>This page can be used to setup your Selenium tests. The following options can be used:</p>
|
28
|
-
<dl>
|
29
|
-
<dt><tt>keep_session</tt></dt>
|
30
|
-
<dd>
|
31
|
-
Per default the session is reset, so add <tt>keep_session</tt> in order to keep the current session.
|
32
|
-
<table>
|
33
|
-
<tr><td>open</td><td><%= url_for %>?keep_session</td><td> </td></tr>
|
34
|
-
</table>
|
35
|
-
</dd>
|
36
|
-
<dt><tt>fixtures</tt></dt>
|
37
|
-
<dd>
|
38
|
-
Loads one or many fixtures into the database. <strong>This will destroy the current data you have in your database!</strong> Use <tt>all</tt> as name in order to load all fixtures, or specify which fixtures that should be loaded (delimited by commas).<br />
|
39
|
-
If a test needs different data than you have in your fixtures, you can add another <em>fixture set</em>. A fixture set is just a sub directory in <tt>/test/fixtures/</tt> where you can add alternate fixtures (e.g. <tt>/test/fixtures/blank/users.yml</tt>).
|
40
|
-
<table>
|
41
|
-
<tr><td>open</td><td><%= url_for :fixtures => 'all' %></td><td> </td></tr>
|
42
|
-
<tr><td>open</td><td><%= url_for :fixtures => 'fixture' %></td><td> </td></tr>
|
43
|
-
<tr><td>open</td><td><%= url_for :fixtures => 'fixture_one' %>,fixture_two</td><td> </td></tr>
|
44
|
-
</table>
|
45
|
-
<b>Available fixtures</b><br />
|
46
|
-
<% fixtures = available_fixtures -%>
|
47
|
-
<% for fixture_set in fixtures.keys.sort -%>
|
48
|
-
In the <%= fixture_set.blank? ? 'default' : "<tt>#{fixture_set}</tt>" %> fixture set:
|
49
|
-
<ul>
|
50
|
-
<% fixtures[fixture_set].unshift fixture_set.blank? ? 'all' : "#{fixture_set}/all" -%>
|
51
|
-
<% for fixture in fixtures[fixture_set] -%>
|
52
|
-
<li><tt><%= fixture %></tt></li>
|
53
|
-
<% end -%>
|
54
|
-
</ul>
|
55
|
-
<% end -%>
|
56
|
-
</dd>
|
57
|
-
<dt><tt>clear_tables</tt></dt>
|
58
|
-
<dd>
|
59
|
-
Clears one or many database tables. Another way to do the same thing is to create an empty fixture in a new fixture set (see <tt>fixtures</tt> above).
|
60
|
-
<table>
|
61
|
-
<tr><td>open</td><td><%= url_for :clear_tables => 'sessions' %></td><td> </td></tr>
|
62
|
-
<tr><td>open</td><td><%= url_for :clear_tables => 'sessions' %>,outgoing_messages</td><td> </td></tr>
|
63
|
-
</table>
|
64
|
-
</dd>
|
65
|
-
</dl>
|
66
|
-
|
67
|
-
</div>
|
@@ -1,26 +0,0 @@
|
|
1
|
-
<% @page_title = test_suite_name @suite_path -%>
|
2
|
-
<script type="text/javascript">
|
3
|
-
<!--
|
4
|
-
function openSuite(selector) {
|
5
|
-
var suite = selector.options[selector.selectedIndex].value;
|
6
|
-
if(suite == "header") return;
|
7
|
-
if(top.location.href != location.href) //inside a frame
|
8
|
-
top.location = "<%= url_for :action => :support_file %>/TestRunner.html?test=tests" + suite
|
9
|
-
else
|
10
|
-
window.location = "<%= url_for :action => :test_file, :testname => '' %>" + suite
|
11
|
-
}
|
12
|
-
//-->
|
13
|
-
</script>
|
14
|
-
<select onchange="openSuite(this)">
|
15
|
-
<option value="header">Suites:</option>
|
16
|
-
<% for name, path in test_suites @suite_path -%>
|
17
|
-
<option value="<%= path %>"><%= name%></option>
|
18
|
-
<% end -%>
|
19
|
-
</select>
|
20
|
-
|
21
|
-
<table>
|
22
|
-
<tr><th><%= @page_title %></th></tr>
|
23
|
-
<% for name, path in test_cases @suite_path -%>
|
24
|
-
<tr><td><%= link_to_test_case name, path %></td></tr>
|
25
|
-
<% end -%>
|
26
|
-
</table>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
module ActionController
|
2
|
-
module Routing #:nodoc:
|
3
|
-
class RouteSet #:nodoc:
|
4
|
-
alias_method :draw_without_selenium_routes, :draw
|
5
|
-
def draw
|
6
|
-
draw_without_selenium_routes do |map|
|
7
|
-
map.connect 'selenium/setup',
|
8
|
-
:controller => 'selenium', :action => 'setup'
|
9
|
-
map.connect 'selenium/tests/*testname',
|
10
|
-
:controller => 'selenium', :action => 'test_file'
|
11
|
-
map.connect 'selenium/postResults',
|
12
|
-
:controller => 'selenium', :action => 'record'
|
13
|
-
map.connect 'selenium/postResults/:logFile',
|
14
|
-
:controller => 'selenium', :action => 'record', :requirements => { :logFile => /.*/ }
|
15
|
-
map.connect 'selenium/*filename',
|
16
|
-
:controller => 'selenium', :action => 'support_file'
|
17
|
-
map.connect 'switch_environment',
|
18
|
-
:controller => 'switch_environment', :action => 'index'
|
19
|
-
yield map if block_given?
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,110 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
|
3
|
-
<!--
|
4
|
-
Copyright 2004 ThoughtWorks, Inc
|
5
|
-
|
6
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
you may not use this file except in compliance with the License.
|
8
|
-
You may obtain a copy of the License at
|
9
|
-
|
10
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
|
12
|
-
Unless required by applicable law or agreed to in writing, software
|
13
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
See the License for the specific language governing permissions and
|
16
|
-
limitations under the License.
|
17
|
-
-->
|
18
|
-
<HTA:APPLICATION ID="SeleniumHTARunner" APPLICATIONNAME="Selenium" >
|
19
|
-
<head>
|
20
|
-
<meta content="text/html; charset=ISO-8859-1"
|
21
|
-
http-equiv="content-type">
|
22
|
-
<title>Selenium Remote Control</title>
|
23
|
-
<link rel="stylesheet" type="text/css" href="selenium.css" />
|
24
|
-
<script type="text/javascript" src="scripts/xmlextras.js"></script>
|
25
|
-
<script language="JavaScript" type="text/javascript" src="lib/prototype.js"></script>
|
26
|
-
<script language="JavaScript" type="text/javascript" src="lib/cssQuery/cssQuery-p.js"></script>
|
27
|
-
<script language="JavaScript" type="text/javascript" src="lib/snapsie.js"></script>
|
28
|
-
<script language="JavaScript" type="text/javascript" src="scripts/htmlutils.js"></script>
|
29
|
-
<script language="JavaScript" type="text/javascript" src="scripts/ui-element.js"></script>
|
30
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserdetect.js"></script>
|
31
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-browserbot.js"></script>
|
32
|
-
<script language="JavaScript" type="text/javascript" src="scripts/find_matching_child.js"></script>
|
33
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-api.js"></script>
|
34
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-commandhandlers.js"></script>
|
35
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-executionloop.js"></script>
|
36
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-remoterunner.js"></script>
|
37
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-logging.js"></script>
|
38
|
-
<script language="JavaScript" type="text/javascript" src="scripts/selenium-version.js"></script>
|
39
|
-
<script language="JavaScript" type="text/javascript" src="xpath/util.js"></script>
|
40
|
-
<script language="JavaScript" type="text/javascript" src="xpath/xmltoken.js"></script>
|
41
|
-
<script language="JavaScript" type="text/javascript" src="xpath/dom.js"></script>
|
42
|
-
<script language="JavaScript" type="text/javascript" src="xpath/xpath.js"></script>
|
43
|
-
<script language="JavaScript" type="text/javascript" src="scripts/user-extensions.js"></script>
|
44
|
-
<script language="JavaScript" type="text/javascript">
|
45
|
-
function openDomViewer() {
|
46
|
-
var autFrame = document.getElementById('selenium_myiframe');
|
47
|
-
var autFrameDocument = getIframeDocument(autFrame);
|
48
|
-
var domViewer = window.open(getDocumentBase(document) + 'domviewer/domviewer.html');
|
49
|
-
domViewer.rootDocument = autFrameDocument;
|
50
|
-
return false;
|
51
|
-
}
|
52
|
-
|
53
|
-
function cleanUp() {
|
54
|
-
if (LOG != null) {
|
55
|
-
LOG.close();
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
</script>
|
60
|
-
</head>
|
61
|
-
|
62
|
-
<body onLoad="setTimeout(function(){runSeleniumTest();},1000)" onUnload="cleanUp()">
|
63
|
-
|
64
|
-
<table border="1" style="height: 100%; width: 100%;">
|
65
|
-
<tr>
|
66
|
-
<td width="50%">
|
67
|
-
<table>
|
68
|
-
<tr>
|
69
|
-
<td class="remoterunner">
|
70
|
-
<h4><a href="http://selenium.openqa.org">Selenium</a> Functional Testing for Web Apps</h4>
|
71
|
-
Open Source From <a href="http://selenium.openqa.org/thoughtworks-and-friends.html">ThoughtWorks and Friends</a>
|
72
|
-
<form action="">
|
73
|
-
<br/>
|
74
|
-
<iframe id="seleniumLoggingFrame" name="seleniumLoggingFrame" src="Blank.html" style="border: 0; height: 0; width: 0; "></iframe>
|
75
|
-
<fieldset>
|
76
|
-
<button type="button" id="domViewer1" onclick="openDomViewer();">
|
77
|
-
View DOM
|
78
|
-
</button>
|
79
|
-
<button type="button" onclick="LOG.show();">
|
80
|
-
Show Log
|
81
|
-
</button>
|
82
|
-
<label><INPUT TYPE="CHECKBOX" NAME="FASTMODE" VALUE="YES" onmouseup="slowClicked()"> Slow Mode</label>
|
83
|
-
</fieldset>
|
84
|
-
|
85
|
-
</form>
|
86
|
-
|
87
|
-
</td>
|
88
|
-
</tr>
|
89
|
-
</table>
|
90
|
-
<form action="">
|
91
|
-
<label id="context" name="context"></label>
|
92
|
-
</form>
|
93
|
-
</td>
|
94
|
-
<td width="50%" class="remoterunner">
|
95
|
-
<h4>Command History:</h4>
|
96
|
-
<form name="commands">
|
97
|
-
<textarea style="overflow:auto; height:8em; width:100%" wrap="off" id="commandList"></textarea>
|
98
|
-
</form>
|
99
|
-
</td>
|
100
|
-
</tr>
|
101
|
-
<tr>
|
102
|
-
<td colspan="2" height="100%">
|
103
|
-
<iframe name="selenium_myiframe" id="selenium_myiframe" src="Blank.html" height="100%" width="100%"></iframe>
|
104
|
-
</td>
|
105
|
-
</tr>
|
106
|
-
</table>
|
107
|
-
|
108
|
-
</body>
|
109
|
-
</html>
|
110
|
-
|
@@ -1,109 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
|
3
|
-
<head>
|
4
|
-
<title>Selenium Log Console</title>
|
5
|
-
<link id="cssLink" rel="stylesheet" href="selenium.css" />
|
6
|
-
<script src="scripts/htmlutils.js"></script>
|
7
|
-
<script language="JavaScript">
|
8
|
-
|
9
|
-
var disabled = true;
|
10
|
-
|
11
|
-
function logOnLoad() {
|
12
|
-
var urlConfig = new URLConfiguration();
|
13
|
-
urlConfig.queryString = window.location.search.substr(1);
|
14
|
-
var startingThreshold = urlConfig._getQueryParameter("startingThreshold");
|
15
|
-
setThresholdLevel(startingThreshold);
|
16
|
-
var buttons = document.getElementsByTagName("input");
|
17
|
-
for (var i = 0; i < buttons.length; i++) {
|
18
|
-
addChangeListener(buttons[i]);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
function enableButtons() {
|
23
|
-
var buttons = document.getElementsByTagName("input");
|
24
|
-
for (var i = 0; i < buttons.length; i++) {
|
25
|
-
buttons[i].disabled = false;
|
26
|
-
disabled = false;
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
function callBack() {}
|
31
|
-
|
32
|
-
function changeHandler() {
|
33
|
-
callBack(getThresholdLevel());
|
34
|
-
}
|
35
|
-
|
36
|
-
function addChangeListener(element) {
|
37
|
-
if (window.addEventListener && !window.opera)
|
38
|
-
element.addEventListener("click", changeHandler, true);
|
39
|
-
else if (window.attachEvent)
|
40
|
-
element.attachEvent("onclick", changeHandler);
|
41
|
-
}
|
42
|
-
|
43
|
-
var logLevels = {
|
44
|
-
debug: 0,
|
45
|
-
info: 1,
|
46
|
-
warn: 2,
|
47
|
-
error: 3
|
48
|
-
};
|
49
|
-
|
50
|
-
function getThresholdLevel() {
|
51
|
-
var buttons = document.getElementById('logLevelChooser').level;
|
52
|
-
for (var i = 0; i < buttons.length; i++) {
|
53
|
-
if (buttons[i].checked) {
|
54
|
-
return buttons[i].value;
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
58
|
-
|
59
|
-
function setThresholdLevel(logLevel) {
|
60
|
-
var buttons = document.getElementById('logLevelChooser').level;
|
61
|
-
for (var i = 0; i < buttons.length; i++) {
|
62
|
-
if (buttons[i].value==logLevel) {
|
63
|
-
buttons[i].checked = true;
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
buttons[i].checked = false;
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
function append(message, logLevel) {
|
72
|
-
var logLevelThreshold = getThresholdLevel();
|
73
|
-
if (logLevels[logLevel] < logLevels[logLevelThreshold]) {
|
74
|
-
return;
|
75
|
-
}
|
76
|
-
var log = document.getElementById('log');
|
77
|
-
var newEntry = document.createElement('li');
|
78
|
-
newEntry.className = logLevel;
|
79
|
-
newEntry.appendChild(document.createTextNode(message));
|
80
|
-
log.appendChild(newEntry);
|
81
|
-
if (newEntry.scrollIntoView) {
|
82
|
-
newEntry.scrollIntoView();
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
</script>
|
87
|
-
</head>
|
88
|
-
<body id="logging-console" onload="logOnLoad();">
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
<div id="banner">
|
93
|
-
<form id="logLevelChooser">
|
94
|
-
<input id="level-error" type="radio" name="level" disabled='true'
|
95
|
-
value="error" /><label for="level-error">Error</label>
|
96
|
-
<input id="level-warn" type="radio" name="level" disabled='true'
|
97
|
-
value="warn" /><label for="level-warn">Warn</label>
|
98
|
-
<input id="level-info" type="radio" name="level" disabled='true'
|
99
|
-
value="info" /><label for="level-info">Info</label>
|
100
|
-
<input id="level-debug" type="radio" name="level" checked="yes" disabled='true'
|
101
|
-
value="debug" /><label for="level-debug">Debug</label>
|
102
|
-
</form>
|
103
|
-
<h1>Selenium Log Console</h1>
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<ul id="log"></ul>
|
107
|
-
|
108
|
-
</body>
|
109
|
-
</html>
|