lacci 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +79 -0
- data/Rakefile +1 -4
- data/lib/lacci/scarpe_cli.rb +71 -0
- data/lib/lacci/scarpe_core.rb +22 -0
- data/lib/lacci/version.rb +13 -0
- data/lib/scarpe/niente/app.rb +23 -0
- data/lib/scarpe/niente/display_service.rb +62 -0
- data/lib/scarpe/niente/drawable.rb +57 -0
- data/lib/scarpe/niente/logger.rb +29 -0
- data/lib/scarpe/niente/shoes_spec.rb +87 -0
- data/lib/scarpe/niente.rb +20 -0
- data/lib/shoes/app.rb +165 -43
- data/lib/{scarpe → shoes}/background.rb +2 -2
- data/lib/{scarpe → shoes}/border.rb +2 -2
- data/lib/shoes/builtins.rb +63 -0
- data/lib/shoes/changelog.rb +52 -0
- data/lib/{scarpe → shoes}/colors.rb +3 -1
- data/lib/shoes/constants.rb +24 -3
- data/lib/{scarpe → shoes}/display_service.rb +45 -23
- data/lib/{scarpe → shoes}/download.rb +7 -7
- data/lib/shoes/drawable.rb +380 -0
- data/lib/shoes/drawables/arc.rb +49 -0
- data/lib/shoes/drawables/arrow.rb +41 -0
- data/lib/shoes/drawables/button.rb +73 -0
- data/lib/shoes/drawables/check.rb +29 -0
- data/lib/{scarpe → shoes/drawables}/document_root.rb +5 -5
- data/lib/{scarpe → shoes/drawables}/edit_box.rb +6 -6
- data/lib/{scarpe → shoes/drawables}/edit_line.rb +6 -6
- data/lib/shoes/drawables/flow.rb +22 -0
- data/lib/{scarpe → shoes/drawables}/image.rb +7 -13
- data/lib/shoes/drawables/line.rb +20 -0
- data/lib/shoes/drawables/link.rb +34 -0
- data/lib/shoes/drawables/list_box.rb +56 -0
- data/lib/shoes/drawables/para.rb +118 -0
- data/lib/shoes/drawables/progress.rb +14 -0
- data/lib/shoes/drawables/radio.rb +33 -0
- data/lib/shoes/drawables/rect.rb +17 -0
- data/lib/shoes/drawables/shape.rb +36 -0
- data/lib/shoes/drawables/slot.rb +87 -0
- data/lib/{scarpe → shoes/drawables}/span.rb +8 -7
- data/lib/{scarpe → shoes/drawables}/stack.rb +10 -4
- data/lib/shoes/drawables/star.rb +50 -0
- data/lib/shoes/drawables/subscription_item.rb +93 -0
- data/lib/shoes/drawables/text_drawable.rb +63 -0
- data/lib/shoes/drawables/video.rb +16 -0
- data/lib/shoes/drawables/widget.rb +69 -0
- data/lib/shoes/drawables.rb +31 -0
- data/lib/shoes/errors.rb +28 -0
- data/lib/shoes/log.rb +71 -0
- data/lib/shoes/ruby_extensions.rb +15 -0
- data/lib/shoes/spacing.rb +9 -0
- data/lib/shoes-spec.rb +93 -0
- data/lib/shoes.rb +93 -11
- metadata +67 -557
- data/.rubocop.yml +0 -85
- data/.ruby-version +0 -1
- data/.vscode/extensions.json +0 -5
- data/.yardopts +0 -12
- data/CHANGELOG.md +0 -19
- data/CODE_OF_CONDUCT.md +0 -84
- data/CONTRIBUTING.md +0 -20
- data/LICENSE.txt +0 -21
- data/README.md +0 -178
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/dev.yml +0 -7
- data/docs/static/PKGBUILD +0 -47
- data/docs/static/Shoes.icns +0 -0
- data/docs/static/avatar.png +0 -0
- data/docs/static/code_highlighter.js +0 -188
- data/docs/static/code_highlighter_ruby.js +0 -26
- data/docs/static/icon-debug.png +0 -0
- data/docs/static/icon-error.png +0 -0
- data/docs/static/icon-info.png +0 -0
- data/docs/static/icon-warn.png +0 -0
- data/docs/static/listbox_button1.png +0 -0
- data/docs/static/listbox_button2.png +0 -0
- data/docs/static/man-app.png +0 -0
- data/docs/static/man-builds.png +0 -0
- data/docs/static/man-builds1.png +0 -0
- data/docs/static/man-editor-notepad.png +0 -0
- data/docs/static/man-editor-osx.png +0 -0
- data/docs/static/man-ele-background.png +0 -0
- data/docs/static/man-ele-border.png +0 -0
- data/docs/static/man-ele-button.png +0 -0
- data/docs/static/man-ele-check.png +0 -0
- data/docs/static/man-ele-editbox.png +0 -0
- data/docs/static/man-ele-editline.png +0 -0
- data/docs/static/man-ele-image.png +0 -0
- data/docs/static/man-ele-listbox.png +0 -0
- data/docs/static/man-ele-progress.png +0 -0
- data/docs/static/man-ele-radio.png +0 -0
- data/docs/static/man-ele-shape.png +0 -0
- data/docs/static/man-ele-textblock.png +0 -0
- data/docs/static/man-ele-video.png +0 -0
- data/docs/static/man-intro-dmg.png +0 -0
- data/docs/static/man-intro-exe.png +0 -0
- data/docs/static/man-look-tiger.png +0 -0
- data/docs/static/man-look-ubuntu.png +0 -0
- data/docs/static/man-look-vista.png +0 -0
- data/docs/static/man-run-osx.png +0 -0
- data/docs/static/man-run-vista.png +0 -0
- data/docs/static/man-run-xp.png +0 -0
- data/docs/static/man-shot1.png +0 -0
- data/docs/static/manual-en.txt +0 -3529
- data/docs/static/manual-ja.txt +0 -2829
- data/docs/static/manual.css +0 -171
- data/docs/static/manual.md +0 -3528
- data/docs/static/menu-corner1.png +0 -0
- data/docs/static/menu-corner2.png +0 -0
- data/docs/static/menu-gray.png +0 -0
- data/docs/static/menu-left.png +0 -0
- data/docs/static/menu-right.png +0 -0
- data/docs/static/menu-top.png +0 -0
- data/docs/static/shoes-dmg.jpg +0 -0
- data/docs/static/shoes-icon-blue.png +0 -0
- data/docs/static/shoes-icon.png +0 -0
- data/docs/static/shoes-manual-apps.gif +0 -0
- data/docs/static/shoes_main_window.png +0 -0
- data/docs/static/stripe.png +0 -0
- data/docs/static/stubs/blank.exe +0 -0
- data/docs/static/stubs/blank.hfz +0 -0
- data/docs/static/stubs/blank.run +0 -375
- data/docs/static/stubs/cocoa-install +0 -0
- data/docs/static/stubs/sh-install +0 -49
- data/docs/static/stubs/shoes-stub-inject.exe +0 -0
- data/docs/static/stubs/shoes-stub.exe +0 -0
- data/docs/static/tutor-back.png +0 -0
- data/docs/yard/catscradle.md +0 -44
- data/docs/yard/template/default/fulldoc/html/setup.rb +0 -13
- data/docs/yard/template/default/layout/html/setup.rb +0 -9
- data/examples/backdround_with_image.rb +0 -16
- data/examples/bloopsaphone/working/1901_by_Aanand_Prasad.rb +0 -478
- data/examples/bloopsaphone/working/b1.rb +0 -64
- data/examples/bloopsaphone/working/b2.rb +0 -36
- data/examples/bloopsaphone/working/bloops_test.rb +0 -41
- data/examples/bloopsaphone/working/bloopsaphone_theme_song_by_why.rb +0 -31
- data/examples/bloopsaphone/working/feepogram.rb +0 -67
- data/examples/bloopsaphone/working/simpsons_theme_song_by_why.rb +0 -14
- data/examples/bloopsaphone/working/tune_cheeky_drat.rb +0 -210
- data/examples/button.rb +0 -10
- data/examples/button_alert.rb +0 -6
- data/examples/button_go_away.rb +0 -6
- data/examples/button_with_position_and_size.rb +0 -7
- data/examples/coffee.rb +0 -14
- data/examples/download.rb +0 -5
- data/examples/download_and_show_image.rb +0 -28
- data/examples/edit_box.rb +0 -8
- data/examples/edit_line.rb +0 -8
- data/examples/fill.rb +0 -25
- data/examples/flow.rb +0 -11
- data/examples/fonts.rb +0 -6
- data/examples/gen.rb +0 -140
- data/examples/get_headers.rb +0 -10
- data/examples/hello_world.rb +0 -3
- data/examples/highlander.rb +0 -87
- data/examples/image/clickable_image.rb +0 -5
- data/examples/image/image.rb +0 -3
- data/examples/image/image_size.rb +0 -7
- data/examples/image/image_with_position_and_size.rb +0 -3
- data/examples/info.rb +0 -9
- data/examples/legacy/not_checked/expert/colours.rb +0 -105
- data/examples/legacy/not_checked/expert/curve-animation.rb +0 -31
- data/examples/legacy/not_checked/expert/curve-control-point.rb +0 -51
- data/examples/legacy/not_checked/expert/custom-list-box.rb +0 -53
- data/examples/legacy/not_checked/expert/definr.rb +0 -23
- data/examples/legacy/not_checked/expert/funnies.rb +0 -56
- data/examples/legacy/not_checked/expert/minesweeper.rb +0 -267
- data/examples/legacy/not_checked/expert/othello.rb +0 -318
- data/examples/legacy/not_checked/expert/pong.rb +0 -62
- data/examples/legacy/not_checked/expert/tankspank.rb +0 -385
- data/examples/legacy/not_checked/expert/tooltips.rb +0 -45
- data/examples/legacy/not_checked/expert/url.rb +0 -37
- data/examples/legacy/not_checked/expert/video-player.rb +0 -256
- data/examples/legacy/not_checked/good/_why-stories.rb +0 -44
- data/examples/legacy/not_checked/good/_why-stories.yaml +0 -387
- data/examples/legacy/not_checked/good/arc.rb +0 -37
- data/examples/legacy/not_checked/good/cardflip.rb +0 -141
- data/examples/legacy/not_checked/good/clock.rb +0 -51
- data/examples/legacy/not_checked/good/console.rb +0 -21
- data/examples/legacy/not_checked/good/follow.rb +0 -26
- data/examples/legacy/not_checked/good/image-rotate.rb +0 -14
- data/examples/legacy/not_checked/good/paris.svg +0 -7236
- data/examples/legacy/not_checked/good/path-animation.rb +0 -46
- data/examples/legacy/not_checked/good/plots.rb +0 -100
- data/examples/legacy/not_checked/good/reminder.rb +0 -174
- data/examples/legacy/not_checked/good/svgview.rb +0 -113
- data/examples/legacy/not_checked/good/vjot.rb +0 -56
- data/examples/legacy/not_checked/shoes-contrib/.gitignore +0 -2
- data/examples/legacy/not_checked/shoes-contrib/README.md +0 -34
- data/examples/legacy/not_checked/shoes-contrib/animation/animate-ovals.rb +0 -21
- data/examples/legacy/not_checked/shoes-contrib/animation/flowers.rb +0 -59
- data/examples/legacy/not_checked/shoes-contrib/animation/happy-trails.rb +0 -31
- data/examples/legacy/not_checked/shoes-contrib/animation/mice-satellites.rb +0 -27
- data/examples/legacy/not_checked/shoes-contrib/animation/oval-motion.rb +0 -12
- data/examples/legacy/not_checked/shoes-contrib/animation/pink-bubbles.rb +0 -34
- data/examples/legacy/not_checked/shoes-contrib/animation/pulsate.rb +0 -18
- data/examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb +0 -18
- data/examples/legacy/not_checked/shoes-contrib/app/download-and-save.rb +0 -11
- data/examples/legacy/not_checked/shoes-contrib/app/download.rb +0 -10
- data/examples/legacy/not_checked/shoes-contrib/app/get-google.rb +0 -11
- data/examples/legacy/not_checked/shoes-contrib/app/mouse-detection.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/app/resizeable-false.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/art/bubble-bullseye.rb +0 -23
- data/examples/legacy/not_checked/shoes-contrib/art/faded.rb +0 -17
- data/examples/legacy/not_checked/shoes-contrib/art/fill-oval.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/art/mask.rb +0 -15
- data/examples/legacy/not_checked/shoes-contrib/art/oval-gradient.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/art/star-gradient.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-edit-box.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-new-window.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-image.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-shape.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/basic/class-book.rb +0 -43
- data/examples/legacy/not_checked/shoes-contrib/basic/class-book.yaml +0 -387
- data/examples/legacy/not_checked/shoes-contrib/basic/clock.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/basic/edit-stack +0 -14
- data/examples/legacy/not_checked/shoes-contrib/basic/gradient-shoes.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb +0 -19
- data/examples/legacy/not_checked/shoes-contrib/basic/rect-arrow.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/basic/scribble.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/basic/search.rb +0 -32
- data/examples/legacy/not_checked/shoes-contrib/basic/shoes-notes.rb +0 -16
- data/examples/legacy/not_checked/shoes-contrib/basic/url-shoes-subclassing.rb +0 -24
- data/examples/legacy/not_checked/shoes-contrib/browser.rb +0 -21
- data/examples/legacy/not_checked/shoes-contrib/elements/background-column.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/elements/background.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/elements/basic-fps.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/elements/border-cat.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/elements/button-block.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/elements/check-mate.rb +0 -15
- data/examples/legacy/not_checked/shoes-contrib/elements/common-styles.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/elements/edit_box-character-count.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/elements/edit_line-character-count.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/elements/image-icon.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/elements/list_box.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/elements/phat-button.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/elements/popup.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/elements/progress-bar.rb +0 -10
- data/examples/legacy/not_checked/shoes-contrib/elements/radio-dreamcast-favs.rb +0 -17
- data/examples/legacy/not_checked/shoes-contrib/elements/timer.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/elements/width-introspec.rb +0 -8
- data/examples/legacy/not_checked/shoes-contrib/events/background-hover.rb +0 -11
- data/examples/legacy/not_checked/shoes-contrib/events/motion-detect.rb +0 -9
- data/examples/legacy/not_checked/shoes-contrib/events/pressed-key.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-funnies.rb +0 -51
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-irb.rb +0 -112
- data/examples/legacy/not_checked/shoes-contrib/expert/expert-othello.rb +0 -319
- data/examples/legacy/not_checked/shoes-contrib/good/good-arc.rb +0 -37
- data/examples/legacy/not_checked/shoes-contrib/good/good-clock.rb +0 -51
- data/examples/legacy/not_checked/shoes-contrib/good/good-follow.rb +0 -26
- data/examples/legacy/not_checked/shoes-contrib/good/good-reminder.rb +0 -174
- data/examples/legacy/not_checked/shoes-contrib/good/good-vjot.rb +0 -56
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_color.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_open_file.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/kernel/ask_save_file.rb +0 -7
- data/examples/legacy/not_checked/shoes-contrib/kernel/confirm.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/kernel/debug.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/kernel/exit.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/kernel/font.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/kernel/fonts.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/manipulation/append-slot.rb +0 -9
- data/examples/legacy/not_checked/shoes-contrib/manipulation/clear-slot.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/manipulation/prepend-slot.rb +0 -6
- data/examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb +0 -17
- data/examples/legacy/not_checked/shoes-contrib/position/gutter-margin.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/position/stack-width.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-accordion.rb +0 -75
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-shapes.rb +0 -17
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-text.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb +0 -23
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-bounce.rb +0 -24
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-calc.rb +0 -70
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-chipmunk.rb +0 -26
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-control-sizes.rb +0 -24
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-curve.rb +0 -26
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb +0 -29
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-downloader.rb +0 -27
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-draw.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-editor.rb +0 -28
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.rb +0 -28
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.shy +0 -0
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-mask.rb +0 -21
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu.rb +0 -31
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu1.rb +0 -35
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-rubygems.rb +0 -29
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-slide.rb +0 -45
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-sphere.rb +0 -28
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-sqlite3.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-timer.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/simple/simple-video.rb +0 -13
- data/examples/legacy/not_checked/shoes-contrib/styles/alignment.rb +0 -4
- data/examples/legacy/not_checked/shoes-contrib/styles/attachment.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/styles/emphasis.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/styles/gradient-angle.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/styles/para-methods.rb +0 -5
- data/examples/legacy/not_checked/shoes-contrib/styles/para-red-underlined.rb +0 -3
- data/examples/legacy/not_checked/shoes-contrib/styles/para-style-method.rb +0 -4
- data/examples/legacy/not_checked/shoes-dep-samples/expert-game-of-life.rb +0 -243
- data/examples/legacy/not_checked/shoes-dep-samples/expert-othello.rb +0 -319
- data/examples/legacy/not_checked/shoes-dep-samples/good-clock.rb +0 -51
- data/examples/legacy/not_checked/shoes-dep-samples/good-follow.rb +0 -26
- data/examples/legacy/not_checked/shoes-dep-samples/good-reminder.rb +0 -174
- data/examples/legacy/not_checked/shoes-dep-samples/good-vjot.rb +0 -56
- data/examples/legacy/not_checked/shoes-dep-samples/simple-accordion.rb +0 -75
- data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-shapes.rb +0 -17
- data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-text.rb +0 -13
- data/examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb +0 -23
- data/examples/legacy/not_checked/shoes-dep-samples/simple-bounce.rb +0 -24
- data/examples/legacy/not_checked/shoes-dep-samples/simple-calc.rb +0 -70
- data/examples/legacy/not_checked/shoes-dep-samples/simple-chipmunk.rb +0 -26
- data/examples/legacy/not_checked/shoes-dep-samples/simple-control-sizes.rb +0 -24
- data/examples/legacy/not_checked/shoes-dep-samples/simple-curve.rb +0 -26
- data/examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb +0 -29
- data/examples/legacy/not_checked/shoes-dep-samples/simple-draw.rb +0 -13
- data/examples/legacy/not_checked/shoes-dep-samples/simple-editor.rb +0 -28
- data/examples/legacy/not_checked/shoes-dep-samples/simple-form.rb +0 -28
- data/examples/legacy/not_checked/shoes-dep-samples/simple-form.shy +0 -0
- data/examples/legacy/not_checked/shoes-dep-samples/simple-mask.rb +0 -21
- data/examples/legacy/not_checked/shoes-dep-samples/simple-menu.rb +0 -31
- data/examples/legacy/not_checked/shoes-dep-samples/simple-menu1.rb +0 -35
- data/examples/legacy/not_checked/shoes-dep-samples/simple-rubygems.rb +0 -29
- data/examples/legacy/not_checked/shoes-dep-samples/simple-slide.rb +0 -45
- data/examples/legacy/not_checked/shoes-dep-samples/simple-sphere.rb +0 -28
- data/examples/legacy/not_checked/shoes-dep-samples/simple-sqlite3.rb +0 -13
- data/examples/legacy/not_checked/shoes-dep-samples/simple-timer.rb +0 -13
- data/examples/legacy/not_checked/shoes-dep-samples/simple-video.rb +0 -13
- data/examples/legacy/not_checked/shoes3-tests/AnemicCinema1926marcelDuchampCut.mp4 +0 -0
- data/examples/legacy/not_checked/shoes3-tests/button/button.rb +0 -53
- data/examples/legacy/not_checked/shoes3-tests/cache/cache.rb +0 -41
- data/examples/legacy/not_checked/shoes3-tests/combo/combo.rb +0 -24
- data/examples/legacy/not_checked/shoes3-tests/curl/bare.rb +0 -34
- data/examples/legacy/not_checked/shoes3-tests/curl/downloader.rb +0 -40
- data/examples/legacy/not_checked/shoes3-tests/curl/m1.rb +0 -11
- data/examples/legacy/not_checked/shoes3-tests/curl/m2.rb +0 -12
- data/examples/legacy/not_checked/shoes3-tests/curl/m3.rb +0 -11
- data/examples/legacy/not_checked/shoes3-tests/curl/m4.rb +0 -5
- data/examples/legacy/not_checked/shoes3-tests/curl/typ.rb +0 -30
- data/examples/legacy/not_checked/shoes3-tests/cursor/c1.rb +0 -21
- data/examples/legacy/not_checked/shoes3-tests/decoration.rb +0 -14
- data/examples/legacy/not_checked/shoes3-tests/dialogs/ask.rb +0 -6
- data/examples/legacy/not_checked/shoes3-tests/dialogs/confirm.rb +0 -6
- data/examples/legacy/not_checked/shoes3-tests/editbox/editbox.rb +0 -36
- data/examples/legacy/not_checked/shoes3-tests/editline/editline.rb +0 -27
- data/examples/legacy/not_checked/shoes3-tests/events/button.rb +0 -32
- data/examples/legacy/not_checked/shoes3-tests/events/button.yaml +0 -40
- data/examples/legacy/not_checked/shoes3-tests/events/capture.rb +0 -57
- data/examples/legacy/not_checked/shoes3-tests/events/chipmunk.yaml +0 -47
- data/examples/legacy/not_checked/shoes3-tests/events/event0.rb +0 -8
- data/examples/legacy/not_checked/shoes3-tests/events/event1.rb +0 -51
- data/examples/legacy/not_checked/shoes3-tests/events/event1.yaml +0 -26
- data/examples/legacy/not_checked/shoes3-tests/events/event2.rb +0 -46
- data/examples/legacy/not_checked/shoes3-tests/events/event3.rb +0 -44
- data/examples/legacy/not_checked/shoes3-tests/events/event4.rb +0 -65
- data/examples/legacy/not_checked/shoes3-tests/events/event5.rb +0 -17
- data/examples/legacy/not_checked/shoes3-tests/events/event6.rb +0 -51
- data/examples/legacy/not_checked/shoes3-tests/events/replay.rb +0 -60
- data/examples/legacy/not_checked/shoes3-tests/gapp/fullscreen.rb +0 -38
- data/examples/legacy/not_checked/shoes3-tests/gapp/icon.rb +0 -56
- data/examples/legacy/not_checked/shoes3-tests/gapp/mon1.rb +0 -46
- data/examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb +0 -22
- data/examples/legacy/not_checked/shoes3-tests/gapp/title1.rb +0 -34
- data/examples/legacy/not_checked/shoes3-tests/indian.m4a +0 -0
- data/examples/legacy/not_checked/shoes3-tests/menus/event.rb +0 -33
- data/examples/legacy/not_checked/shoes3-tests/menus/menu1.rb +0 -8
- data/examples/legacy/not_checked/shoes3-tests/menus/menu2.rb +0 -25
- data/examples/legacy/not_checked/shoes3-tests/menus/menu3.rb +0 -103
- data/examples/legacy/not_checked/shoes3-tests/menus/menu4.rb +0 -41
- data/examples/legacy/not_checked/shoes3-tests/menus/tests.txt +0 -42
- data/examples/legacy/not_checked/shoes3-tests/opacity.rb +0 -13
- data/examples/legacy/not_checked/shoes3-tests/plot/^IRX.R +0 -5219
- data/examples/legacy/not_checked/shoes3-tests/plot/^SPX +0 -5219
- data/examples/legacy/not_checked/shoes3-tests/plot/cstest.rb +0 -51
- data/examples/legacy/not_checked/shoes3-tests/plot/gr1.rb +0 -73
- data/examples/legacy/not_checked/shoes3-tests/plot/gr2.rb +0 -40
- data/examples/legacy/not_checked/shoes3-tests/plot/gr3.rb +0 -47
- data/examples/legacy/not_checked/shoes3-tests/plot/gr4.rb +0 -35
- data/examples/legacy/not_checked/shoes3-tests/plot/gr5.rb +0 -31
- data/examples/legacy/not_checked/shoes3-tests/plot/gr6.rb +0 -35
- data/examples/legacy/not_checked/shoes3-tests/plot/gr7.rb +0 -37
- data/examples/legacy/not_checked/shoes3-tests/plot/grcsv.rb +0 -219
- data/examples/legacy/not_checked/shoes3-tests/plot/manual.rb +0 -40
- data/examples/legacy/not_checked/shoes3-tests/progress/progress.rb +0 -29
- data/examples/legacy/not_checked/shoes3-tests/radio/clear.rb +0 -20
- data/examples/legacy/not_checked/shoes3-tests/radio/group.rb +0 -18
- data/examples/legacy/not_checked/shoes3-tests/radio/multiple.rb +0 -32
- data/examples/legacy/not_checked/shoes3-tests/radio/nogroup.rb +0 -9
- data/examples/legacy/not_checked/shoes3-tests/simpletest.svg +0 -14
- data/examples/legacy/not_checked/shoes3-tests/spinner.rb +0 -15
- data/examples/legacy/not_checked/shoes3-tests/svg.rb +0 -208
- data/examples/legacy/not_checked/shoes3-tests/switch/switch.rb +0 -28
- data/examples/legacy/not_checked/shoes3-tests/systray/back.rb +0 -20
- data/examples/legacy/not_checked/shoes3-tests/systray/note.rb +0 -17
- data/examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb +0 -27
- data/examples/legacy/not_checked/shoes3-tests/terminal/ed.rb +0 -65
- data/examples/legacy/not_checked/shoes3-tests/terminal/el.rb +0 -50
- data/examples/legacy/not_checked/shoes3-tests/terminal/logattr.rb +0 -31
- data/examples/legacy/not_checked/shoes3-tests/tests_color.rb +0 -138
- data/examples/legacy/not_checked/shoes3-tests/tests_svg.rb +0 -228
- data/examples/legacy/not_checked/shoes3-tests/tests_video_vlc.rb +0 -186
- data/examples/legacy/not_checked/shoes3-tests/tooltips.rb +0 -20
- data/examples/legacy/not_checked/shoes3-tests/video_vlc.rb +0 -242
- data/examples/legacy/not_checked/shoes3-tests/wheel/wheel1.rb +0 -21
- data/examples/legacy/not_checked/simple/accordion.rb +0 -81
- data/examples/legacy/not_checked/simple/anim-shapes.rb +0 -17
- data/examples/legacy/not_checked/simple/anim-text.rb +0 -13
- data/examples/legacy/not_checked/simple/arc.rb +0 -23
- data/examples/legacy/not_checked/simple/bounce.rb +0 -24
- data/examples/legacy/not_checked/simple/chipmunk.rb +0 -26
- data/examples/legacy/not_checked/simple/control-sizes.rb +0 -24
- data/examples/legacy/not_checked/simple/curve-control-points.rb +0 -24
- data/examples/legacy/not_checked/simple/curve.rb +0 -26
- data/examples/legacy/not_checked/simple/dialogs.rb +0 -29
- data/examples/legacy/not_checked/simple/downloader.rb +0 -40
- data/examples/legacy/not_checked/simple/downloader1.rb +0 -31
- data/examples/legacy/not_checked/simple/draw.rb +0 -13
- data/examples/legacy/not_checked/simple/editor.rb +0 -28
- data/examples/legacy/not_checked/simple/form.rb +0 -30
- data/examples/legacy/not_checked/simple/image.rb +0 -21
- data/examples/legacy/not_checked/simple/info.rb +0 -78
- data/examples/legacy/not_checked/simple/mask.rb +0 -21
- data/examples/legacy/not_checked/simple/mask2.rb +0 -27
- data/examples/legacy/not_checked/simple/menu.rb +0 -31
- data/examples/legacy/not_checked/simple/menu1.rb +0 -35
- data/examples/legacy/not_checked/simple/slide.rb +0 -45
- data/examples/legacy/not_checked/simple/sphere.rb +0 -28
- data/examples/legacy/not_checked/superleg.rb +0 -244
- data/examples/legacy/working/shoes-contrib/basic/a-poem.rb +0 -24
- data/examples/legacy/working/shoes-contrib/basic/basic-blocks-instances.rb +0 -7
- data/examples/legacy/working/shoes-contrib/basic/basic-blocks.rb +0 -7
- data/examples/legacy/working/shoes-contrib/basic/basic-slot.rb +0 -8
- data/examples/legacy/working/shoes-contrib/basic/intro.rb +0 -20
- data/examples/legacy/working/shoes-contrib/basic/two-column.rb +0 -12
- data/examples/legacy/working/shoes-contrib/elements/edit_box.rb +0 -6
- data/examples/legacy/working/shoes-contrib/kernel/alert.rb +0 -3
- data/examples/legacy/working/simple/calc.rb +0 -71
- data/examples/legacy/working/simple/sqlite3.rb +0 -27
- data/examples/legacy/working/simple/timer.rb +0 -13
- data/examples/line.rb +0 -5
- data/examples/link.rb +0 -20
- data/examples/list_box.rb +0 -8
- data/examples/local_fonts.rb +0 -4
- data/examples/local_images.rb +0 -4
- data/examples/motion_events.rb +0 -20
- data/examples/para/collection_of_arguments.rb +0 -9
- data/examples/para/hello_world.rb +0 -5
- data/examples/para/hide_and_show.rb +0 -9
- data/examples/para/rainbow.rb +0 -11
- data/examples/para/rainbow_2.rb +0 -11
- data/examples/para/sizes.rb +0 -11
- data/examples/para/sizes_2.rb +0 -12
- data/examples/para/strong.rb +0 -3
- data/examples/para_text_widgets.rb +0 -4
- data/examples/parse_xl_funnies.rb +0 -58
- data/examples/pirate.png +0 -0
- data/examples/raw_flow.rb +0 -11
- data/examples/ruby_racer.rb +0 -50
- data/examples/selfitude.rb +0 -18
- data/examples/shapes/arc.rb +0 -8
- data/examples/shapes/shapes.rb +0 -8
- data/examples/shapes/shapes_fill.rb +0 -10
- data/examples/shapes/star.rb +0 -5
- data/examples/shoes_school.rb +0 -66
- data/examples/shoes_splorer.rb +0 -150
- data/examples/simple_slides.rb +0 -73
- data/examples/skip_ci/parrot.rb +0 -22
- data/examples/skip_ci/say.rb +0 -20
- data/examples/sleepless.rb +0 -26
- data/examples/slots.rb +0 -10
- data/examples/spacing.rb +0 -18
- data/examples/span.rb +0 -6
- data/examples/stack/background.rb +0 -35
- data/examples/stack/border.rb +0 -11
- data/examples/stack/gradients.rb +0 -6
- data/examples/stack/raw_stack.rb +0 -8
- data/examples/stack/stack.rb +0 -27
- data/examples/text_change.rb +0 -4
- data/examples/text_sizes.rb +0 -10
- data/examples/timmy.rb +0 -109
- data/examples/title_and_resize.rb +0 -3
- data/examples/video.rb +0 -10
- data/exe/scarpe +0 -107
- data/fonts/Pacifico.ttf +0 -0
- data/lib/scarpe/alert.rb +0 -19
- data/lib/scarpe/arc.rb +0 -49
- data/lib/scarpe/base64.rb +0 -27
- data/lib/scarpe/button.rb +0 -35
- data/lib/scarpe/cats_cradle.rb +0 -255
- data/lib/scarpe/fill.rb +0 -23
- data/lib/scarpe/flow.rb +0 -18
- data/lib/scarpe/font.rb +0 -14
- data/lib/scarpe/glibui/README.md +0 -34
- data/lib/scarpe/glibui/alert.rb +0 -65
- data/lib/scarpe/glibui/app.rb +0 -27
- data/lib/scarpe/glibui/background.rb +0 -18
- data/lib/scarpe/glibui/border.rb +0 -22
- data/lib/scarpe/glibui/button.rb +0 -38
- data/lib/scarpe/glibui/dimensions.rb +0 -22
- data/lib/scarpe/glibui/document_root.rb +0 -33
- data/lib/scarpe/glibui/edit_box.rb +0 -44
- data/lib/scarpe/glibui/edit_line.rb +0 -43
- data/lib/scarpe/glibui/flow.rb +0 -33
- data/lib/scarpe/glibui/html.rb +0 -77
- data/lib/scarpe/glibui/image.rb +0 -36
- data/lib/scarpe/glibui/link.rb +0 -29
- data/lib/scarpe/glibui/local_display.rb +0 -62
- data/lib/scarpe/glibui/para.rb +0 -84
- data/lib/scarpe/glibui/spacing.rb +0 -41
- data/lib/scarpe/glibui/stack.rb +0 -33
- data/lib/scarpe/glibui/text_widget.rb +0 -30
- data/lib/scarpe/glibui/widget.rb +0 -81
- data/lib/scarpe/glibui.rb +0 -29
- data/lib/scarpe/libui/alert.rb +0 -9
- data/lib/scarpe/libui/button.rb +0 -18
- data/lib/scarpe/libui/colors.rb +0 -157
- data/lib/scarpe/libui/core.rb +0 -66
- data/lib/scarpe/libui/flow.rb +0 -16
- data/lib/scarpe/libui/libui.rb +0 -45
- data/lib/scarpe/libui/notepad.md +0 -26
- data/lib/scarpe/libui/para.rb +0 -154
- data/lib/scarpe/libui/stack.rb +0 -34
- data/lib/scarpe/line.rb +0 -25
- data/lib/scarpe/link.rb +0 -25
- data/lib/scarpe/list_box.rb +0 -25
- data/lib/scarpe/logger.rb +0 -159
- data/lib/scarpe/para.rb +0 -92
- data/lib/scarpe/promises.rb +0 -405
- data/lib/scarpe/shape.rb +0 -20
- data/lib/scarpe/slot.rb +0 -7
- data/lib/scarpe/spacing.rb +0 -9
- data/lib/scarpe/star.rb +0 -47
- data/lib/scarpe/subscription_item.rb +0 -60
- data/lib/scarpe/unit_test_helpers.rb +0 -236
- data/lib/scarpe/version.rb +0 -5
- data/lib/scarpe/video.rb +0 -15
- data/lib/scarpe/widgets.rb +0 -35
- data/lib/scarpe/wv/alert.rb +0 -65
- data/lib/scarpe/wv/app.rb +0 -104
- data/lib/scarpe/wv/arc.rb +0 -57
- data/lib/scarpe/wv/background.rb +0 -27
- data/lib/scarpe/wv/border.rb +0 -24
- data/lib/scarpe/wv/button.rb +0 -50
- data/lib/scarpe/wv/control_interface.rb +0 -147
- data/lib/scarpe/wv/control_interface_test.rb +0 -234
- data/lib/scarpe/wv/dimensions.rb +0 -22
- data/lib/scarpe/wv/document_root.rb +0 -8
- data/lib/scarpe/wv/edit_box.rb +0 -44
- data/lib/scarpe/wv/edit_line.rb +0 -43
- data/lib/scarpe/wv/fill.rb +0 -30
- data/lib/scarpe/wv/flow.rb +0 -24
- data/lib/scarpe/wv/font.rb +0 -36
- data/lib/scarpe/wv/html.rb +0 -108
- data/lib/scarpe/wv/image.rb +0 -41
- data/lib/scarpe/wv/line.rb +0 -38
- data/lib/scarpe/wv/link.rb +0 -29
- data/lib/scarpe/wv/list_box.rb +0 -50
- data/lib/scarpe/wv/para.rb +0 -90
- data/lib/scarpe/wv/shape.rb +0 -35
- data/lib/scarpe/wv/shape_helper.rb +0 -44
- data/lib/scarpe/wv/slot.rb +0 -81
- data/lib/scarpe/wv/spacing.rb +0 -41
- data/lib/scarpe/wv/span.rb +0 -66
- data/lib/scarpe/wv/stack.rb +0 -24
- data/lib/scarpe/wv/star.rb +0 -64
- data/lib/scarpe/wv/subscription_item.rb +0 -50
- data/lib/scarpe/wv/text_widget.rb +0 -30
- data/lib/scarpe/wv/video.rb +0 -42
- data/lib/scarpe/wv/web_wrangler.rb +0 -683
- data/lib/scarpe/wv/webview_local_display.rb +0 -73
- data/lib/scarpe/wv/webview_relay_display.rb +0 -185
- data/lib/scarpe/wv/widget.rb +0 -185
- data/lib/scarpe/wv/wv_display_worker.rb +0 -65
- data/lib/scarpe/wv.rb +0 -43
- data/lib/scarpe/wv_local.rb +0 -6
- data/lib/scarpe/wv_relay.rb +0 -6
- data/lib/scarpe.rb +0 -29
- data/lib/shoes/text_widget.rb +0 -52
- data/lib/shoes/widget.rb +0 -209
- data/logger/debug_web_wrangler.json +0 -4
- data/logger/scarpe_wv_test.json +0 -4
- data/scarpe-0.2.0.gem +0 -0
- data/scarpe.gemspec +0 -44
- data/scarpegen.rb +0 -193
- data/sig/scarpe.rbs +0 -4
- data/templates/basic_class_template.erb +0 -38
- data/templates/class_template_with_event_bind.erb +0 -27
- data/templates/class_template_with_shapes.erb +0 -43
- data/templates/example_template.erb +0 -3
- data/templates/module_template.erb +0 -12
- data/templates/webview_template.erb +0 -27
@@ -1,228 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
require 'test/unit'
|
4
|
-
require 'test/unit/ui/console/testrunner'
|
5
|
-
require 'svg.rb'
|
6
|
-
|
7
|
-
|
8
|
-
Shoes.app title: "Testing Shoes::Svg", resizable: false do
|
9
|
-
|
10
|
-
TestRunner = Test::Unit::UI::Console::TestRunner
|
11
|
-
|
12
|
-
# width, height : 190x110, subid = '#xml_rectangle', 180x100, offsetx = 5, offsety = 5
|
13
|
-
XML = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
14
|
-
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg2" viewBox="0 0 190 110" height="110" width="190">
|
15
|
-
<defs id="defs4" />
|
16
|
-
<metadata id="metadata7">
|
17
|
-
<rdf:RDF>
|
18
|
-
<cc:Work rdf:about="">
|
19
|
-
<dc:format>image/svg+xml</dc:format>
|
20
|
-
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
21
|
-
<dc:title></dc:title>
|
22
|
-
</cc:Work>
|
23
|
-
</rdf:RDF>
|
24
|
-
</metadata>
|
25
|
-
<g transform="translate(0,-942.36216)" id="xml_rectangle">
|
26
|
-
<rect y="949.33234" x="6.9701514" height="96.0597" width="176.05969" id="rectangle001" style="opacity:0.98000004;fill:#ff7131;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3.94030356;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
|
27
|
-
</g>
|
28
|
-
</svg>'
|
29
|
-
|
30
|
-
# width, height : 1000x600, subid = '#test_rectangle', 980x550, offsetx = 5, offsety = 45
|
31
|
-
FILE = "simpletest.svg"
|
32
|
-
|
33
|
-
TESTS = {
|
34
|
-
SvgTest0 => { desc: ["Basic Test : simple xml svg, no dimensions\n"],
|
35
|
-
cont_args: {},
|
36
|
-
widget_args: [XML]
|
37
|
-
},
|
38
|
-
SvgTest1 => { desc: ["Basic Test : file svg, no dimensions\n",
|
39
|
-
"Relying on Shoes app size and svg size (svg is larger than app here)\n",
|
40
|
-
"So keep 'resizable: false' for the app style !"],
|
41
|
-
cont_args: {},
|
42
|
-
widget_args: [FILE]
|
43
|
-
},
|
44
|
-
SvgTest2 => { desc: ["Simple xml svg, parent dimensions\n"],
|
45
|
-
cont_args: {width: 30, height: 20},
|
46
|
-
widget_args: [XML]
|
47
|
-
},
|
48
|
-
SvgTest3 => { desc: ["Simple xml svg, svg method dimensions\n"],
|
49
|
-
cont_args: {},
|
50
|
-
widget_args: [XML, width: 30, height: 20]
|
51
|
-
},
|
52
|
-
SvgTest4 => { desc: ["Simple xml svg, parent and svg method dimensions\n"],
|
53
|
-
cont_args: {width: 30, height: 25},
|
54
|
-
widget_args: [XML, width: 25, height: 20]
|
55
|
-
},
|
56
|
-
SvgTest5 => { desc: ["Xml svg, Landscape, aspect ratio = false\n"],
|
57
|
-
cont_args: {},
|
58
|
-
widget_args: [XML, width: 48, height: 32, aspect: false]
|
59
|
-
},
|
60
|
-
SvgTest5B => { desc: ["Xml svg, Landscape, aspect ratio = 0.5\n"],
|
61
|
-
cont_args: {},
|
62
|
-
widget_args: [XML, width: 48, height: 32, aspect: 0.5]
|
63
|
-
},
|
64
|
-
SvgTest5C => { desc: ["Xml svg, Landscape, aspect ratio = 1.5\n"],
|
65
|
-
cont_args: {},
|
66
|
-
widget_args: [XML, width: 48, height: 32, aspect: 1.5]
|
67
|
-
},
|
68
|
-
SvgTest6 => { desc: ["Xml svg, Square, aspect ratio = 0.5\n"],
|
69
|
-
cont_args: {},
|
70
|
-
widget_args: [XML, width: 48, height: 48, aspect: 0.5]
|
71
|
-
},
|
72
|
-
SvgTest7 => { desc: ["Xml svg, Square, aspect ratio = 1.5\n"],
|
73
|
-
cont_args: {},
|
74
|
-
widget_args: [XML, width: 48, height: 48, aspect: 1.5]
|
75
|
-
},
|
76
|
-
SvgTest8 => { desc: ["Xml, group id\n"],
|
77
|
-
cont_args: {},
|
78
|
-
widget_args: [XML, group: "#xml_rectangle"]
|
79
|
-
},
|
80
|
-
SvgTest9 => { desc: ["File, group id\n"],
|
81
|
-
cont_args: {},
|
82
|
-
widget_args: [FILE, group: "#test_rectangle"]
|
83
|
-
},
|
84
|
-
SvgTest10 => { desc: ["Xml svg, Portrait, aspect ratio = true\n"],
|
85
|
-
cont_args: {},
|
86
|
-
widget_args: [XML, width: 32, height: 48, aspect: true]
|
87
|
-
},
|
88
|
-
SvgTest11 => { desc: ["Xml svg, Portrait, aspect ratio = false\n"],
|
89
|
-
cont_args: {},
|
90
|
-
widget_args: [XML, width: 32, height: 48, aspect: false]
|
91
|
-
},
|
92
|
-
SvgTest12 => { desc: ["Xml svg, Portrait, aspect ratio = 0.5\n"],
|
93
|
-
cont_args: {},
|
94
|
-
widget_args: [XML, width: 32, height: 48, aspect: 0.5]
|
95
|
-
},
|
96
|
-
SvgTest13 => { desc: ["Xml svg, Portrait, aspect ratio = 1.5\n"],
|
97
|
-
cont_args: {},
|
98
|
-
widget_args: [XML, width: 32, height: 48, aspect: 1.5]
|
99
|
-
},
|
100
|
-
}
|
101
|
-
|
102
|
-
|
103
|
-
style(Shoes::Para, size: 10)
|
104
|
-
|
105
|
-
build_test_gui = -> (t, details, silent) do
|
106
|
-
# if we try to draw tests widgets in a non visible area, drawing events are not triggered and
|
107
|
-
# Test processing hangs (waits) - start event is not fired -
|
108
|
-
# So we create a sand_box at top of Shoes app and scroll back there if necessary to
|
109
|
-
# make drawing events happening
|
110
|
-
app.slot.scroll_top = 0
|
111
|
-
|
112
|
-
@sand_box.append do
|
113
|
-
@cont = flow( **details[:cont_args] ) do
|
114
|
-
@svg_obj = svg( *details[:widget_args] )
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
# waiting for shoes asynchronous drawing events to occur.
|
119
|
-
@cont.start {
|
120
|
-
## There could be only one console at a time (we can safely call it many times)
|
121
|
-
Shoes.terminal unless silent
|
122
|
-
|
123
|
-
out_level = silent ? TestRunner::SILENT : TestRunner::NORMAL
|
124
|
-
@test_result = TestRunner.run(t.suite, {output_level: out_level,
|
125
|
-
use_color: true})
|
126
|
-
|
127
|
-
puts "#{'='*40}\n\n" unless silent
|
128
|
-
@sand_box.clear
|
129
|
-
@svg_obj = nil
|
130
|
-
@sand_box.start { @test_complete = true }
|
131
|
-
}
|
132
|
-
end
|
133
|
-
|
134
|
-
stack margin_left: 10, margin_right: 10 do
|
135
|
-
para "Launches Shoes terminal to collect results of Tests", align: "center"
|
136
|
-
|
137
|
-
flow do
|
138
|
-
@sand_box = stack(height: 50, width: 279) {}
|
139
|
-
flow width: 300 do
|
140
|
-
stack do
|
141
|
-
flow do
|
142
|
-
para "Silent tests : "
|
143
|
-
#@no_output = check checked: true
|
144
|
-
@no_output = check checked: false
|
145
|
-
end
|
146
|
-
flow do
|
147
|
-
para "stop tests on failure : "
|
148
|
-
@stop_on_failure = check checked: false
|
149
|
-
end
|
150
|
-
end
|
151
|
-
@visual = rect 200, 0, 30, 30, 5, fill: white
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
flow margin: [0,0,0,5] do
|
156
|
-
|
157
|
-
button "run ALL Tests" do
|
158
|
-
@got_failure = false
|
159
|
-
@visual.style(fill: white)
|
160
|
-
|
161
|
-
# We have to wait for each test to complete (asynchronous drawing)
|
162
|
-
@test_complete = true
|
163
|
-
tenum = TESTS.each_with_index
|
164
|
-
anm = animate(20) do
|
165
|
-
|
166
|
-
if @test_complete
|
167
|
-
if @test_result && @test_result.error_occurred?
|
168
|
-
@test_result = nil
|
169
|
-
@visual.style(fill: yellow)
|
170
|
-
anm.stop; anm.remove; anm = nil
|
171
|
-
elsif @test_result && @test_result.failure_occurred?
|
172
|
-
@got_failure = true
|
173
|
-
|
174
|
-
if @stop_on_failure.checked?
|
175
|
-
@visual.style(fill: red)
|
176
|
-
anm.stop; anm.remove; anm = nil
|
177
|
-
end
|
178
|
-
@test_result = nil
|
179
|
-
else
|
180
|
-
@test_result = nil
|
181
|
-
begin
|
182
|
-
h,i = tenum.next
|
183
|
-
|
184
|
-
@test_complete = false
|
185
|
-
build_test_gui.call(h[0], h[1], @no_output.checked?)
|
186
|
-
|
187
|
-
rescue StopIteration
|
188
|
-
@visual.style(fill: @got_failure ? red : green)
|
189
|
-
anm.stop; anm.remove; anm = nil
|
190
|
-
end
|
191
|
-
end
|
192
|
-
end
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
para " in order of appearance, top to bottom, click below to show detailed tests"
|
197
|
-
end
|
198
|
-
|
199
|
-
flow height: 30, margin_bottom: 5 do
|
200
|
-
bg = background "#fff".."#eed"
|
201
|
-
hover { |s| bg.fill = "#ddd".."#ba9"; s.refresh_slot }
|
202
|
-
leave { |s| bg.fill = "#fff".."#eed"; s.refresh_slot }
|
203
|
-
click { |s| @tests_slot.toggle }
|
204
|
-
|
205
|
-
para "click to see/hide detailed list of tests", margin_left: 50
|
206
|
-
end
|
207
|
-
|
208
|
-
@tests_slot = stack hidden: true do
|
209
|
-
TESTS.each do |t, details|
|
210
|
-
flow do
|
211
|
-
button "run Test" do
|
212
|
-
@visual.style(fill: white)
|
213
|
-
# always show output (output_level == NORMAL)
|
214
|
-
build_test_gui.call(t, details, false)
|
215
|
-
end
|
216
|
-
|
217
|
-
para *(["#{t.to_s} : \n"] << details[:desc])
|
218
|
-
end
|
219
|
-
end
|
220
|
-
end
|
221
|
-
|
222
|
-
end
|
223
|
-
|
224
|
-
def cont; @cont end
|
225
|
-
def svg_obj; @svg_obj end
|
226
|
-
SvgTestBase.init self
|
227
|
-
|
228
|
-
end
|
@@ -1,186 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
require 'test/unit'
|
4
|
-
require 'test/unit/ui/console/testrunner'
|
5
|
-
require 'video_vlc.rb'
|
6
|
-
|
7
|
-
require 'shoes/videoffi'
|
8
|
-
|
9
|
-
Shoes.app title: "Testing Shoes video" do
|
10
|
-
|
11
|
-
TestRunner = Test::Unit::UI::Console::TestRunner
|
12
|
-
|
13
|
-
TESTS = {
|
14
|
-
VideoVlcTest0 => { desc: ["Most Basic unique Test : no path/url, no dimensions\n",
|
15
|
-
span("Run this first to ensure that video widget works at its bare minimum",
|
16
|
-
stroke: darkred)],
|
17
|
-
cont_args: {},
|
18
|
-
widget_args: ['']
|
19
|
-
},
|
20
|
-
VideoVlcTest1 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
|
21
|
-
"path= method \nvideo widget ", span("Container", weight: 'bold'), " dimensions given "],
|
22
|
-
cont_args: {width: 30, height: 20},
|
23
|
-
widget_args: ['', bg_color: yellow]
|
24
|
-
},
|
25
|
-
VideoVlcTest2 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
|
26
|
-
"path= method \nvideo ", span("Widget", weight: 'bold'), " dimensions given "],
|
27
|
-
cont_args: {},
|
28
|
-
widget_args: ['', width: 25, height: 20]
|
29
|
-
},
|
30
|
-
VideoVlcTest3 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
|
31
|
-
"path= method \nvideo ", span("Widget and Container", weight: 'bold'), " dimensions given "],
|
32
|
-
cont_args: {width: 35, height: 20},
|
33
|
-
widget_args: ['', width: 20, height: 20]
|
34
|
-
},
|
35
|
-
VideoVlcTest4 => { desc: "no Dimensions provided, relying on video track dimensions",
|
36
|
-
cont_args: {},
|
37
|
-
widget_args: ['AnemicCinema1926marcelDuchampCut.mp4']
|
38
|
-
},
|
39
|
-
VideoVlcTest5 => { desc: "Widget background color",
|
40
|
-
cont_args: {width: 36, height: 21},
|
41
|
-
widget_args: ['', bg_color: yellow ]
|
42
|
-
},
|
43
|
-
VideoVlcTest6 => { desc: "Passing vlc options to underlaying libvlc_new() C method",
|
44
|
-
cont_args: {width: 36, height: 21},
|
45
|
-
widget_args: ['AnemicCinema1926marcelDuchampCut.mp4',
|
46
|
-
vlc_options: ["--no-xlib", "--no-video-title-show"] ]
|
47
|
-
},
|
48
|
-
VideoVlcTestAudio => { desc: "audio method + volume, volume= methods",
|
49
|
-
cont_args: {width: 35, height: 20},
|
50
|
-
widget_args: ['indian.m4a', width: 350, height: 20]
|
51
|
-
},
|
52
|
-
|
53
|
-
}
|
54
|
-
|
55
|
-
|
56
|
-
style(Shoes::Para, size: 10)
|
57
|
-
|
58
|
-
build_test_gui = -> (t, details, silent) do
|
59
|
-
# if we try to draw tests widgets in a non visible area, drawing events are not triggered and
|
60
|
-
# Test processing hangs (waits) - start event is not fired -
|
61
|
-
# So we create a sand_box at top of Shoes app and scroll back there if necessary to
|
62
|
-
# make drawing events happening
|
63
|
-
app.slot.scroll_top = 0
|
64
|
-
|
65
|
-
@sand_box.append do
|
66
|
-
@cont = flow( **details[:cont_args] ) do
|
67
|
-
@vid =
|
68
|
-
if t == VideoVlcTestAudio
|
69
|
-
audio( *details[:widget_args] )
|
70
|
-
else
|
71
|
-
video( *details[:widget_args] )
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
# waiting for shoes asynchronous drawing events to occur.
|
77
|
-
@cont.start {
|
78
|
-
## There can be only one shoes terminal (we can safely call it many times)
|
79
|
-
Shoes.terminal unless silent
|
80
|
-
|
81
|
-
out_level = silent ? TestRunner::SILENT : TestRunner::NORMAL
|
82
|
-
@test_result = TestRunner.run(t.suite, {output_level: out_level,
|
83
|
-
use_color: true})
|
84
|
-
|
85
|
-
puts "#{'='*40}\n\n" unless silent
|
86
|
-
@sand_box.clear
|
87
|
-
@vid = nil
|
88
|
-
@sand_box.start { @test_complete = true }
|
89
|
-
}
|
90
|
-
end
|
91
|
-
|
92
|
-
stack margin_left: 10, margin_right: 10 do
|
93
|
-
para "Launches Shoes terminal to collect results of Tests", align: "center"
|
94
|
-
|
95
|
-
flow do
|
96
|
-
@sand_box = stack(height: 50, width: 279) {}
|
97
|
-
flow width: 300 do
|
98
|
-
stack do
|
99
|
-
flow do
|
100
|
-
para "Silent tests : "
|
101
|
-
#@no_output = check checked: true
|
102
|
-
@no_output = check checked: false
|
103
|
-
end
|
104
|
-
flow do
|
105
|
-
para "stop tests on failure : "
|
106
|
-
@stop_on_failure = check checked: false
|
107
|
-
end
|
108
|
-
end
|
109
|
-
@visual = rect 200, 0, 30, 30, 5, fill: white
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
flow margin: [0,0,0,5] do
|
114
|
-
|
115
|
-
button "run ALL Tests" do
|
116
|
-
@got_failure = false
|
117
|
-
@visual.style(fill: white)
|
118
|
-
|
119
|
-
# We have to wait for each test to complete (asynchronous drawing)
|
120
|
-
@test_complete = true
|
121
|
-
tenum = TESTS.each_with_index
|
122
|
-
anm = animate(20) do
|
123
|
-
|
124
|
-
if @test_complete
|
125
|
-
if @test_result && @test_result.error_occurred?
|
126
|
-
@test_result = nil
|
127
|
-
@visual.style(fill: yellow)
|
128
|
-
anm.stop; anm.remove; anm = nil
|
129
|
-
elsif @test_result && @test_result.failure_occurred?
|
130
|
-
@got_failure = true
|
131
|
-
|
132
|
-
if @stop_on_failure.checked?
|
133
|
-
@visual.style(fill: red)
|
134
|
-
anm.stop; anm.remove; anm = nil
|
135
|
-
end
|
136
|
-
@test_result = nil
|
137
|
-
else
|
138
|
-
@test_result = nil
|
139
|
-
begin
|
140
|
-
h,i = tenum.next
|
141
|
-
|
142
|
-
@test_complete = false
|
143
|
-
build_test_gui.call(h[0], h[1], @no_output.checked?)
|
144
|
-
|
145
|
-
rescue StopIteration
|
146
|
-
@visual.style(fill: @got_failure ? red : green)
|
147
|
-
anm.stop; anm.remove; anm = nil
|
148
|
-
end
|
149
|
-
end
|
150
|
-
end
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
para " in order of appearance, top to bottom, click below to show detailed tests"
|
155
|
-
end
|
156
|
-
|
157
|
-
flow height: 30, margin_bottom: 5 do
|
158
|
-
bg = background "#fff".."#eed"
|
159
|
-
hover { |s| bg.fill = "#ddd".."#ba9"; s.refresh_slot }
|
160
|
-
leave { |s| bg.fill = "#fff".."#eed"; s.refresh_slot }
|
161
|
-
click { |s| @tests_slot.toggle }
|
162
|
-
|
163
|
-
para "click to see/hide detailed list of tests", margin_left: 50
|
164
|
-
end
|
165
|
-
|
166
|
-
@tests_slot = stack hidden: true do
|
167
|
-
TESTS.each do |t, details|
|
168
|
-
flow do
|
169
|
-
button "run Test" do
|
170
|
-
@visual.style(fill: white)
|
171
|
-
# always show output (output_level == NORMAL)
|
172
|
-
build_test_gui.call(t, details, false)
|
173
|
-
end
|
174
|
-
|
175
|
-
para *(["#{t.to_s} : \n"] << details[:desc])
|
176
|
-
end
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
end
|
181
|
-
|
182
|
-
def cont; @cont end
|
183
|
-
def vid; @vid end
|
184
|
-
VideoVlcTestBase.init self
|
185
|
-
|
186
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Shoes.app do
|
2
|
-
para "Do we have a button tooltip?"
|
3
|
-
@btn = button "Quit", tooltip: "kill Shoes" do
|
4
|
-
Shoes.quit
|
5
|
-
end
|
6
|
-
flow do
|
7
|
-
@chk = check tooltip: "check button will do something"
|
8
|
-
para "watch"
|
9
|
-
end
|
10
|
-
@eb = edit_box tooltip: "enter something"
|
11
|
-
@el = edit_line tooltip: "something you type into"
|
12
|
-
@lb = list_box tooltip: "pull it"
|
13
|
-
start do
|
14
|
-
@btn.tooltip = "This will will exit shoes properly"
|
15
|
-
@chk.tooltip = "This will alter reality"
|
16
|
-
@eb.tooltip = "Something different"
|
17
|
-
@el.tooltip = "you type here"
|
18
|
-
@lb.tooltip = "Pick a card, any card"
|
19
|
-
end
|
20
|
-
end
|
@@ -1,242 +0,0 @@
|
|
1
|
-
# encoding: UTF-8
|
2
|
-
|
3
|
-
class VideoVlcTestBase < Test::Unit::TestCase
|
4
|
-
class << self
|
5
|
-
def init(app)
|
6
|
-
@@app = app
|
7
|
-
end
|
8
|
-
def startup
|
9
|
-
@@mediav = "AnemicCinema1926marcelDuchampCut.mp4"
|
10
|
-
@@mediaa = "indian.m4a"
|
11
|
-
# a fake stream : not relying on internet's mood swings for the test
|
12
|
-
@@mediast = "file://#{File.expand_path('./AnemicCinema1926marcelDuchampCut.mp4')}"
|
13
|
-
end
|
14
|
-
|
15
|
-
def shutdown
|
16
|
-
@@mediav = nil
|
17
|
-
@@mediaa = nil
|
18
|
-
@@mediast = nil
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
|
-
def setup; end
|
23
|
-
def teardown; end
|
24
|
-
end
|
25
|
-
|
26
|
-
class VideoVlcTest0 < VideoVlcTestBase
|
27
|
-
|
28
|
-
description "no dimensions provided, no path/url, nothing to draw"
|
29
|
-
def test_video_noPath_noDim
|
30
|
-
|
31
|
-
assert_not_nil @@app.vid
|
32
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
33
|
-
vidc = @@app.vid.instance_variable_get(:@video)
|
34
|
-
assert_true vidc.drawable_ready?
|
35
|
-
|
36
|
-
vlci = @@app.vid.instance_variable_get(:@vlci)
|
37
|
-
assert_not_nil vlci
|
38
|
-
assert_instance_of Fiddle::Pointer, vlci
|
39
|
-
assert_false vlci.null?
|
40
|
-
|
41
|
-
assert_equal 0, @@app.vid.width
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
class VideoVlcTest1 < VideoVlcTestBase
|
46
|
-
|
47
|
-
def test_slotDim_noPath
|
48
|
-
assert_not_nil @@app.vid
|
49
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
50
|
-
assert_equal 30, @@app.vid.width
|
51
|
-
end
|
52
|
-
|
53
|
-
def test_slotDim_movie
|
54
|
-
@@app.vid.path = @@mediav
|
55
|
-
|
56
|
-
assert_not_nil @@app.vid
|
57
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
58
|
-
assert_equal 30, @@app.vid.width
|
59
|
-
|
60
|
-
assert_equal @@mediav, @@app.vid.path
|
61
|
-
assert_true @@app.vid.loaded
|
62
|
-
assert_true @@app.vid.have_video_track
|
63
|
-
assert_equal 640, @@app.vid.video_track_width
|
64
|
-
assert_equal 480, @@app.vid.video_track_height
|
65
|
-
assert_true @@app.vid.have_audio_track
|
66
|
-
end
|
67
|
-
|
68
|
-
def test_slotDim_audio
|
69
|
-
@@app.vid.path = @@mediaa
|
70
|
-
|
71
|
-
assert_not_nil @@app.vid
|
72
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
73
|
-
assert_equal 30, @@app.vid.width
|
74
|
-
|
75
|
-
assert_equal @@mediaa, @@app.vid.path
|
76
|
-
assert_true @@app.vid.loaded
|
77
|
-
assert_true @@app.vid.have_audio_track
|
78
|
-
assert_nil @@app.vid.have_video_track
|
79
|
-
assert_nil @@app.vid.video_track_width
|
80
|
-
assert_nil @@app.vid.video_track_height
|
81
|
-
end
|
82
|
-
|
83
|
-
def test_slotDim_stream
|
84
|
-
@@app.vid.path = @@mediast
|
85
|
-
|
86
|
-
assert_not_nil @@app.vid
|
87
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
88
|
-
assert_equal 30, @@app.vid.width
|
89
|
-
|
90
|
-
assert_equal @@mediast, @@app.vid.path
|
91
|
-
assert_true @@app.vid.loaded
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
class VideoVlcTest2 < VideoVlcTestBase
|
96
|
-
|
97
|
-
def test_widgetDim_noPath
|
98
|
-
assert_not_nil @@app.vid
|
99
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
100
|
-
assert_equal 25, @@app.vid.width
|
101
|
-
end
|
102
|
-
|
103
|
-
def test_widgetDim_movie
|
104
|
-
@@app.vid.path = @@mediav
|
105
|
-
|
106
|
-
assert_not_nil @@app.vid
|
107
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
108
|
-
assert_equal 25, @@app.vid.width
|
109
|
-
|
110
|
-
assert_equal @@mediav, @@app.vid.path
|
111
|
-
assert_true @@app.vid.loaded
|
112
|
-
assert_true @@app.vid.have_video_track
|
113
|
-
assert_equal 640, @@app.vid.video_track_width
|
114
|
-
assert_equal 480, @@app.vid.video_track_height
|
115
|
-
assert_true @@app.vid.have_audio_track
|
116
|
-
end
|
117
|
-
|
118
|
-
def test_widgetDim_audio
|
119
|
-
@@app.vid.path = @@mediaa
|
120
|
-
|
121
|
-
assert_not_nil @@app.vid
|
122
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
123
|
-
assert_equal 25, @@app.vid.width
|
124
|
-
|
125
|
-
assert_equal @@mediaa, @@app.vid.path
|
126
|
-
assert_true @@app.vid.loaded
|
127
|
-
assert_true @@app.vid.have_audio_track
|
128
|
-
assert_nil @@app.vid.have_video_track
|
129
|
-
assert_nil @@app.vid.video_track_width
|
130
|
-
assert_nil @@app.vid.video_track_height
|
131
|
-
end
|
132
|
-
|
133
|
-
def test_widgetDim_stream
|
134
|
-
@@app.vid.path = @@mediast
|
135
|
-
|
136
|
-
assert_not_nil @@app.vid
|
137
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
138
|
-
assert_equal 25, @@app.vid.width
|
139
|
-
|
140
|
-
assert_equal @@mediast, @@app.vid.path
|
141
|
-
assert_true @@app.vid.loaded
|
142
|
-
end
|
143
|
-
end
|
144
|
-
|
145
|
-
class VideoVlcTest3 < VideoVlcTestBase
|
146
|
-
|
147
|
-
def test_slotDim_widgetDim_noPath
|
148
|
-
assert_not_nil @@app.vid
|
149
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
150
|
-
assert_equal 20, @@app.vid.width
|
151
|
-
end
|
152
|
-
|
153
|
-
def test_slotDim_widgetDim_movie
|
154
|
-
@@app.vid.path = @@mediav
|
155
|
-
|
156
|
-
assert_not_nil @@app.vid
|
157
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
158
|
-
assert_equal 20, @@app.vid.width
|
159
|
-
|
160
|
-
assert_equal @@mediav, @@app.vid.path
|
161
|
-
assert_true @@app.vid.loaded
|
162
|
-
assert_true @@app.vid.have_video_track
|
163
|
-
assert_equal 640, @@app.vid.video_track_width
|
164
|
-
assert_equal 480, @@app.vid.video_track_height
|
165
|
-
assert_true @@app.vid.have_audio_track
|
166
|
-
end
|
167
|
-
|
168
|
-
def test_slotDim_widgetDim_audio
|
169
|
-
@@app.vid.path = @@mediaa
|
170
|
-
|
171
|
-
assert_not_nil @@app.vid
|
172
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
173
|
-
assert_equal 20, @@app.vid.width
|
174
|
-
|
175
|
-
assert_equal @@mediaa, @@app.vid.path
|
176
|
-
assert_true @@app.vid.loaded
|
177
|
-
assert_true @@app.vid.have_audio_track
|
178
|
-
assert_nil @@app.vid.have_video_track
|
179
|
-
assert_nil @@app.vid.video_track_width
|
180
|
-
assert_nil @@app.vid.video_track_height
|
181
|
-
end
|
182
|
-
|
183
|
-
def test_slotDim_widgetDim_stream
|
184
|
-
@@app.vid.path = @@mediast
|
185
|
-
|
186
|
-
assert_not_nil @@app.vid
|
187
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
188
|
-
assert_equal 20, @@app.vid.width
|
189
|
-
|
190
|
-
assert_equal @@mediast, @@app.vid.path
|
191
|
-
assert_true @@app.vid.loaded
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
class VideoVlcTest4 < VideoVlcTestBase
|
196
|
-
def test_videoTrackDim
|
197
|
-
assert_not_nil @@app.vid
|
198
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
199
|
-
|
200
|
-
assert_equal 640, @@app.vid.width
|
201
|
-
assert_equal 480, @@app.vid.height
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
class VideoVlcTest5 < VideoVlcTestBase
|
206
|
-
def test_backgroundColor
|
207
|
-
assert_not_nil @@app.vid
|
208
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
209
|
-
assert_equal 36, @@app.vid.width
|
210
|
-
|
211
|
-
assert_equal 255, @@app.vid.style[:bg_color].red
|
212
|
-
assert_equal 255, @@app.vid.style[:bg_color].green
|
213
|
-
assert_equal 0, @@app.vid.style[:bg_color].blue
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
|
-
class VideoVlcTest6 < VideoVlcTestBase
|
218
|
-
def test_libvlcOptions
|
219
|
-
assert_not_nil @@app.vid
|
220
|
-
vlci = @@app.vid.instance_variable_get(:@vlci)
|
221
|
-
assert_not_nil vlci
|
222
|
-
assert_instance_of Fiddle::Pointer, vlci
|
223
|
-
assert_false vlci.null?
|
224
|
-
assert_false @@app.vid.style.include?(:vlc_options)
|
225
|
-
end
|
226
|
-
end
|
227
|
-
|
228
|
-
class VideoVlcTestAudio < VideoVlcTestBase
|
229
|
-
def test_audioMethod
|
230
|
-
assert_not_nil @@app.vid
|
231
|
-
assert_instance_of Shoes::VideoVlc, @@app.vid
|
232
|
-
|
233
|
-
assert_equal 0, @@app.vid.width
|
234
|
-
assert_true @@app.vid.style[:hidden]
|
235
|
-
|
236
|
-
assert_equal 85, @@app.vid.volume
|
237
|
-
@@app.vid.volume = 72
|
238
|
-
assert_equal 72, @@app.vid.volume
|
239
|
-
end
|
240
|
-
end
|
241
|
-
|
242
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
Shoes.app do
|
2
|
-
stack height: 200 do
|
3
|
-
click do |b,l,t|
|
4
|
-
@p.replace "Stack clicked"
|
5
|
-
end
|
6
|
-
@p = para "None"
|
7
|
-
flow width: 200 do
|
8
|
-
para "Flow 1"
|
9
|
-
wheel do |d,l,t|
|
10
|
-
@p.replace "Flow 1 wheel #{d}"
|
11
|
-
end
|
12
|
-
end
|
13
|
-
flow width: 200 do
|
14
|
-
para "Flow 2"
|
15
|
-
click do |b,l,t|
|
16
|
-
@p.replace "Flow 2 clicked"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
wheel {|d,l,t,mods | @p.replace "default slot wheel #{d} #{mods}"}
|
21
|
-
end
|