polymer-paper-rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/components/core-animation/README.md +4 -0
- data/app/assets/components/core-animation/bower.json +8 -0
- data/app/assets/components/core-animation/core-animation-group.html +169 -0
- data/app/assets/components/core-animation/core-animation.html +524 -0
- data/app/assets/components/core-animation/demo.html +149 -0
- data/app/assets/components/core-animation/index.html +22 -0
- data/app/assets/components/core-animation/web-animations.html +10 -0
- data/app/assets/components/core-collapse/README.md +4 -0
- data/app/assets/components/core-collapse/bower.json +7 -0
- data/app/assets/components/core-collapse/core-collapse.css +16 -0
- data/app/assets/components/core-collapse/core-collapse.html +262 -0
- data/app/assets/components/core-collapse/demo.html +93 -0
- data/app/assets/components/core-collapse/index.html +22 -0
- data/app/assets/components/core-component-page/README.md +6 -0
- data/app/assets/components/core-component-page/bowager-logo.png +0 -0
- data/app/assets/components/core-component-page/bower.json +8 -0
- data/app/assets/components/core-component-page/core-component-page.html +37 -0
- data/app/assets/components/core-component-page/demo.html +23 -0
- data/app/assets/components/core-component-page/index.html +22 -0
- data/app/assets/components/core-drawer-panel/README.md +4 -0
- data/app/assets/components/core-drawer-panel/bower.json +8 -0
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +147 -0
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +339 -0
- data/app/assets/components/core-drawer-panel/demo.html +73 -0
- data/app/assets/components/core-drawer-panel/index.html +22 -0
- data/app/assets/components/core-drawer-panel/metadata.html +37 -0
- data/app/assets/components/core-elements/README.md +4 -0
- data/app/assets/components/core-elements/bower.json +29 -0
- data/app/assets/components/core-elements/demo.html +105 -0
- data/app/assets/components/core-elements/demos/core-toolbar.html +98 -0
- data/app/assets/components/core-elements/metadata.html +23 -0
- data/app/assets/components/core-elements/paper-elements.html +37 -0
- data/app/assets/components/core-field/README.md +4 -0
- data/app/assets/components/core-field/bower.json +7 -0
- data/app/assets/components/core-field/core-field.css +38 -0
- data/app/assets/components/core-field/core-field.html +35 -0
- data/app/assets/components/core-field/demo.html +67 -0
- data/app/assets/components/core-field/index.html +22 -0
- data/app/assets/components/core-field/metadata.html +26 -0
- data/app/assets/components/core-header-panel/README.md +4 -0
- data/app/assets/components/core-header-panel/bower.json +7 -0
- data/app/assets/components/core-header-panel/core-header-panel.css +75 -0
- data/app/assets/components/core-header-panel/core-header-panel.html +225 -0
- data/app/assets/components/core-header-panel/demo.html +100 -0
- data/app/assets/components/core-header-panel/index.html +23 -0
- data/app/assets/components/core-header-panel/metadata.html +37 -0
- data/app/assets/components/core-icon/README.md +4 -0
- data/app/assets/components/core-icon/bower.json +8 -0
- data/app/assets/components/{core/icon → core-icon}/core-icon.css +3 -12
- data/app/assets/components/core-icon/core-icon.html +189 -0
- data/app/assets/components/core-icon/demo.html +44 -0
- data/app/assets/components/core-icon/index.html +22 -0
- data/app/assets/components/core-icon/metadata.html +21 -0
- data/app/assets/components/core-icon-button/README.md +4 -0
- data/app/assets/components/core-icon-button/bower.json +7 -0
- data/app/assets/components/core-icon-button/core-icon-button.css +75 -0
- data/app/assets/components/core-icon-button/core-icon-button.html +81 -0
- data/app/assets/components/core-icon-button/demo.html +35 -0
- data/app/assets/components/core-icon-button/index.html +22 -0
- data/app/assets/components/core-icon-button/metadata.html +20 -0
- data/app/assets/components/core-icons/README.md +4 -0
- data/app/assets/components/core-icons/av-icons.html +46 -0
- data/app/assets/components/core-icons/bower.json +9 -0
- data/app/assets/components/core-icons/communication-icons.html +59 -0
- data/app/assets/components/core-icons/core-icons.html +278 -0
- data/app/assets/components/core-icons/demo.html +96 -0
- data/app/assets/components/core-icons/device-icons.html +59 -0
- data/app/assets/components/core-icons/editor-icons.html +67 -0
- data/app/assets/components/core-icons/hardware-icons.html +58 -0
- data/app/assets/components/core-icons/image-icons.html +146 -0
- data/app/assets/components/core-icons/index.html +22 -0
- data/app/assets/components/core-icons/maps-icons.html +69 -0
- data/app/assets/components/core-icons/notification-icons.html +50 -0
- data/app/assets/components/core-icons/png-icons.html +19 -0
- data/app/assets/components/core-icons/social-icons.html +52 -0
- data/app/assets/components/core-iconset/README.md +4 -0
- data/app/assets/components/core-iconset/bower.json +9 -0
- data/app/assets/components/{core/iconset/core-iconset.html.erb → core-iconset/core-iconset.html} +29 -24
- data/app/assets/components/core-iconset/demo.html +62 -0
- data/app/assets/components/core-iconset/index.html +22 -0
- data/app/assets/components/core-iconset/my-icons-big.png +0 -0
- data/app/assets/components/core-iconset/my-icons.png +0 -0
- data/app/assets/components/core-iconset-svg/README.md +4 -0
- data/app/assets/components/core-iconset-svg/bower.json +8 -0
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +168 -0
- data/app/assets/components/core-iconset-svg/demo.html +66 -0
- data/app/assets/components/core-iconset-svg/index.html +22 -0
- data/app/assets/components/core-iconset-svg/svg-sample-icons.html +68 -0
- data/app/assets/components/core-input/README.md +2 -0
- data/app/assets/components/core-input/bower.json +6 -0
- data/app/assets/components/core-input/core-input.css +45 -0
- data/app/assets/components/{core/input/core-input.html.erb → core-input/core-input.html} +164 -95
- data/app/assets/components/core-input/demo.html +142 -0
- data/app/assets/components/core-input/index.html +22 -0
- data/app/assets/components/core-input/metadata.html +20 -0
- data/app/assets/components/core-item/README.md +4 -0
- data/app/assets/components/core-item/bower.json +8 -0
- data/app/assets/components/core-item/core-item.css +44 -0
- data/app/assets/components/core-item/core-item.html +74 -0
- data/app/assets/components/core-item/demo.html +92 -0
- data/app/assets/components/core-item/index.html +22 -0
- data/app/assets/components/core-item/metadata.html +24 -0
- data/app/assets/components/core-media-query/README.md +4 -0
- data/app/assets/components/core-media-query/bower.json +7 -0
- data/app/assets/components/{core/media-query → core-media-query}/core-media-query.html +1 -0
- data/app/assets/components/core-media-query/demo.html +44 -0
- data/app/assets/components/core-media-query/index.html +22 -0
- data/app/assets/components/core-menu/README.md +4 -0
- data/app/assets/components/core-menu/bower.json +9 -0
- data/app/assets/components/{core/menu → core-menu}/core-menu.css +0 -0
- data/app/assets/components/{core/menu/core-menu.html.erb → core-menu/core-menu.html} +3 -3
- data/app/assets/components/{core/menu → core-menu}/core-submenu.css +0 -0
- data/app/assets/components/{core/menu/core-submenu.html.erb → core-menu/core-submenu.html} +10 -10
- data/app/assets/components/core-menu/demo.html +101 -0
- data/app/assets/components/core-menu/index.html +22 -0
- data/app/assets/components/core-menu/metadata.html +62 -0
- data/app/assets/components/core-meta/README.md +4 -0
- data/app/assets/components/core-meta/bower.json +7 -0
- data/app/assets/components/{core/meta → core-meta}/core-meta.html +24 -22
- data/app/assets/components/core-meta/demo.html +58 -0
- data/app/assets/components/core-meta/index.html +22 -0
- data/app/assets/components/core-overlay/README.md +4 -0
- data/app/assets/components/core-overlay/bower.json +8 -0
- data/app/assets/components/{core/overlay → core-overlay}/core-key-helper.html +2 -0
- data/app/assets/components/{core/overlay → core-overlay}/core-overlay-layer.html +112 -112
- data/app/assets/components/{core/overlay/core-overlay.html.erb → core-overlay/core-overlay.html} +77 -51
- data/app/assets/components/core-overlay/demo.html +155 -0
- data/app/assets/components/core-overlay/index.html +22 -0
- data/app/assets/components/core-popup-menu/README.md +6 -0
- data/app/assets/components/core-popup-menu/bower.json +13 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.css +28 -0
- data/app/assets/components/core-popup-menu/core-popup-menu.html +198 -0
- data/app/assets/components/core-popup-menu/core-popup-overlay.html +111 -0
- data/app/assets/components/core-popup-menu/demo.html +542 -0
- data/app/assets/components/core-popup-menu/index.html +22 -0
- data/app/assets/components/core-popup-menu/metadata.html +62 -0
- data/app/assets/components/core-range/README.md +2 -0
- data/app/assets/components/core-range/bower.json +7 -0
- data/app/assets/components/{core/range → core-range}/core-range.html +17 -15
- data/app/assets/components/core-range/demo.html +64 -0
- data/app/assets/components/core-range/index.html +22 -0
- data/app/assets/components/core-scroll-header-panel/README.md +4 -0
- data/app/assets/components/core-scroll-header-panel/bower.json +11 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.css +58 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +313 -0
- data/app/assets/components/core-scroll-header-panel/demo.html +111 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo1.html +80 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo2.html +82 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo3.html +81 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo4.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo5.html +109 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo6.html +113 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo7.html +120 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo8.html +122 -0
- data/app/assets/components/core-scroll-header-panel/demos/demo9.html +100 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg2.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg3.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg5.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg6.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/images/bg9.jpg +0 -0
- data/app/assets/components/core-scroll-header-panel/demos/lorem-ipsum.html +42 -0
- data/app/assets/components/core-scroll-header-panel/index.html +22 -0
- data/app/assets/components/core-scroll-header-panel/metadata.html +41 -0
- data/app/assets/components/core-selection/README.md +4 -0
- data/app/assets/components/core-selection/bower.json +7 -0
- data/app/assets/components/{core/selection → core-selection}/core-selection.html +6 -5
- data/app/assets/components/core-selection/demo.html +59 -0
- data/app/assets/components/core-selection/index.html +22 -0
- data/app/assets/components/core-selector/README.md +4 -0
- data/app/assets/components/core-selector/bower.json +8 -0
- data/app/assets/components/{core/selector/core-selector.html.erb → core-selector/core-selector.html} +53 -16
- data/app/assets/components/core-selector/demo.html +106 -0
- data/app/assets/components/core-selector/index.html +22 -0
- data/app/assets/components/core-selector/metadata.html +20 -0
- data/app/assets/components/core-style/README.md +4 -0
- data/app/assets/components/core-style/bower.json +7 -0
- data/app/assets/components/{core/style → core-style}/core-style.html +387 -386
- data/app/assets/components/core-style/demo.html +58 -0
- data/app/assets/components/core-style/elements.html +55 -0
- data/app/assets/components/core-style/index.html +22 -0
- data/app/assets/components/core-style/my-theme.html +73 -0
- data/app/assets/components/core-toolbar/README.md +4 -0
- data/app/assets/components/core-toolbar/bower.json +7 -0
- data/app/assets/components/core-toolbar/core-toolbar.css +110 -0
- data/app/assets/components/core-toolbar/core-toolbar.html +74 -0
- data/app/assets/components/core-toolbar/demo.html +107 -0
- data/app/assets/components/core-toolbar/index.html +22 -0
- data/app/assets/components/core-toolbar/metadata.html +28 -0
- data/app/assets/components/core-transition/README.md +2 -0
- data/app/assets/components/core-transition/bower.json +8 -0
- data/app/assets/components/core-transition/core-transition-css.html +221 -0
- data/app/assets/components/{core/transition → core-transition}/core-transition-overlay.css +1 -1
- data/app/assets/components/core-transition/core-transition.html +140 -0
- data/app/assets/components/core-transition/demo.html +87 -0
- data/app/assets/components/core-transition/index.html +22 -0
- data/app/assets/components/font-roboto/roboto.html +9 -0
- data/app/assets/components/paper-button/README.md +4 -0
- data/app/assets/components/paper-button/bower.json +11 -0
- data/app/assets/components/paper-button/demo.html +99 -0
- data/app/assets/components/paper-button/demo2.html +136 -0
- data/app/assets/components/paper-button/index.html +22 -0
- data/app/assets/components/paper-button/metadata.html +17 -0
- data/app/assets/components/paper-button/paper-button.css +11 -1
- data/app/assets/components/paper-button/{paper-button.html.erb → paper-button.html} +9 -8
- data/app/assets/components/paper-checkbox/README.md +4 -0
- data/app/assets/components/paper-checkbox/bower.json +8 -0
- data/app/assets/components/paper-checkbox/demo.html +113 -0
- data/app/assets/components/paper-checkbox/index.html +22 -0
- data/app/assets/components/paper-checkbox/metadata.html +17 -0
- data/app/assets/components/paper-checkbox/paper-checkbox.css +49 -48
- data/app/assets/components/paper-checkbox/{paper-checkbox.html.erb → paper-checkbox.html} +110 -104
- data/app/assets/components/paper-dialog/README.md +4 -0
- data/app/assets/components/paper-dialog/bower.json +10 -0
- data/app/assets/components/paper-dialog/demo.html +85 -0
- data/app/assets/components/paper-dialog/index.html +22 -0
- data/app/assets/components/paper-dialog/{paper-dialog-transition.html.erb → paper-dialog-transition.html} +3 -3
- data/app/assets/components/paper-dialog/paper-dialog.css +52 -0
- data/app/assets/components/paper-dialog/{paper-dialog.html.erb → paper-dialog.html} +7 -7
- data/app/assets/components/paper-dropdown/README.md +9 -0
- data/app/assets/components/paper-dropdown/bower.json +12 -0
- data/app/assets/components/paper-dropdown/demo.html +345 -0
- data/app/assets/components/paper-dropdown/index.html +22 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.css +48 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.html +191 -0
- data/app/assets/components/paper-fab/README.md +4 -0
- data/app/assets/components/paper-fab/bower.json +8 -0
- data/app/assets/components/paper-fab/demo.html +72 -0
- data/app/assets/components/paper-fab/demo2.html +103 -0
- data/app/assets/components/paper-fab/index.html +22 -0
- data/app/assets/components/paper-fab/metadata.html +36 -0
- data/app/assets/components/paper-fab/paper-fab.css +11 -2
- data/app/assets/components/paper-fab/{paper-fab.html.erb → paper-fab.html} +3 -2
- data/app/assets/components/paper-focusable/README.md +4 -0
- data/app/assets/components/paper-focusable/bower.json +7 -0
- data/app/assets/components/paper-focusable/demo.html +155 -0
- data/app/assets/components/paper-focusable/paper-focusable.html +2 -0
- data/app/assets/components/paper-icon-button/README.md +4 -0
- data/app/assets/components/paper-icon-button/bower.json +9 -0
- data/app/assets/components/paper-icon-button/demo.html +102 -0
- data/app/assets/components/paper-icon-button/index.html +22 -0
- data/app/assets/components/paper-icon-button/metadata.html +21 -0
- data/app/assets/components/paper-icon-button/paper-icon-button.css +1 -1
- data/app/assets/components/paper-icon-button/{paper-icon-button.html.erb → paper-icon-button.html} +7 -7
- data/app/assets/components/paper-icon-button/pulse-ink.css +20 -0
- data/app/assets/components/paper-input/README.md +4 -0
- data/app/assets/components/paper-input/bower.json +11 -0
- data/app/assets/components/paper-input/demo.html +124 -0
- data/app/assets/components/paper-input/index.html +22 -0
- data/app/assets/components/paper-input/metadata.html +23 -0
- data/app/assets/components/paper-input/paper-input.css +152 -0
- data/app/assets/components/paper-input/paper-input.html +314 -0
- data/app/assets/components/paper-item/README.md +4 -0
- data/app/assets/components/paper-item/bower.json +9 -0
- data/app/assets/components/paper-item/demo.html +39 -0
- data/app/assets/components/paper-item/index.html +22 -0
- data/app/assets/components/paper-item/metadata.html +23 -0
- data/app/assets/components/paper-item/paper-item.css +15 -2
- data/app/assets/components/paper-item/{paper-item.html.erb → paper-item.html} +7 -6
- data/app/assets/components/paper-menu-button/README.md +4 -0
- data/app/assets/components/paper-menu-button/bower.json +16 -0
- data/app/assets/components/paper-menu-button/demo.html +95 -0
- data/app/assets/components/paper-menu-button/index.html +22 -0
- data/app/assets/components/paper-menu-button/metadata.html +21 -0
- data/app/assets/components/paper-menu-button/{paper-menu-button-transition.html.erb → paper-menu-button-transition.html} +31 -26
- data/app/assets/components/paper-menu-button/paper-menu-button.css +5 -9
- data/app/assets/components/paper-menu-button/{paper-menu-button.html.erb → paper-menu-button.html} +52 -20
- data/app/assets/components/paper-progress/README.md +4 -0
- data/app/assets/components/paper-progress/bower.json +8 -0
- data/app/assets/components/paper-progress/demo.html +107 -0
- data/app/assets/components/paper-progress/index.html +22 -0
- data/app/assets/components/paper-progress/metadata.html +17 -0
- data/app/assets/components/paper-progress/paper-progress.css +1 -1
- data/app/assets/components/paper-progress/{paper-progress.html.erb → paper-progress.html} +23 -23
- data/app/assets/components/paper-radio-button/README.md +4 -0
- data/app/assets/components/paper-radio-button/bower.json +7 -0
- data/app/assets/components/paper-radio-button/demo.html +75 -0
- data/app/assets/components/paper-radio-button/index.html +22 -0
- data/app/assets/components/paper-radio-button/metadata.html +17 -0
- data/app/assets/components/paper-radio-button/paper-radio-button.css +14 -8
- data/app/assets/components/paper-radio-button/{paper-radio-button.html.erb → paper-radio-button.html} +38 -29
- data/app/assets/components/paper-radio-group/README.md +4 -0
- data/app/assets/components/paper-radio-group/bower.json +9 -0
- data/app/assets/components/paper-radio-group/demo.html +82 -0
- data/app/assets/components/paper-radio-group/index.html +22 -0
- data/app/assets/components/paper-radio-group/metadata.html +22 -0
- data/app/assets/components/paper-radio-group/{paper-radio-group.html.erb → paper-radio-group.html} +16 -16
- data/app/assets/components/paper-ripple/README.md +4 -0
- data/app/assets/components/paper-ripple/bower.json +9 -0
- data/app/assets/components/paper-ripple/demo.html +418 -0
- data/app/assets/components/paper-ripple/index.html +22 -0
- data/app/assets/components/paper-ripple/metadata.html +20 -0
- data/app/assets/components/paper-ripple/paper-ripple.html +3 -2
- data/app/assets/components/paper-ripple/raw.html +799 -0
- data/app/assets/components/paper-shadow/README.md +4 -0
- data/app/assets/components/paper-shadow/bower.json +7 -0
- data/app/assets/components/paper-shadow/demo.html +252 -0
- data/app/assets/components/paper-shadow/index.html +22 -0
- data/app/assets/components/paper-shadow/metadata.html +17 -0
- data/app/assets/components/paper-shadow/paper-shadow.css +11 -1
- data/app/assets/components/paper-shadow/{paper-shadow.html.erb → paper-shadow.html} +11 -4
- data/app/assets/components/paper-slider/README.md +4 -0
- data/app/assets/components/paper-slider/bower.json +9 -0
- data/app/assets/components/paper-slider/demo.html +151 -0
- data/app/assets/components/paper-slider/index.html +22 -0
- data/app/assets/components/paper-slider/metadata.html +20 -0
- data/app/assets/components/paper-slider/paper-slider.css +58 -26
- data/app/assets/components/paper-slider/{paper-slider.html.erb → paper-slider.html} +72 -75
- data/app/assets/components/paper-tabs/README.md +4 -0
- data/app/assets/components/paper-tabs/bower.json +12 -0
- data/app/assets/components/paper-tabs/demo.html +166 -0
- data/app/assets/components/paper-tabs/index.html +22 -0
- data/app/assets/components/paper-tabs/metadata.html +58 -0
- data/app/assets/components/paper-tabs/{paper-tab.html.erb → paper-tab.html} +10 -10
- data/app/assets/components/paper-tabs/paper-tabs.css +1 -1
- data/app/assets/components/paper-tabs/{paper-tabs.html.erb → paper-tabs.html} +29 -25
- data/app/assets/components/paper-toast/README.md +4 -0
- data/app/assets/components/paper-toast/bower.json +10 -0
- data/app/assets/components/paper-toast/demo.html +67 -0
- data/app/assets/components/paper-toast/index.html +22 -0
- data/app/assets/components/paper-toast/metadata.html +20 -0
- data/app/assets/components/paper-toast/paper-toast.css +80 -0
- data/app/assets/components/paper-toast/{paper-toast.html.erb → paper-toast.html} +39 -39
- data/app/assets/components/paper-toggle-button/README.md +4 -0
- data/app/assets/components/paper-toggle-button/bower.json +8 -0
- data/app/assets/components/paper-toggle-button/demo.html +77 -0
- data/app/assets/components/paper-toggle-button/index.html +22 -0
- data/app/assets/components/paper-toggle-button/metadata.html +17 -0
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +1 -1
- data/app/assets/components/paper-toggle-button/{paper-toggle-button.html.erb → paper-toggle-button.html} +39 -20
- data/app/assets/components/platform/README.md +6 -0
- data/app/assets/components/platform/bower.json +16 -0
- data/app/assets/components/platform/build.log +35 -0
- data/app/assets/components/platform/platform.js +16 -0
- data/app/assets/components/platform/platform.js.map +1 -0
- data/app/assets/components/polymer/README.md +17 -0
- data/app/assets/components/polymer/bower.json +8 -0
- data/app/assets/components/polymer/build.log +35 -0
- data/app/assets/components/polymer/layout.html +286 -0
- data/app/assets/components/polymer/polymer.html +13 -0
- data/app/assets/components/polymer/polymer.js +14 -0
- data/app/assets/components/polymer/polymer.js.map +1 -0
- data/app/assets/components/sampler-scaffold/README.md +4 -0
- data/app/assets/components/sampler-scaffold/bower.json +12 -0
- data/app/assets/components/sampler-scaffold/demo.html +54 -0
- data/app/assets/components/sampler-scaffold/demos/checkbox.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/color.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/radio.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/range.html +20 -0
- data/app/assets/components/sampler-scaffold/demos/string.html +20 -0
- data/app/assets/components/sampler-scaffold/index.html +22 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +157 -0
- data/app/assets/components/sampler-scaffold/sampler-scaffold.html +224 -0
- data/app/assets/components/web-animations-js/COPYING +202 -0
- data/app/assets/components/web-animations-js/README.md +237 -0
- data/app/assets/components/web-animations-js/run-lint.sh +19 -0
- data/app/assets/components/web-animations-js/run-tests-android.sh +25 -0
- data/app/assets/components/web-animations-js/run-tests.sh +15 -0
- data/app/assets/components/web-animations-js/test/bootstrap.js +1266 -0
- data/app/assets/components/web-animations-js/test/img/error.png +0 -0
- data/app/assets/components/web-animations-js/test/img/success.png +0 -0
- data/app/assets/components/web-animations-js/test/img/unknown.png +0 -0
- data/app/assets/components/web-animations-js/test/perf/balls-add-compositing.html +147 -0
- data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +144 -0
- data/app/assets/components/web-animations-js/test/perf/perf.js +158 -0
- data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +165 -0
- data/app/assets/components/web-animations-js/test/test-generator.html +240 -0
- data/app/assets/components/web-animations-js/test/test-results-post.html +3 -0
- data/app/assets/components/web-animations-js/test/test-runner.html +810 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +40 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +156 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +101 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +431 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +204 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +117 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +45 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +8 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +30 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +266 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +114 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +74 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +242 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +17 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +70 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +506 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +44 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +50 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +162 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +116 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +602 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +167 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +67 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +109 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +65 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +64 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +342 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +56 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +110 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +133 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +26 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +42 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +27 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +41 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +82 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +61 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +94 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +146 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +128 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +73 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +95 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +69 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +86 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +197 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +92 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +107 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +90 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +39 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +23 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +36 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +20 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +89 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +77 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +134 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +123 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +160 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +158 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +37 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +292 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +97 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +202 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +98 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +54 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +58 -0
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +60 -0
- data/app/assets/components/web-animations-js/test/testcases/background.png +0 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-change-playback-rate.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +103 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +439 -0
- data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +85 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +219 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +83 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +37 -0
- data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +256 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +57 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +71 -0
- data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +88 -0
- data/app/assets/components/web-animations-js/test/testcases/small.mp4 +0 -0
- data/app/assets/components/web-animations-js/test/testcases/small.webm +0 -0
- data/app/assets/components/web-animations-js/test/testcases/test-bounds.html +69 -0
- data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +53 -0
- data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +65 -0
- data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +78 -0
- data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +324 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +182 -0
- data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +52 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +161 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +79 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +101 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +48 -0
- data/app/assets/components/web-animations-js/test/testcases/test-player.html +786 -0
- data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +38 -0
- data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/test-restart.html +115 -0
- data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +28 -0
- data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +55 -0
- data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +113 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +80 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +164 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +66 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +112 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +105 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +43 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +111 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +54 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +248 -0
- data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +68 -0
- data/app/assets/components/web-animations-js/test/testcases.js +93 -0
- data/app/assets/components/web-animations-js/test/testharness_timing.css +75 -0
- data/app/assets/components/web-animations-js/test/update-testcases.py +63 -0
- data/app/assets/components/web-animations-js/tools/android/config.sh +8 -0
- data/app/assets/components/web-animations-js/tools/android/setup.sh +152 -0
- data/app/assets/components/web-animations-js/tools/android/stop.sh +20 -0
- data/app/assets/components/web-animations-js/tools/python/requirements.txt +12 -0
- data/app/assets/components/web-animations-js/tools/python/run-tests.py +813 -0
- data/app/assets/components/web-animations-js/tools/python/setup.sh +60 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +62 -0
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +120 -0
- data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +29 -0
- data/app/assets/components/web-animations-js/tutorial/jquery.js +9555 -0
- data/app/assets/components/web-animations-js/tutorial/page-load.js +114 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +58 -0
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +101 -0
- data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +44 -0
- data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +216 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +344 -0
- data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +84 -0
- data/app/assets/components/{core/animation → web-animations-js}/web-animations.js +77 -214
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +540 -61
- data/app/assets/components/core/animation/web-animations.html.erb +0 -1
- data/app/assets/components/core/icon/core-icon.html.erb +0 -126
- data/app/assets/components/core/input/core-input.css +0 -35
- data/app/assets/components/core/list/core-list.css +0 -20
- data/app/assets/components/core/list/core-list.html.erb +0 -403
- data/app/assets/components/core/transition/core-transition-css.html.erb +0 -76
- data/app/assets/components/core/transition/core-transition.html.erb +0 -44
- data/app/assets/components/paper-input/error-100.png +0 -0
- data/app/assets/components/paper-input/error-200.png +0 -0
- data/app/assets/components/paper-input/paper-input.html.erb +0 -398
- data/app/assets/components/paper-input/paper-input.scss +0 -203
- data/app/assets/components/paper-menu-button/paper-menu-button-overlay.html.erb +0 -86
@@ -0,0 +1,66 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2013 Google Inc. All Rights Reserved.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html><meta charset="UTF-8">
|
18
|
+
<div id="anim"></div>
|
19
|
+
|
20
|
+
<script src="../bootstrap.js"></script>
|
21
|
+
<script>
|
22
|
+
"use strict";
|
23
|
+
|
24
|
+
var anim1 = new Animation(document.getElementById("anim"), {left: "100px"},
|
25
|
+
{iterations: 3.0, duration: 1.0});
|
26
|
+
var anim2 = new Animation(document.getElementById("anim"), {left: "100px"},
|
27
|
+
{duration: 2.0});
|
28
|
+
var animationGroup = new AnimationGroup([anim1, anim2]);
|
29
|
+
|
30
|
+
function expectDuration(anim, duration, error) {
|
31
|
+
test(function() {assert_equals(anim.activeDuration, duration)}, error);
|
32
|
+
}
|
33
|
+
|
34
|
+
function expectEndTime(anim, endTime, error) {
|
35
|
+
test(function() {assert_equals(anim.endTime, endTime)}, error);
|
36
|
+
}
|
37
|
+
|
38
|
+
expectDuration(anim1, 3.0, "Animation 1 duration should match specified value");
|
39
|
+
expectDuration(anim2, 2.0, "Animation 2 duration should match specified value");
|
40
|
+
expectDuration(animationGroup, 3.0,
|
41
|
+
"AnimationGroup duration should be max of childrens' end times");
|
42
|
+
anim1.timing.delay = 2.0;
|
43
|
+
expectDuration(anim1, 3.0, "Animation 1 duration should not include delay");
|
44
|
+
expectEndTime(anim1, 5.0, "Animation 1 end time should include delay");
|
45
|
+
expectDuration(animationGroup, 5.0,
|
46
|
+
"AnimationGroup duration should still be max of childrens' end times");
|
47
|
+
anim2.timing.endDelay = 4.0;
|
48
|
+
expectDuration(anim2, 2.0, "Animation 2 duration should not include endDelay");
|
49
|
+
expectEndTime(anim2, 6.0, "Animation 2 end time should include endDelay");
|
50
|
+
expectDuration(animationGroup, 6.0,
|
51
|
+
"AnimationGroup duration should STILL be max of childrens' end times");
|
52
|
+
|
53
|
+
var animationSequence = new AnimationSequence([anim1, anim2]);
|
54
|
+
expectDuration(animationSequence, 11.0,
|
55
|
+
"AnimationSequence duration should be sum of childrens' total durations");
|
56
|
+
expectEndTime(anim2, 11.0, "Animation 2 end time should include Animation 1");
|
57
|
+
anim1.timing.delay = 4.0;
|
58
|
+
expectEndTime(anim2, 13.0,
|
59
|
+
"Animation 2 end time should be updated by changes to animation 1 delay");
|
60
|
+
anim1.timing.endDelay = 3.0;
|
61
|
+
expectDuration(anim1, 3.0, "Animation 1 duration should not include endDelay");
|
62
|
+
expectEndTime(anim1, 10.0, "Animation 1 end time should include endDelay");
|
63
|
+
expectEndTime(anim2, 16.0, "Animation 2 end time should include Animation 1 endDelay");
|
64
|
+
expectDuration(animationSequence, 16.0,
|
65
|
+
"AnimationSequence duration should still be sum of childrens' total durations");
|
66
|
+
</script>
|
@@ -0,0 +1,164 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2013 Google Inc. All Rights Reserved.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html><meta charset="UTF-8">
|
18
|
+
<body></body>
|
19
|
+
<script src="../bootstrap.js"></script>
|
20
|
+
<script>
|
21
|
+
|
22
|
+
var body = document.querySelector('body');
|
23
|
+
var anims = [body, body, body, body, body, body, body, body, body, body].map(function(element, idx) {
|
24
|
+
return new Animation(element, { left: '100px' }, idx);
|
25
|
+
});
|
26
|
+
|
27
|
+
function initGroup() {
|
28
|
+
return new AnimationGroup(anims.slice(0, 5));
|
29
|
+
}
|
30
|
+
|
31
|
+
function toOrdering(list) {
|
32
|
+
return [].map.call(list, function(animation) { return animation.timing.duration; });
|
33
|
+
}
|
34
|
+
|
35
|
+
function assert_child_order(group, list, message) {
|
36
|
+
assert_array_equals(toOrdering(group.children), list, message);
|
37
|
+
}
|
38
|
+
|
39
|
+
test(function() {
|
40
|
+
var group = new AnimationGroup();
|
41
|
+
group.append(anims[5]);
|
42
|
+
assert_child_order(group, [5],
|
43
|
+
'append on empty group should work');
|
44
|
+
var group = initGroup();
|
45
|
+
group.append(anims[5]);
|
46
|
+
assert_child_order(group, [0, 1, 2, 3, 4, 5],
|
47
|
+
'append should place element 5 at end of group');
|
48
|
+
group.append(anims[6], anims[7], anims[8]);
|
49
|
+
assert_child_order(group, [0, 1, 2, 3, 4, 5, 6, 7, 8],
|
50
|
+
'append should place elements 6, 7, and 8 at end of group');
|
51
|
+
}, 'append');
|
52
|
+
|
53
|
+
test(function() {
|
54
|
+
var group = new AnimationGroup();
|
55
|
+
group.prepend(anims[5]);
|
56
|
+
assert_child_order(group, [5],
|
57
|
+
'prepend on empty group should work');
|
58
|
+
var group = initGroup();
|
59
|
+
group.prepend(anims[5]);
|
60
|
+
assert_child_order(group, [5, 0, 1, 2, 3, 4],
|
61
|
+
'prepend should place element 5 at beginning of group');
|
62
|
+
group.prepend(anims[6], anims[7], anims[8]);
|
63
|
+
assert_child_order(group, [6, 7, 8, 5, 0, 1, 2, 3, 4],
|
64
|
+
'prepend should place elements 6, 7, and 8 at beginning of group');
|
65
|
+
}, 'prepend');
|
66
|
+
|
67
|
+
test(function() {
|
68
|
+
var group = initGroup();
|
69
|
+
assert_equals(group.firstChild, anims[0],
|
70
|
+
'first child should be element 0');
|
71
|
+
group.prepend(anims[8]);
|
72
|
+
assert_equals(group.firstChild, anims[8],
|
73
|
+
'first child after prepend should be prepended element');
|
74
|
+
}, 'firstChild');
|
75
|
+
|
76
|
+
test(function() {
|
77
|
+
var group = initGroup();
|
78
|
+
assert_equals(group.lastChild, anims[4],
|
79
|
+
'last child should be element 4');
|
80
|
+
group.append(anims[8]);
|
81
|
+
assert_equals(group.lastChild, anims[8],
|
82
|
+
'last child after append should be appended element');
|
83
|
+
}, 'lastChild');
|
84
|
+
|
85
|
+
test(function() {
|
86
|
+
var group = initGroup();
|
87
|
+
group.children[2].before(anims[5]);
|
88
|
+
assert_child_order(group, [0, 1, 5, 2, 3, 4],
|
89
|
+
'before should place element 5 before element 2');
|
90
|
+
anims[3].before(anims[6], anims[7], anims[8]);
|
91
|
+
assert_child_order(group, [0, 1, 5, 2, 6, 7, 8, 3, 4],
|
92
|
+
'before should place elements 6, 7, and 8 before element 3');
|
93
|
+
group.firstChild.before(anims[9]);
|
94
|
+
assert_child_order(group, [9, 0, 1, 5, 2, 6, 7, 8, 3, 4],
|
95
|
+
'before should place element 9 at beginning of list');
|
96
|
+
}, 'before');
|
97
|
+
|
98
|
+
test(function() {
|
99
|
+
var group = initGroup();
|
100
|
+
group.children[2].after(anims[5]);
|
101
|
+
assert_child_order(group, [0, 1, 2, 5, 3, 4],
|
102
|
+
'after should place element 5 after element 2');
|
103
|
+
anims[3].after(anims[6], anims[7], anims[8]);
|
104
|
+
assert_child_order(group, [0, 1, 2, 5, 3, 6, 7, 8, 4],
|
105
|
+
'after should place elements 6, 7, and 8 after element 3');
|
106
|
+
group.lastChild.after(anims[9]);
|
107
|
+
assert_child_order(group, [0, 1, 2, 5, 3, 6, 7, 8, 4, 9],
|
108
|
+
'after should place element 9 at end of list');
|
109
|
+
}, 'after');
|
110
|
+
|
111
|
+
test(function() {
|
112
|
+
var group = initGroup();
|
113
|
+
group.children[2].replace(anims[5]);
|
114
|
+
assert_child_order(group, [0, 1, 5, 3, 4],
|
115
|
+
'replace should replace element 2 with element 5');
|
116
|
+
anims[3].replace(anims[6], anims[7], anims[8]);
|
117
|
+
assert_child_order(group, [0, 1, 5, 6, 7, 8, 4],
|
118
|
+
'replace should replace element 3 with elements 6, 7, and 8');
|
119
|
+
group.firstChild.replace(anims[9]);
|
120
|
+
assert_child_order(group, [9, 1, 5, 6, 7, 8, 4],
|
121
|
+
'replace should replace element 0 with element 9');
|
122
|
+
group.lastChild.replace(anims[0]);
|
123
|
+
assert_child_order(group, [9, 1, 5, 6, 7, 8, 0],
|
124
|
+
'replace should replace element 4 with element 0');
|
125
|
+
}, 'replace');
|
126
|
+
|
127
|
+
test(function() {
|
128
|
+
var group = initGroup();
|
129
|
+
group.children[2].remove();
|
130
|
+
assert_child_order(group, [0, 1, 3, 4],
|
131
|
+
'element 2 should be removed');
|
132
|
+
group.firstChild.remove();
|
133
|
+
assert_child_order(group, [1, 3, 4],
|
134
|
+
'first child should be removed');
|
135
|
+
group.lastChild.remove();
|
136
|
+
assert_child_order(group, [1, 3],
|
137
|
+
'last child should be removed');
|
138
|
+
}, 'remove');
|
139
|
+
|
140
|
+
test(function() {
|
141
|
+
var group = initGroup();
|
142
|
+
var group2 = new AnimationGroup();
|
143
|
+
group2.append(group);
|
144
|
+
var group3 = new AnimationSequence();
|
145
|
+
group3.append(group);
|
146
|
+
assert_throws("HierarchyRequestError",
|
147
|
+
function() {
|
148
|
+
group.append(group3);
|
149
|
+
},
|
150
|
+
'group3 should be in hierarchy of group');
|
151
|
+
assert_throws("HierarchyRequestError",
|
152
|
+
function() {
|
153
|
+
group.append(group);
|
154
|
+
},
|
155
|
+
'group should be in its own hierarchy');
|
156
|
+
assert_throws("HierarchyRequestError",
|
157
|
+
function() {
|
158
|
+
anims[3].replace(group);
|
159
|
+
},
|
160
|
+
'group should be in hierarchy of element 3');
|
161
|
+
|
162
|
+
}, 'inclusive ancestors fail');
|
163
|
+
|
164
|
+
</script>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2013 Google Inc. All Rights Reserved.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html><meta charset="UTF-8">
|
18
|
+
<div id="anim"></div>
|
19
|
+
|
20
|
+
<script src="../bootstrap.js"></script>
|
21
|
+
<script>
|
22
|
+
"use strict";
|
23
|
+
|
24
|
+
var anim = new Animation(document.getElementById("anim"), {left: "100px"},
|
25
|
+
{iterations: 3.0});
|
26
|
+
var animationGroup = new AnimationGroup();
|
27
|
+
var animationSequence = new AnimationSequence();
|
28
|
+
|
29
|
+
// Should use intrinsic duration if Timing.duration is undefined.
|
30
|
+
// Animation
|
31
|
+
test(function() {assert_equals(anim.duration, 0.0)},
|
32
|
+
"Animation duration should use intrinsic value");
|
33
|
+
anim.timing.duration = 1.0;
|
34
|
+
test(function() {assert_equals(anim.duration, 1.0)},
|
35
|
+
"Animation duration should use specified value");
|
36
|
+
// AnimationGroup
|
37
|
+
test(function() {assert_equals(animationGroup.duration, 0.0)},
|
38
|
+
"AnimationGroup duration should use intrinsic value");
|
39
|
+
animationGroup.append(anim);
|
40
|
+
test(function() {assert_equals(animationGroup.duration, 3.0)},
|
41
|
+
"AnimationGroup duration should be derived from child");
|
42
|
+
animationGroup.timing.duration = 2.0;
|
43
|
+
test(function() {assert_equals(animationGroup.duration, 2.0)},
|
44
|
+
"AnimationGroup duration should use specified value");
|
45
|
+
// AnimationSequence
|
46
|
+
test(function() {assert_equals(animationSequence.duration, 0.0)},
|
47
|
+
"AnimationSequence duration should use intrinsic value");
|
48
|
+
animationSequence.append(anim);
|
49
|
+
test(function() {assert_equals(animationSequence.duration, 3.0)},
|
50
|
+
"AnimationSequence duration should be derived from child");
|
51
|
+
animationSequence.timing.duration = 4.0;
|
52
|
+
test(function() {assert_equals(animationSequence.duration, 4.0)},
|
53
|
+
"AnimationSequence duration should use specified value");
|
54
|
+
|
55
|
+
test(function() {
|
56
|
+
assert_throws(new TypeError(), function() {
|
57
|
+
anim.duration = 5.0;
|
58
|
+
});
|
59
|
+
assert_equals(anim.duration, 1.0);
|
60
|
+
}, "Animation.duration should be read-only");
|
61
|
+
|
62
|
+
anim.timing.duration = 14.0;
|
63
|
+
test(function() {assert_equals(anim.activeDuration, 42.0)},
|
64
|
+
"activeDuration should always reflect TimedItem.duration");
|
65
|
+
|
66
|
+
</script>
|
@@ -0,0 +1,112 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2013 Google Inc. All Rights Reserved.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html><meta charset="UTF-8">
|
18
|
+
<div id="anim"></div>
|
19
|
+
|
20
|
+
<script src="../bootstrap.js"></script>
|
21
|
+
<script>
|
22
|
+
"use strict";
|
23
|
+
|
24
|
+
var animationGroup = new AnimationGroup();
|
25
|
+
var anim = new Animation(document.getElementById("anim"), {left: "100px"},
|
26
|
+
{iterations: 3.0});
|
27
|
+
var anim1 = new Animation(document.getElementById("anim"), {top: "100px"},
|
28
|
+
{iterations: 3.0});
|
29
|
+
var anim2 = new Animation(document.getElementById("anim"), {width: "100px"},
|
30
|
+
{iterations: 3.0});
|
31
|
+
var anim3 = new Animation(document.getElementById("anim"), {height: "100px"},
|
32
|
+
{iterations: 3.0});
|
33
|
+
|
34
|
+
test(function() {assert_equals(anim.previousSibling, null)},
|
35
|
+
"Single animation should have no previous sibling");
|
36
|
+
|
37
|
+
test(function() {assert_equals(anim.nextSibling, null)},
|
38
|
+
"Single animation should have no next sibling");
|
39
|
+
|
40
|
+
animationGroup.append(anim);
|
41
|
+
|
42
|
+
test(function() {assert_equals(anim.previousSibling, null)},
|
43
|
+
"Single animation in a animationGroup should have no previous sibling");
|
44
|
+
|
45
|
+
test(function() {assert_equals(anim.nextSibling, null)},
|
46
|
+
"Single animation in a animationGroup should have no next sibling");
|
47
|
+
|
48
|
+
animationGroup.prepend(anim1);
|
49
|
+
|
50
|
+
test(function() {assert_equals(anim.previousSibling, anim1)},
|
51
|
+
"Animation should have a previous sibling when there is one");
|
52
|
+
|
53
|
+
test(function() {assert_equals(anim.nextSibling, null)},
|
54
|
+
"Animation should have no next sibling when there is none");
|
55
|
+
|
56
|
+
animationGroup.append(anim2);
|
57
|
+
|
58
|
+
test(function() {assert_equals(anim.previousSibling, anim1)},
|
59
|
+
"Animation should have a previous sibling when there is one");
|
60
|
+
|
61
|
+
test(function() {assert_equals(anim.nextSibling, anim2)},
|
62
|
+
"Animation should have a next sibling when there is one");
|
63
|
+
|
64
|
+
animationGroup.prepend(anim3);
|
65
|
+
|
66
|
+
test(function() {assert_equals(anim.previousSibling, anim1)},
|
67
|
+
"Animation should have the correct previous sibling when there is more than one");
|
68
|
+
|
69
|
+
test(function() {assert_equals(anim.nextSibling, anim2)},
|
70
|
+
"Animation should have a next sibling when there is one");
|
71
|
+
anim1.remove();
|
72
|
+
|
73
|
+
test(function() {assert_equals(anim.previousSibling, anim3)},
|
74
|
+
"Animation should have the correct previous sibling when the old one is removed");
|
75
|
+
|
76
|
+
test(function() {assert_equals(anim.nextSibling, anim2)},
|
77
|
+
"Animation should have a next sibling when there is one");
|
78
|
+
|
79
|
+
anim3.remove();
|
80
|
+
animationGroup.append(anim3);
|
81
|
+
|
82
|
+
test(function() {assert_equals(anim.previousSibling, null)},
|
83
|
+
"Animation should have the no previous sibling when there is none");
|
84
|
+
|
85
|
+
test(function() {assert_equals(anim.nextSibling, anim2)},
|
86
|
+
"Animation should have a next sibling when there is more than one");
|
87
|
+
|
88
|
+
anim2.remove();
|
89
|
+
|
90
|
+
test(function() {assert_equals(anim.previousSibling, null)},
|
91
|
+
"Animation should have the no previous sibling when there is none");
|
92
|
+
|
93
|
+
test(function() {assert_equals(anim.nextSibling, anim3)},
|
94
|
+
"Animation should have the correct next sibling when the old one is removed");
|
95
|
+
|
96
|
+
anim.before(anim1);
|
97
|
+
|
98
|
+
test(function() {assert_equals(anim.previousSibling, anim1)},
|
99
|
+
"Animation should have the correct previous sibling when one is added");
|
100
|
+
|
101
|
+
test(function() {assert_equals(anim.nextSibling, anim3)},
|
102
|
+
"Animation should have the correct next sibling when the old one is removed");
|
103
|
+
|
104
|
+
anim.after(anim2);
|
105
|
+
|
106
|
+
test(function() {assert_equals(anim.previousSibling, anim1)},
|
107
|
+
"Animation should have a previous sibling when there is one");
|
108
|
+
|
109
|
+
test(function() {assert_equals(anim.nextSibling, anim2)},
|
110
|
+
"Animation should have the correct next sibling when a new one is added");
|
111
|
+
|
112
|
+
</script>
|
data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
<!--
|
2
|
+
Copyright 2013 Google Inc. All Rights Reserved.
|
3
|
+
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
See the License for the specific language governing permissions and
|
14
|
+
limitations under the License.
|
15
|
+
-->
|
16
|
+
|
17
|
+
<!DOCTYPE html><meta charset="UTF-8">
|
18
|
+
<div id="anim"></div>
|
19
|
+
|
20
|
+
<script src="../bootstrap.js"></script>
|
21
|
+
<script>
|
22
|
+
"use strict";
|
23
|
+
|
24
|
+
var anim = new Animation(document.getElementById("anim"), {left: "100px"},
|
25
|
+
1.0);
|
26
|
+
|
27
|
+
// Test that updates to a TimedItem's startTime, or duration
|
28
|
+
// cause corresponding updates to its endTime.
|
29
|
+
test(function() {assert_equals(anim.endTime, 1.0)},
|
30
|
+
"endTime should reflect initial duration");
|
31
|
+
test(function() {
|
32
|
+
assert_throws(new TypeError(), function() {
|
33
|
+
anim.startTime = 2.0;
|
34
|
+
});
|
35
|
+
assert_equals(anim.startTime, 0.0);
|
36
|
+
}, "startTime should be read-only");
|
37
|
+
anim.timing.duration = 3.0;
|
38
|
+
test(function() {assert_equals(anim.endTime, 3.0)},
|
39
|
+
"endTime should reflect Timing.duration");
|
40
|
+
anim.timing.duration = 4.0;
|
41
|
+
test(function() {assert_equals(anim.endTime, 4.0)},
|
42
|
+
"endTime should reflect duration");
|
43
|
+
|
44
|
+
test(function() {
|
45
|
+
assert_throws(new TypeError(), function() {
|
46
|
+
anim.endTime = 6.5;
|
47
|
+
});
|
48
|
+
assert_true(anim.endTime != 6.5);
|
49
|
+
}, "TimedItem.endTime should be read-only");
|
50
|
+
|
51
|
+
// Test that updates to a TimedItem's endTime cause re-layout of a parent
|
52
|
+
// parallel group.
|
53
|
+
anim.timing.duration = 3;
|
54
|
+
var animationGroup = new AnimationGroup([anim]);
|
55
|
+
test(function() {assert_equals(animationGroup.duration, 3.0)},
|
56
|
+
"Parallel group duration should reflect child endTime");
|
57
|
+
test(function() {assert_equals(animationGroup.endTime, 3.0)},
|
58
|
+
"Parallel group end time should reflect child endTime");
|
59
|
+
// Update via Timing.duration
|
60
|
+
anim.timing.duration = 8.0;
|
61
|
+
test(function() {assert_equals(animationGroup.duration, 8.0)},
|
62
|
+
"Parallel group duration should reflect updated child Timing.duration");
|
63
|
+
test(function() {assert_equals(animationGroup.endTime, 8.0)},
|
64
|
+
"Parallel group end time should reflect updated child Timing.duration");
|
65
|
+
// Update via duration
|
66
|
+
anim.timing.duration = 9.0;
|
67
|
+
test(function() {assert_equals(animationGroup.duration, 9.0)},
|
68
|
+
"Parallel group duration should reflect updated child duration");
|
69
|
+
test(function() {assert_equals(animationGroup.endTime, 9.0)},
|
70
|
+
"Parallel group end time should reflect updated child duration");
|
71
|
+
|
72
|
+
// Test that updates to a TimedItem's delay and duration cause
|
73
|
+
// re-layout of a parent sequence group.
|
74
|
+
anim.timing.duration = "auto";
|
75
|
+
var siblingAnim = new Animation(document.getElementById("anim"), {top: "100px"},
|
76
|
+
1.0);
|
77
|
+
var animationSequence = new AnimationSequence([anim, siblingAnim]);
|
78
|
+
test(function() {assert_equals(anim.startTime, 0.0)},
|
79
|
+
"Sequence group should reset child startTime");
|
80
|
+
test(function() {assert_equals(siblingAnim.startTime, 0.0)},
|
81
|
+
"Sequence group should set child startTime");
|
82
|
+
test(function() {assert_equals(siblingAnim.endTime, 1.0)},
|
83
|
+
"Sequence group should set child endTime");
|
84
|
+
test(function() {assert_equals(animationSequence.duration, 1.0)},
|
85
|
+
"Sequence group duration should reflect child durations");
|
86
|
+
test(function() {assert_equals(animationSequence.endTime, 1.0)},
|
87
|
+
"Sequence group end time should reflect child durations");
|
88
|
+
// delay
|
89
|
+
anim.timing.delay = 11.0;
|
90
|
+
test(function() {assert_equals(siblingAnim.startTime, 11.0)},
|
91
|
+
"Sequence group should update sibling after updated child delay");
|
92
|
+
test(function() {assert_equals(animationSequence.duration, 12.0)},
|
93
|
+
"Sequence group duration should reflect updated child delay");
|
94
|
+
test(function() {assert_equals(animationSequence.endTime, 12.0)},
|
95
|
+
"Sequence group end time should reflect updated child delay");
|
96
|
+
// duration
|
97
|
+
anim.timing.duration = 12.0;
|
98
|
+
test(function() {assert_equals(siblingAnim.startTime, 23.0)},
|
99
|
+
"Sequence group should update sibling after updated child Timing.duration");
|
100
|
+
test(function() {assert_equals(animationSequence.duration, 24.0)},
|
101
|
+
"Sequence group duration should reflect updated child Timing.duration");
|
102
|
+
test(function() {assert_equals(animationSequence.endTime, 24.0)},
|
103
|
+
"Sequence group end time should reflect updated child Timing.duration");
|
104
|
+
|
105
|
+
</script>
|