polymer-paper-rails 0.2.0 → 0.2.5
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-a11y-keys/core-a11y-keys.html +335 -0
- data/app/assets/components/core-animation/core-animation.html +7 -6
- data/app/assets/components/core-animation/web-animations.html +1 -1
- data/app/assets/components/core-collapse/core-collapse.html +41 -5
- data/app/assets/components/core-component-page/core-component-page.html +1 -1
- data/app/assets/components/core-drawer-panel/core-drawer-panel.css +14 -9
- data/app/assets/components/core-drawer-panel/core-drawer-panel.html +76 -21
- data/app/assets/components/core-drawer-panel/metadata.html +1 -1
- data/app/assets/components/core-dropdown/core-dropdown-base.html +117 -0
- data/app/assets/components/core-dropdown/core-dropdown.html +305 -0
- data/app/assets/components/core-dropdown/metadata.html +62 -0
- data/app/assets/components/core-elements/paper-elements.html +2 -0
- data/app/assets/components/core-focusable/core-focusable.html +4 -0
- data/app/assets/components/core-focusable/core-focusable.js +134 -0
- data/app/assets/components/core-focusable/polymer-mixin.js +35 -0
- data/app/assets/components/core-header-panel/core-header-panel.css +6 -3
- data/app/assets/components/core-header-panel/core-header-panel.html +96 -44
- data/app/assets/components/core-header-panel/metadata.html +1 -1
- data/app/assets/components/core-icon/core-icon.html +19 -5
- data/app/assets/components/core-icons/av-icons.html +57 -31
- data/app/assets/components/core-icons/communication-icons.html +42 -44
- data/app/assets/components/core-icons/core-icons.html +267 -263
- data/app/assets/components/core-icons/device-icons.html +90 -44
- data/app/assets/components/core-icons/editor-icons.html +52 -52
- data/app/assets/components/core-icons/hardware-icons.html +42 -43
- data/app/assets/components/core-icons/image-icons.html +140 -130
- data/app/assets/components/core-icons/maps-icons.html +57 -54
- data/app/assets/components/core-icons/notification-icons.html +34 -35
- data/app/assets/components/core-icons/social-icons.html +38 -37
- data/app/assets/components/core-iconset-svg/core-iconset-svg.html +1 -1
- data/app/assets/components/core-input/core-input.css +3 -7
- data/app/assets/components/core-input/core-input.html +105 -411
- data/app/assets/components/core-input/metadata.html +6 -3
- data/app/assets/components/core-item/core-item.css +7 -6
- data/app/assets/components/core-item/core-item.html +4 -5
- data/app/assets/components/core-item/metadata.html +1 -1
- data/app/assets/components/core-label/core-label.html +124 -0
- data/app/assets/components/core-menu/core-menu.css +3 -3
- data/app/assets/components/core-menu/core-menu.html +8 -2
- data/app/assets/components/core-menu/core-submenu.css +14 -0
- data/app/assets/components/core-menu/core-submenu.html +21 -1
- data/app/assets/components/core-overlay/core-overlay-layer.html +1 -0
- data/app/assets/components/core-overlay/core-overlay.html +163 -90
- data/app/assets/components/core-overlay/gulpfile.js +2 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-basic.html +127 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning-margin.html +153 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-positioning.html +167 -0
- data/app/assets/components/core-overlay/tests/html/core-overlay-scroll.html +130 -0
- data/app/assets/components/core-overlay/tests/js/htmltests.js +6 -0
- data/app/assets/components/core-overlay/tests/runner.html +14 -0
- data/app/assets/components/core-overlay/tests/tests.json +6 -0
- data/app/assets/components/core-scroll-header-panel/core-scroll-header-panel.html +45 -9
- data/app/assets/components/core-scroll-header-panel/metadata.html +1 -1
- data/app/assets/components/core-selector/core-selector.html +116 -28
- data/app/assets/components/core-selector/metadata.html +1 -1
- data/app/assets/components/core-style/core-style.html +4 -4
- data/app/assets/components/core-style/elements.html +1 -1
- data/app/assets/components/core-style/my-theme.html +1 -1
- data/app/assets/components/core-toolbar/core-toolbar.css +14 -7
- data/app/assets/components/core-toolbar/core-toolbar.html +88 -7
- data/app/assets/components/core-toolbar/metadata.html +1 -1
- data/app/assets/components/core-transition/core-transition-css.html +1 -2
- data/app/assets/components/core-transition/core-transition-overlay.css +9 -9
- data/app/assets/components/core-transition/core-transition.html +1 -1
- data/app/assets/components/font-roboto/roboto.html +1 -1
- data/app/assets/components/paper-button/metadata.html +2 -2
- data/app/assets/components/paper-button/paper-button-base.html +120 -0
- data/app/assets/components/paper-button/paper-button.html +114 -145
- data/app/assets/components/paper-checkbox/paper-checkbox.css +1 -1
- data/app/assets/components/paper-dialog/paper-action-dialog.html +104 -0
- data/app/assets/components/paper-dialog/paper-dialog-base.html +81 -0
- data/app/assets/components/paper-dialog/paper-dialog-transition.html +1 -1
- data/app/assets/components/paper-dialog/paper-dialog.html +68 -143
- data/app/assets/components/{paper-dropdown/paper-dropdown.css → paper-dropdown-menu/paper-dropdown-menu.css} +1 -5
- data/app/assets/components/paper-dropdown-menu/paper-dropdown-menu.html +181 -0
- data/app/assets/components/{polymer/polymer.html → paper-dropdown/paper-dropdown-transition.css} +9 -7
- data/app/assets/components/paper-dropdown/paper-dropdown-transition.html +166 -0
- data/app/assets/components/paper-dropdown/paper-dropdown.html +69 -143
- data/app/assets/components/paper-fab/metadata.html +1 -1
- data/app/assets/components/paper-fab/paper-fab.html +140 -16
- data/app/assets/components/paper-icon-button/paper-icon-button.html +99 -32
- data/app/assets/components/paper-input/metadata.html +1 -4
- data/app/assets/components/paper-input/paper-autogrow-textarea.html +157 -0
- data/app/assets/components/paper-input/{paper-input.css → paper-input-decorator.css} +25 -25
- data/app/assets/components/paper-input/paper-input-decorator.html +468 -0
- data/app/assets/components/paper-input/paper-input.html +74 -269
- data/app/assets/components/paper-item/metadata.html +1 -1
- data/app/assets/components/paper-item/paper-item.html +95 -52
- data/app/assets/components/paper-menu-button/metadata.html +1 -1
- data/app/assets/components/paper-menu-button/paper-menu-button.css +38 -19
- data/app/assets/components/paper-menu-button/paper-menu-button.html +57 -138
- data/app/assets/components/paper-progress/paper-progress.css +39 -6
- data/app/assets/components/paper-progress/paper-progress.html +30 -4
- data/app/assets/components/paper-radio-button/paper-radio-button.html +3 -0
- data/app/assets/components/paper-radio-group/paper-radio-group.html +34 -1
- data/app/assets/components/paper-ripple/paper-ripple.html +110 -61
- data/app/assets/components/paper-shadow/metadata.html +2 -2
- data/app/assets/components/paper-shadow/paper-shadow.css +20 -45
- data/app/assets/components/paper-shadow/paper-shadow.html +55 -195
- data/app/assets/components/paper-slider/paper-slider.css +15 -1
- data/app/assets/components/paper-slider/paper-slider.html +98 -57
- data/app/assets/components/paper-spinner/paper-spinner.css +311 -0
- data/app/assets/components/paper-spinner/paper-spinner.html +116 -0
- data/app/assets/components/paper-tabs/paper-tab.css +26 -16
- data/app/assets/components/paper-tabs/paper-tab.html +24 -8
- data/app/assets/components/paper-tabs/paper-tabs.css +31 -13
- data/app/assets/components/paper-tabs/paper-tabs.html +217 -20
- data/app/assets/components/paper-toast/paper-toast.html +44 -6
- data/app/assets/components/paper-toggle-button/paper-toggle-button.css +7 -1
- data/app/assets/components/paper-toggle-button/paper-toggle-button.html +12 -2
- data/app/assets/components/sampler-scaffold/sampler-scaffold.css +2 -1
- data/app/assets/components/web-animations-next/Gruntfile.js +279 -0
- data/app/assets/components/web-animations-next/History.md +76 -0
- data/app/assets/components/web-animations-next/package.json +33 -0
- data/app/assets/components/web-animations-next/src/animation-constructor.js +139 -0
- data/app/assets/components/web-animations-next/src/animation-node.js +31 -0
- data/app/assets/components/web-animations-next/src/animation.js +65 -0
- data/app/assets/components/web-animations-next/src/apply-preserving-inline-style.js +192 -0
- data/app/assets/components/web-animations-next/src/apply.js +25 -0
- data/app/assets/components/web-animations-next/src/box-handler.js +57 -0
- data/app/assets/components/web-animations-next/src/color-handler.js +62 -0
- data/app/assets/components/web-animations-next/src/deprecation.js +42 -0
- data/app/assets/components/web-animations-next/src/dev.js +16 -0
- data/app/assets/components/web-animations-next/src/dimension-handler.js +167 -0
- data/app/assets/components/web-animations-next/src/effect-callback.js +86 -0
- data/app/assets/components/web-animations-next/src/effect.js +110 -0
- data/app/assets/components/web-animations-next/src/element-animatable.js +19 -0
- data/app/assets/components/web-animations-next/src/font-weight-handler.js +42 -0
- data/app/assets/components/web-animations-next/src/group-constructors.js +81 -0
- data/app/assets/components/web-animations-next/src/handler-utils.js +177 -0
- data/app/assets/components/web-animations-next/src/interpolation.js +49 -0
- data/app/assets/components/web-animations-next/src/matrix-decomposition.js +452 -0
- data/app/assets/components/web-animations-next/src/matrix-interpolation.js +130 -0
- data/app/assets/components/web-animations-next/src/maxifill-player.js +162 -0
- data/app/assets/components/web-animations-next/src/normalize-keyframes.js +259 -0
- data/app/assets/components/web-animations-next/src/number-handler.js +72 -0
- data/app/assets/components/web-animations-next/src/player.js +193 -0
- data/app/assets/components/web-animations-next/src/position-handler.js +117 -0
- data/app/assets/components/web-animations-next/src/property-interpolation.js +62 -0
- data/app/assets/components/web-animations-next/src/property-names.js +35 -0
- data/app/assets/components/web-animations-next/src/scope.js +20 -0
- data/app/assets/components/web-animations-next/src/shadow-handler.js +108 -0
- data/app/assets/components/web-animations-next/src/shape-handler.js +85 -0
- data/app/assets/components/web-animations-next/src/tick.js +148 -0
- data/app/assets/components/web-animations-next/src/timeline.js +77 -0
- data/app/assets/components/web-animations-next/src/timing-utilities.js +242 -0
- data/app/assets/components/web-animations-next/src/transform-handler.js +262 -0
- data/app/assets/components/web-animations-next/src/visibility-handler.js +29 -0
- data/app/assets/components/web-animations-next/target-config.js +124 -0
- data/app/assets/components/web-animations-next/target-loader.js +13 -0
- data/app/assets/components/web-animations-next/templates/boilerplate +13 -0
- data/app/assets/components/web-animations-next/templates/runner.html +26 -0
- data/app/assets/components/web-animations-next/templates/web-animations.html +18 -0
- data/app/assets/components/web-animations-next/templates/web-animations.js +21 -0
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.html +44 -0
- data/app/assets/components/web-animations-next/web-animations-next-lite.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations-next.dev.html +49 -0
- data/app/assets/components/web-animations-next/web-animations-next.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations.dev.html +44 -0
- data/app/assets/components/web-animations-next/web-animations.dev.js +21 -0
- data/app/assets/components/web-animations-next/web-animations.html +50 -0
- data/lib/polymer-paper-rails/version.rb +1 -1
- metadata +82 -421
- data/app/assets/components/core-animation/README.md +0 -4
- data/app/assets/components/core-animation/bower.json +0 -8
- data/app/assets/components/core-animation/demo.html +0 -149
- data/app/assets/components/core-animation/index.html +0 -22
- data/app/assets/components/core-collapse/README.md +0 -4
- data/app/assets/components/core-collapse/bower.json +0 -7
- data/app/assets/components/core-collapse/demo.html +0 -93
- data/app/assets/components/core-collapse/index.html +0 -22
- data/app/assets/components/core-component-page/README.md +0 -6
- data/app/assets/components/core-component-page/bower.json +0 -8
- data/app/assets/components/core-component-page/demo.html +0 -23
- data/app/assets/components/core-component-page/index.html +0 -22
- data/app/assets/components/core-drawer-panel/README.md +0 -4
- data/app/assets/components/core-drawer-panel/bower.json +0 -8
- data/app/assets/components/core-drawer-panel/demo.html +0 -73
- data/app/assets/components/core-drawer-panel/index.html +0 -22
- data/app/assets/components/core-elements/README.md +0 -4
- data/app/assets/components/core-elements/bower.json +0 -29
- data/app/assets/components/core-elements/demo.html +0 -105
- data/app/assets/components/core-elements/demos/core-toolbar.html +0 -98
- data/app/assets/components/core-field/README.md +0 -4
- data/app/assets/components/core-field/bower.json +0 -7
- data/app/assets/components/core-field/demo.html +0 -67
- data/app/assets/components/core-field/index.html +0 -22
- data/app/assets/components/core-header-panel/README.md +0 -4
- data/app/assets/components/core-header-panel/bower.json +0 -7
- data/app/assets/components/core-header-panel/demo.html +0 -100
- data/app/assets/components/core-header-panel/index.html +0 -23
- data/app/assets/components/core-icon-button/README.md +0 -4
- data/app/assets/components/core-icon-button/bower.json +0 -7
- data/app/assets/components/core-icon-button/demo.html +0 -35
- data/app/assets/components/core-icon-button/index.html +0 -22
- data/app/assets/components/core-icon/README.md +0 -4
- data/app/assets/components/core-icon/bower.json +0 -8
- data/app/assets/components/core-icon/demo.html +0 -44
- data/app/assets/components/core-icon/index.html +0 -22
- data/app/assets/components/core-icons/README.md +0 -4
- data/app/assets/components/core-icons/bower.json +0 -9
- data/app/assets/components/core-icons/demo.html +0 -96
- data/app/assets/components/core-icons/index.html +0 -22
- data/app/assets/components/core-iconset-svg/README.md +0 -4
- data/app/assets/components/core-iconset-svg/bower.json +0 -8
- data/app/assets/components/core-iconset-svg/demo.html +0 -66
- data/app/assets/components/core-iconset-svg/index.html +0 -22
- data/app/assets/components/core-iconset/README.md +0 -4
- data/app/assets/components/core-iconset/bower.json +0 -9
- data/app/assets/components/core-iconset/demo.html +0 -62
- data/app/assets/components/core-iconset/index.html +0 -22
- data/app/assets/components/core-input/README.md +0 -2
- data/app/assets/components/core-input/bower.json +0 -6
- data/app/assets/components/core-input/demo.html +0 -142
- data/app/assets/components/core-input/index.html +0 -22
- data/app/assets/components/core-item/README.md +0 -4
- data/app/assets/components/core-item/bower.json +0 -8
- data/app/assets/components/core-item/demo.html +0 -92
- data/app/assets/components/core-item/index.html +0 -22
- data/app/assets/components/core-media-query/README.md +0 -4
- data/app/assets/components/core-media-query/bower.json +0 -7
- data/app/assets/components/core-media-query/demo.html +0 -44
- data/app/assets/components/core-media-query/index.html +0 -22
- data/app/assets/components/core-menu/README.md +0 -4
- data/app/assets/components/core-menu/bower.json +0 -9
- data/app/assets/components/core-menu/demo.html +0 -101
- data/app/assets/components/core-menu/index.html +0 -22
- data/app/assets/components/core-meta/README.md +0 -4
- data/app/assets/components/core-meta/bower.json +0 -7
- data/app/assets/components/core-meta/demo.html +0 -58
- data/app/assets/components/core-meta/index.html +0 -22
- data/app/assets/components/core-overlay/README.md +0 -4
- data/app/assets/components/core-overlay/bower.json +0 -8
- data/app/assets/components/core-overlay/demo.html +0 -155
- data/app/assets/components/core-overlay/index.html +0 -22
- data/app/assets/components/core-popup-menu/README.md +0 -6
- data/app/assets/components/core-popup-menu/bower.json +0 -13
- data/app/assets/components/core-popup-menu/demo.html +0 -542
- data/app/assets/components/core-popup-menu/index.html +0 -22
- data/app/assets/components/core-range/README.md +0 -2
- data/app/assets/components/core-range/bower.json +0 -7
- data/app/assets/components/core-range/demo.html +0 -64
- data/app/assets/components/core-range/index.html +0 -22
- data/app/assets/components/core-scroll-header-panel/README.md +0 -4
- data/app/assets/components/core-scroll-header-panel/bower.json +0 -11
- data/app/assets/components/core-scroll-header-panel/demo.html +0 -111
- data/app/assets/components/core-scroll-header-panel/demos/demo1.html +0 -80
- data/app/assets/components/core-scroll-header-panel/demos/demo2.html +0 -82
- data/app/assets/components/core-scroll-header-panel/demos/demo3.html +0 -81
- data/app/assets/components/core-scroll-header-panel/demos/demo4.html +0 -109
- data/app/assets/components/core-scroll-header-panel/demos/demo5.html +0 -109
- data/app/assets/components/core-scroll-header-panel/demos/demo6.html +0 -113
- data/app/assets/components/core-scroll-header-panel/demos/demo7.html +0 -120
- data/app/assets/components/core-scroll-header-panel/demos/demo8.html +0 -122
- data/app/assets/components/core-scroll-header-panel/demos/demo9.html +0 -100
- 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 +0 -42
- data/app/assets/components/core-scroll-header-panel/index.html +0 -22
- data/app/assets/components/core-selection/README.md +0 -4
- data/app/assets/components/core-selection/bower.json +0 -7
- data/app/assets/components/core-selection/demo.html +0 -59
- data/app/assets/components/core-selection/index.html +0 -22
- data/app/assets/components/core-selector/README.md +0 -4
- data/app/assets/components/core-selector/bower.json +0 -8
- data/app/assets/components/core-selector/demo.html +0 -106
- data/app/assets/components/core-selector/index.html +0 -22
- data/app/assets/components/core-style/README.md +0 -4
- data/app/assets/components/core-style/bower.json +0 -7
- data/app/assets/components/core-style/demo.html +0 -58
- data/app/assets/components/core-style/index.html +0 -22
- data/app/assets/components/core-toolbar/README.md +0 -4
- data/app/assets/components/core-toolbar/bower.json +0 -7
- data/app/assets/components/core-toolbar/demo.html +0 -107
- data/app/assets/components/core-toolbar/index.html +0 -22
- data/app/assets/components/core-transition/README.md +0 -2
- data/app/assets/components/core-transition/bower.json +0 -8
- data/app/assets/components/core-transition/demo.html +0 -87
- data/app/assets/components/core-transition/index.html +0 -22
- data/app/assets/components/paper-button/README.md +0 -4
- data/app/assets/components/paper-button/bower.json +0 -11
- data/app/assets/components/paper-button/demo.html +0 -99
- data/app/assets/components/paper-button/demo2.html +0 -136
- data/app/assets/components/paper-button/index.html +0 -22
- data/app/assets/components/paper-button/paper-button.css +0 -125
- data/app/assets/components/paper-checkbox/README.md +0 -4
- data/app/assets/components/paper-checkbox/bower.json +0 -8
- data/app/assets/components/paper-checkbox/demo.html +0 -113
- data/app/assets/components/paper-checkbox/index.html +0 -22
- data/app/assets/components/paper-dialog/README.md +0 -4
- data/app/assets/components/paper-dialog/bower.json +0 -10
- data/app/assets/components/paper-dialog/demo.html +0 -85
- data/app/assets/components/paper-dialog/index.html +0 -22
- data/app/assets/components/paper-dialog/paper-dialog.css +0 -52
- data/app/assets/components/paper-dropdown/README.md +0 -9
- data/app/assets/components/paper-dropdown/bower.json +0 -12
- data/app/assets/components/paper-dropdown/demo.html +0 -345
- data/app/assets/components/paper-dropdown/index.html +0 -22
- data/app/assets/components/paper-fab/README.md +0 -4
- data/app/assets/components/paper-fab/bower.json +0 -8
- data/app/assets/components/paper-fab/demo.html +0 -72
- data/app/assets/components/paper-fab/demo2.html +0 -103
- data/app/assets/components/paper-fab/index.html +0 -22
- data/app/assets/components/paper-fab/paper-fab.css +0 -36
- data/app/assets/components/paper-focusable/README.md +0 -4
- data/app/assets/components/paper-focusable/bower.json +0 -7
- data/app/assets/components/paper-focusable/demo.html +0 -155
- data/app/assets/components/paper-icon-button/README.md +0 -4
- data/app/assets/components/paper-icon-button/bower.json +0 -9
- data/app/assets/components/paper-icon-button/demo.html +0 -102
- data/app/assets/components/paper-icon-button/index.html +0 -22
- data/app/assets/components/paper-icon-button/paper-icon-button.css +0 -17
- data/app/assets/components/paper-icon-button/pulse-ink.css +0 -20
- data/app/assets/components/paper-input/README.md +0 -4
- data/app/assets/components/paper-input/bower.json +0 -11
- data/app/assets/components/paper-input/demo.html +0 -124
- data/app/assets/components/paper-input/index.html +0 -22
- data/app/assets/components/paper-item/README.md +0 -4
- data/app/assets/components/paper-item/bower.json +0 -9
- data/app/assets/components/paper-item/demo.html +0 -39
- data/app/assets/components/paper-item/index.html +0 -22
- data/app/assets/components/paper-item/paper-item.css +0 -43
- data/app/assets/components/paper-menu-button/README.md +0 -4
- data/app/assets/components/paper-menu-button/bower.json +0 -16
- data/app/assets/components/paper-menu-button/demo.html +0 -95
- data/app/assets/components/paper-menu-button/index.html +0 -22
- data/app/assets/components/paper-menu-button/paper-menu-button-transition.css +0 -19
- data/app/assets/components/paper-menu-button/paper-menu-button-transition.html +0 -123
- data/app/assets/components/paper-progress/README.md +0 -4
- data/app/assets/components/paper-progress/bower.json +0 -8
- data/app/assets/components/paper-progress/demo.html +0 -107
- data/app/assets/components/paper-progress/index.html +0 -22
- data/app/assets/components/paper-radio-button/README.md +0 -4
- data/app/assets/components/paper-radio-button/bower.json +0 -7
- data/app/assets/components/paper-radio-button/demo.html +0 -75
- data/app/assets/components/paper-radio-button/index.html +0 -22
- data/app/assets/components/paper-radio-group/README.md +0 -4
- data/app/assets/components/paper-radio-group/bower.json +0 -9
- data/app/assets/components/paper-radio-group/demo.html +0 -82
- data/app/assets/components/paper-radio-group/index.html +0 -22
- data/app/assets/components/paper-ripple/README.md +0 -4
- data/app/assets/components/paper-ripple/bower.json +0 -9
- data/app/assets/components/paper-ripple/demo.html +0 -418
- data/app/assets/components/paper-ripple/index.html +0 -22
- data/app/assets/components/paper-ripple/raw.html +0 -799
- data/app/assets/components/paper-shadow/README.md +0 -4
- data/app/assets/components/paper-shadow/bower.json +0 -7
- data/app/assets/components/paper-shadow/demo.html +0 -252
- data/app/assets/components/paper-shadow/index.html +0 -22
- data/app/assets/components/paper-slider/README.md +0 -4
- data/app/assets/components/paper-slider/bower.json +0 -9
- data/app/assets/components/paper-slider/demo.html +0 -151
- data/app/assets/components/paper-slider/index.html +0 -22
- data/app/assets/components/paper-tabs/README.md +0 -4
- data/app/assets/components/paper-tabs/bower.json +0 -12
- data/app/assets/components/paper-tabs/demo.html +0 -166
- data/app/assets/components/paper-tabs/index.html +0 -22
- data/app/assets/components/paper-toast/README.md +0 -4
- data/app/assets/components/paper-toast/bower.json +0 -10
- data/app/assets/components/paper-toast/demo.html +0 -67
- data/app/assets/components/paper-toast/index.html +0 -22
- data/app/assets/components/paper-toggle-button/README.md +0 -4
- data/app/assets/components/paper-toggle-button/bower.json +0 -8
- data/app/assets/components/paper-toggle-button/demo.html +0 -77
- data/app/assets/components/paper-toggle-button/index.html +0 -22
- data/app/assets/components/platform/README.md +0 -6
- data/app/assets/components/platform/bower.json +0 -16
- data/app/assets/components/platform/build.log +0 -35
- data/app/assets/components/platform/platform.js.map +0 -1
- data/app/assets/components/polymer/README.md +0 -17
- data/app/assets/components/polymer/bower.json +0 -8
- data/app/assets/components/polymer/build.log +0 -35
- data/app/assets/components/polymer/layout.html +0 -286
- data/app/assets/components/polymer/polymer.js +0 -14
- data/app/assets/components/polymer/polymer.js.map +0 -1
- data/app/assets/components/sampler-scaffold/README.md +0 -4
- data/app/assets/components/sampler-scaffold/bower.json +0 -12
- data/app/assets/components/sampler-scaffold/demo.html +0 -54
- data/app/assets/components/sampler-scaffold/demos/checkbox.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/color.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/radio.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/range.html +0 -20
- data/app/assets/components/sampler-scaffold/demos/string.html +0 -20
- data/app/assets/components/sampler-scaffold/index.html +0 -22
- data/app/assets/components/web-animations-js/COPYING +0 -202
- data/app/assets/components/web-animations-js/README.md +0 -237
- data/app/assets/components/web-animations-js/run-lint.sh +0 -19
- data/app/assets/components/web-animations-js/run-tests-android.sh +0 -25
- data/app/assets/components/web-animations-js/run-tests.sh +0 -15
- data/app/assets/components/web-animations-js/test/bootstrap.js +0 -1266
- 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 +0 -147
- data/app/assets/components/web-animations-js/test/perf/balls-replace-compositing.html +0 -144
- data/app/assets/components/web-animations-js/test/perf/perf.js +0 -158
- data/app/assets/components/web-animations-js/test/perf/updating-inline-style-during-animation.html +0 -165
- data/app/assets/components/web-animations-js/test/test-generator.html +0 -240
- data/app/assets/components/web-animations-js/test/test-results-post.html +0 -3
- data/app/assets/components/web-animations-js/test/test-runner.html +0 -810
- data/app/assets/components/web-animations-js/test/testcases.js +0 -93
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow-checks.js +0 -42
- data/app/assets/components/web-animations-js/test/testcases/auto-test-box-shadow.html +0 -40
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc-checks.js +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-calc.html +0 -156
- data/app/assets/components/web-animations-js/test/testcases/auto-test-change-playback-rate-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path-checks.js +0 -65
- data/app/assets/components/web-animations-js/test/testcases/auto-test-circular-path.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-checks.js +0 -101
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names-checks.js +0 -431
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color-names.html +0 -204
- data/app/assets/components/web-animations-js/test/testcases/auto-test-color.html +0 -117
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js +0 -45
- data/app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms.html +0 -97
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-compositor.html +0 -68
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay-checks.js +0 -92
- data/app/assets/components/web-animations-js/test/testcases/auto-test-delay.html +0 -39
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate-checks.js +0 -8
- data/app/assets/components/web-animations-js/test/testcases/auto-test-element-animate.html +0 -30
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values-checks.js +0 -266
- data/app/assets/components/web-animations-js/test/testcases/auto-test-fill-values.html +0 -114
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-font-weight.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial-checks.js +0 -74
- data/app/assets/components/web-animations-js/test/testcases/auto-test-initial.html +0 -242
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-fallback.html +0 -78
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods-checks.js +0 -17
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style-methods.html +0 -70
- data/app/assets/components/web-animations-js/test/testcases/auto-test-inline-style.html +0 -69
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer-checks.js +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-integer.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start-checks.js +0 -506
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iteration-start.html +0 -160
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-checks.js +0 -44
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes-checks.js +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate-holes.html +0 -48
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-alternate.html +0 -50
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic-checks.js +0 -162
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-basic.html +0 -116
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill-checks.js +0 -602
- data/app/assets/components/web-animations-js/test/testcases/auto-test-iterations-fill.html +0 -167
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation-checks.js +0 -67
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-creation.html +0 -109
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing-checks.js +0 -65
- data/app/assets/components/web-animations-js/test/testcases/auto-test-keyframe-easing.html +0 -64
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units-checks.js +0 -342
- data/app/assets/components/web-animations-js/test/testcases/auto-test-length-units.html +0 -103
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms-checks.js +0 -56
- data/app/assets/components/web-animations-js/test/testcases/auto-test-matrix-transforms.html +0 -90
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path-checks.js +0 -110
- data/app/assets/components/web-animations-js/test/testcases/auto-test-motion-path.html +0 -133
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric-checks.js +0 -26
- data/app/assets/components/web-animations-js/test/testcases/auto-test-non-numeric.html +0 -42
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent-checks.js +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-parent.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes-checks.js +0 -27
- data/app/assets/components/web-animations-js/test/testcases/auto-test-partial-keyframes.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-path.html +0 -41
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause-checks.js +0 -79
- data/app/assets/components/web-animations-js/test/testcases/auto-test-pause.html +0 -82
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-checks.js +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin-checks.js +0 -61
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective-origin.html +0 -94
- data/app/assets/components/web-animations-js/test/testcases/auto-test-perspective.html +0 -79
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate-checks.js +0 -146
- data/app/assets/components/web-animations-js/test/testcases/auto-test-playback-rate.html +0 -128
- data/app/assets/components/web-animations-js/test/testcases/auto-test-position-list-type-checks.js +0 -73
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-rectangle.html +0 -57
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent-checks.js +0 -95
- data/app/assets/components/web-animations-js/test/testcases/auto-test-reparent.html +0 -60
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed-checks.js +0 -69
- data/app/assets/components/web-animations-js/test/testcases/auto-test-seq-speed.html +0 -86
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand-checks.js +0 -197
- data/app/assets/components/web-animations-js/test/testcases/auto-test-shorthand.html +0 -115
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations-checks.js +0 -92
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time-iterations.html +0 -107
- data/app/assets/components/web-animations-js/test/testcases/auto-test-start-time.html +0 -90
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-anim.html +0 -39
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle-checks.js +0 -23
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-circle.html +0 -38
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-svg-color.html +0 -36
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow-checks.js +0 -20
- data/app/assets/components/web-animations-js/test/testcases/auto-test-text-shadow.html +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions-checks.js +0 -89
- data/app/assets/components/web-animations-js/test/testcases/auto-test-timing-functions.html +0 -77
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-to-animation.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d-checks.js +0 -134
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-3d.html +0 -123
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions-checks.js +0 -160
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-functions.html +0 -158
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin-checks.js +0 -37
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-origin.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives-checks.js +0 -292
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-primitives.html +0 -97
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units-checks.js +0 -202
- data/app/assets/components/web-animations-js/test/testcases/auto-test-transform-units.html +0 -98
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility-checks.js +0 -54
- data/app/assets/components/web-animations-js/test/testcases/auto-test-visibility.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug-checks.js +0 -58
- data/app/assets/components/web-animations-js/test/testcases/auto-test-wrapping-bug.html +0 -60
- 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 +0 -65
- data/app/assets/components/web-animations-js/test/testcases/disabled-auto-test-position-list-type.html +0 -103
- data/app/assets/components/web-animations-js/test/testcases/disabled-media.html +0 -439
- data/app/assets/components/web-animations-js/test/testcases/disabled-test-compositing-order.html +0 -112
- data/app/assets/components/web-animations-js/test/testcases/impl-test-deprecation.html +0 -85
- data/app/assets/components/web-animations-js/test/testcases/impl-test-from-css-value.html +0 -219
- data/app/assets/components/web-animations-js/test/testcases/impl-test-paced-timing-function.html +0 -83
- data/app/assets/components/web-animations-js/test/testcases/impl-test-totimelinetime.html +0 -37
- data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html +0 -256
- data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html +0 -57
- data/app/assets/components/web-animations-js/test/testcases/manual-test-preset-timings.html +0 -71
- data/app/assets/components/web-animations-js/test/testcases/manual-test-step.html +0 -88
- 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 +0 -69
- data/app/assets/components/web-animations-js/test/testcases/test-document-timeline.html +0 -53
- data/app/assets/components/web-animations-js/test/testcases/test-dynamic-load.html +0 -65
- data/app/assets/components/web-animations-js/test/testcases/test-fill-auto.html +0 -78
- data/app/assets/components/web-animations-js/test/testcases/test-getcurrent.html +0 -324
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-animation-effect.html +0 -248
- data/app/assets/components/web-animations-js/test/testcases/test-keyframe-composite-operation.html +0 -182
- data/app/assets/components/web-animations-js/test/testcases/test-null-target.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/test-pause-for-testing.html +0 -52
- data/app/assets/components/web-animations-js/test/testcases/test-player-addeventlistener.html +0 -161
- data/app/assets/components/web-animations-js/test/testcases/test-player-cleanup.html +0 -79
- data/app/assets/components/web-animations-js/test/testcases/test-player-finish-event.html +0 -101
- data/app/assets/components/web-animations-js/test/testcases/test-player-sort.html +0 -48
- data/app/assets/components/web-animations-js/test/testcases/test-player.html +0 -786
- data/app/assets/components/web-animations-js/test/testcases/test-pseudo-element-reference.html +0 -38
- data/app/assets/components/web-animations-js/test/testcases/test-repeated-pause.html +0 -54
- data/app/assets/components/web-animations-js/test/testcases/test-restart.html +0 -115
- data/app/assets/components/web-animations-js/test/testcases/test-reversed-player-active-phase.html +0 -28
- data/app/assets/components/web-animations-js/test/testcases/test-rotation-not-reversed.html +0 -55
- data/app/assets/components/web-animations-js/test/testcases/test-update-state.html +0 -113
- data/app/assets/components/web-animations-js/test/testcases/unit-test-clone.html +0 -80
- data/app/assets/components/web-animations-js/test/testcases/unit-test-delay.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/unit-test-dom-operations.html +0 -164
- data/app/assets/components/web-animations-js/test/testcases/unit-test-duration.html +0 -66
- data/app/assets/components/web-animations-js/test/testcases/unit-test-get-siblings.html +0 -112
- data/app/assets/components/web-animations-js/test/testcases/unit-test-modify-timing-params.html +0 -105
- data/app/assets/components/web-animations-js/test/testcases/unit-test-null-effect.html +0 -43
- data/app/assets/components/web-animations-js/test/testcases/unit-test-set-parent.html +0 -111
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness-failure.html +0 -54
- data/app/assets/components/web-animations-js/test/testcases/unit-test-testharness.html +0 -248
- data/app/assets/components/web-animations-js/test/testcases/unit-test-unpause.html +0 -68
- data/app/assets/components/web-animations-js/test/testharness_timing.css +0 -75
- data/app/assets/components/web-animations-js/test/update-testcases.py +0 -63
- data/app/assets/components/web-animations-js/tools/android/config.sh +0 -8
- data/app/assets/components/web-animations-js/tools/android/setup.sh +0 -152
- data/app/assets/components/web-animations-js/tools/android/stop.sh +0 -20
- data/app/assets/components/web-animations-js/tools/python/requirements.txt +0 -12
- data/app/assets/components/web-animations-js/tools/python/run-tests.py +0 -813
- data/app/assets/components/web-animations-js/tools/python/setup.sh +0 -60
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation-exercise-1.html +0 -62
- data/app/assets/components/web-animations-js/tutorial/basic-animations/basic-animation.html +0 -120
- data/app/assets/components/web-animations-js/tutorial/iframe-contents.html +0 -29
- data/app/assets/components/web-animations-js/tutorial/jquery.js +0 -9555
- data/app/assets/components/web-animations-js/tutorial/page-load.js +0 -114
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel-exercise-1.html +0 -58
- data/app/assets/components/web-animations-js/tutorial/parallel/parallel.html +0 -101
- data/app/assets/components/web-animations-js/tutorial/sample-tutorial.html +0 -44
- data/app/assets/components/web-animations-js/tutorial/try-it-yourself.js +0 -216
- data/app/assets/components/web-animations-js/tutorial/tutorial-style.css +0 -344
- data/app/assets/components/web-animations-js/tutorial/tutorial-testing.js +0 -84
@@ -1,37 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
-
you may not use this file except in compliance with the License.
|
4
|
-
You may obtain a copy of the License at
|
5
|
-
|
6
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
|
8
|
-
Unless required by applicable law or agreed to in writing, software
|
9
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
-
See the License for the specific language governing permissions and
|
12
|
-
limitations under the License.
|
13
|
-
-->
|
14
|
-
|
15
|
-
<!DOCTYPE html><meta charset="UTF-8">
|
16
|
-
<body></body>
|
17
|
-
<script src="../bootstrap.js" nochecks></script>
|
18
|
-
<script>
|
19
|
-
"use strict";
|
20
|
-
|
21
|
-
var timelineOne = new AnimationTimeline(_WebAnimationsTestingUtilities._constructorToken);
|
22
|
-
timelineOne._startTime = 3;
|
23
|
-
var timelineTwo = new AnimationTimeline(_WebAnimationsTestingUtilities._constructorToken);
|
24
|
-
timelineTwo._startTime = 42;
|
25
|
-
|
26
|
-
test(function() {
|
27
|
-
var startTimeOne = timelineOne._startTime;
|
28
|
-
var startTimeTwo = timelineTwo._startTime;
|
29
|
-
var otherTime = timelineTwo.currentTime;
|
30
|
-
var timelineOneTime = timelineOne.toTimelineTime(otherTime, timelineTwo);
|
31
|
-
var timelineOneTimeExpected = otherTime + startTimeTwo - startTimeOne;
|
32
|
-
|
33
|
-
assert_approx_equals(timelineOneTime, timelineOneTimeExpected, 0.00001, 'Unexpected result with fake start times.');
|
34
|
-
}, 'toTimelineTime with fake start times');
|
35
|
-
|
36
|
-
</script>
|
37
|
-
|
data/app/assets/components/web-animations-js/test/testcases/impl-unit-test-position-type.html
DELETED
@@ -1,256 +0,0 @@
|
|
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
|
-
|
19
|
-
<pre></pre>
|
20
|
-
|
21
|
-
<script src="../bootstrap.js"></script>
|
22
|
-
<script>
|
23
|
-
'use strict';
|
24
|
-
|
25
|
-
var positionListType = window._WebAnimationsTestingUtilities._positionListType;
|
26
|
-
var testParse = function(input, expected) {
|
27
|
-
test(function() {
|
28
|
-
var result = positionListType.fromCssValue(input);
|
29
|
-
if (result) {
|
30
|
-
result = positionListType.toCssValue(result);
|
31
|
-
}
|
32
|
-
assert_equals(result, expected);
|
33
|
-
}, 'from/toCssValue: ' + input);
|
34
|
-
};
|
35
|
-
|
36
|
-
var testAdd = function(base, delta, expected) {
|
37
|
-
test(function() {
|
38
|
-
assert_equals(positionListType.toCssValue(positionListType.add(
|
39
|
-
positionListType.fromCssValue(base),
|
40
|
-
positionListType.fromCssValue(delta))), expected);
|
41
|
-
}, 'add: ' + base + ' with ' + delta);
|
42
|
-
};
|
43
|
-
|
44
|
-
var testInterpolate = function(parameters) {
|
45
|
-
test(function() {
|
46
|
-
assert_equals(positionListType.toCssValue(positionListType.interpolate(
|
47
|
-
positionListType.fromCssValue(parameters.from),
|
48
|
-
positionListType.fromCssValue(parameters.to),
|
49
|
-
parameters.fraction)), parameters.expected);
|
50
|
-
}, 'interpolate: ' + parameters.from + ' to ' + parameters.to + ' at ' + parameters.fraction);
|
51
|
-
};
|
52
|
-
|
53
|
-
testParse('', '0% 0%');
|
54
|
-
|
55
|
-
testParse('left', '0% 50%');
|
56
|
-
testParse('center', '50% 50%');
|
57
|
-
testParse('right', '100% 50%');
|
58
|
-
testParse('top', '50% 0%');
|
59
|
-
testParse('bottom', '50% 100%');
|
60
|
-
testParse('10px', '10px 50%');
|
61
|
-
testParse('25%', '25% 50%');
|
62
|
-
testParse('calc(80% - 15px)', 'calc(80% + -15px) 50%');
|
63
|
-
|
64
|
-
testParse('0% 0%', '0% 0%');
|
65
|
-
testParse('0px 0px', '0px 0px');
|
66
|
-
testParse('left left', undefined);
|
67
|
-
testParse('left center', '0% 50%');
|
68
|
-
testParse('left right', undefined);
|
69
|
-
testParse('left top', '0% 0%');
|
70
|
-
testParse('left bottom', '0% 100%');
|
71
|
-
testParse('left 10px', '0% 10px');
|
72
|
-
testParse('left 25%', '0% 25%');
|
73
|
-
testParse('left calc(80% - 15px)', '0% calc(80% + -15px)');
|
74
|
-
testParse('center left', '0% 50%');
|
75
|
-
testParse('center center', '50% 50%');
|
76
|
-
testParse('center right', '100% 50%');
|
77
|
-
testParse('center top', '50% 0%');
|
78
|
-
testParse('center bottom', '50% 100%');
|
79
|
-
testParse('center 10px', '50% 10px');
|
80
|
-
testParse('center 25%', '50% 25%');
|
81
|
-
testParse('center calc(80% - 15px)', '50% calc(80% + -15px)');
|
82
|
-
testParse('right left', undefined);
|
83
|
-
testParse('right center', '100% 50%');
|
84
|
-
testParse('right right', undefined);
|
85
|
-
testParse('right top', '100% 0%');
|
86
|
-
testParse('right bottom', '100% 100%');
|
87
|
-
testParse('right 10px', '100% 10px');
|
88
|
-
testParse('right 25%', '100% 25%');
|
89
|
-
testParse('right calc(80% - 15px)', '100% calc(80% + -15px)');
|
90
|
-
testParse('top left', '0% 0%');
|
91
|
-
testParse('top center', '50% 0%');
|
92
|
-
testParse('top right', '100% 0%');
|
93
|
-
testParse('top top', undefined);
|
94
|
-
testParse('top bottom', undefined);
|
95
|
-
testParse('top 10px', undefined);
|
96
|
-
testParse('top 25%', undefined);
|
97
|
-
testParse('top calc(80% - 15px)', undefined);
|
98
|
-
testParse('bottom left', '0% 100%');
|
99
|
-
testParse('bottom center', '50% 100%');
|
100
|
-
testParse('bottom right', '100% 100%');
|
101
|
-
testParse('bottom top', undefined);
|
102
|
-
testParse('bottom bottom', undefined);
|
103
|
-
testParse('bottom 10px', undefined);
|
104
|
-
testParse('bottom 25%', undefined);
|
105
|
-
testParse('bottom calc(80% - 15px)', undefined);
|
106
|
-
testParse('10px left', undefined);
|
107
|
-
testParse('10px center', '10px 50%');
|
108
|
-
testParse('10px right', undefined);
|
109
|
-
testParse('10px top', '10px 0%');
|
110
|
-
testParse('10px bottom', '10px 100%');
|
111
|
-
testParse('10px 10px', '10px 10px');
|
112
|
-
testParse('10px 25%', '10px 25%');
|
113
|
-
testParse('10px calc(80% - 15px)', '10px calc(80% + -15px)');
|
114
|
-
testParse('25% left', undefined);
|
115
|
-
testParse('25% center', '25% 50%');
|
116
|
-
testParse('25% right', undefined);
|
117
|
-
testParse('25% top', '25% 0%');
|
118
|
-
testParse('25% bottom', '25% 100%');
|
119
|
-
testParse('25% 10px', '25% 10px');
|
120
|
-
testParse('25% 25%', '25% 25%');
|
121
|
-
testParse('25% calc(80% - 15px)', '25% calc(80% + -15px)');
|
122
|
-
testParse('calc(80% - 15px) left', undefined);
|
123
|
-
testParse('calc(80% - 15px) center', 'calc(80% + -15px) 50%');
|
124
|
-
testParse('calc(80% - 15px) right', undefined);
|
125
|
-
testParse('calc(80% - 15px) top', 'calc(80% + -15px) 0%');
|
126
|
-
testParse('calc(80% - 15px) bottom', 'calc(80% + -15px) 100%');
|
127
|
-
testParse('calc(80% - 15px) 10px', 'calc(80% + -15px) 10px');
|
128
|
-
testParse('calc(80% - 15px) 25%', 'calc(80% + -15px) 25%');
|
129
|
-
testParse('calc(80% - 15px) calc(80% - 15px)', 'calc(80% + -15px) calc(80% + -15px)');
|
130
|
-
|
131
|
-
testParse('left left 10px', undefined);
|
132
|
-
testParse('left center left', undefined);
|
133
|
-
testParse('left center 25%', undefined);
|
134
|
-
testParse('left right center', undefined);
|
135
|
-
testParse('left right calc(80% - 15px)', undefined);
|
136
|
-
testParse('left bottom 10px', '0% calc(-10px + 100%)');
|
137
|
-
testParse('left 10px right', undefined);
|
138
|
-
testParse('left 25% 25%', undefined);
|
139
|
-
testParse('left calc(80% - 15px) top', 'calc(80% + -15px) 0%');
|
140
|
-
testParse('center left top', undefined);
|
141
|
-
testParse('center center left', undefined);
|
142
|
-
testParse('center center center', undefined);
|
143
|
-
testParse('center right 10px', 'calc(-10px + 100%) 50%');
|
144
|
-
testParse('center top 25%', '50% 25%');
|
145
|
-
testParse('center 25% left', undefined);
|
146
|
-
testParse('right left right', undefined);
|
147
|
-
testParse('right left 25%', undefined);
|
148
|
-
testParse('right center 10px', undefined);
|
149
|
-
testParse('right right 25%', undefined);
|
150
|
-
testParse('right top 10px', '100% 10px');
|
151
|
-
testParse('right bottom 25%', '100% 75%');
|
152
|
-
testParse('right 25% bottom', '75% 100%');
|
153
|
-
testParse('right 10px 25%', undefined);
|
154
|
-
testParse('top left 25%', '25% 0%');
|
155
|
-
testParse('top center 25%', undefined);
|
156
|
-
testParse('top 10px right', '100% 10px');
|
157
|
-
testParse('top 10px 10px', undefined);
|
158
|
-
testParse('top calc(80% - 15px) center', '50% calc(80% + -15px)');
|
159
|
-
testParse('bottom left 10px', '10px 100%');
|
160
|
-
testParse('bottom calc(80% - 15px) right', '100% calc(20% + 15px)');
|
161
|
-
testParse('bottom calc(80% - 15px) bottom', undefined);
|
162
|
-
testParse('10px left center', undefined);
|
163
|
-
testParse('10px right 25%', undefined);
|
164
|
-
testParse('10px 25% bottom', undefined);
|
165
|
-
testParse('25% 25% 25%', undefined);
|
166
|
-
testParse('calc(80% - 15px) calc(80% - 15px) right', undefined);
|
167
|
-
|
168
|
-
testParse('left 25% left 10px', undefined);
|
169
|
-
testParse('left center left 10px', undefined);
|
170
|
-
testParse('left center top 25%', undefined);
|
171
|
-
testParse('left 10px right calc(80% - 15px)', undefined);
|
172
|
-
testParse('left 10px bottom 10px', '10px calc(-10px + 100%)');
|
173
|
-
testParse('left 25% top 25%', '25% 25%');
|
174
|
-
testParse('left calc(80% - 15px) top 10px', 'calc(80% + -15px) 10px');
|
175
|
-
testParse('center left top 10px', undefined);
|
176
|
-
testParse('center center left 25%', undefined);
|
177
|
-
testParse('center center center 10px', undefined);
|
178
|
-
testParse('center 25% right 10px', undefined);
|
179
|
-
testParse('right left right 25%', undefined);
|
180
|
-
testParse('right 10px right 25%', undefined);
|
181
|
-
testParse('top 10px center 25%', undefined);
|
182
|
-
testParse('top 10px right calc(80% - 15px)', 'calc(20% + 15px) 10px');
|
183
|
-
testParse('top 10px 10px right', undefined);
|
184
|
-
testParse('bottom calc(80% - 15px) left 10px', '10px calc(20% + 15px)');
|
185
|
-
testParse('calc(80% - 15px) 10px right 25%', undefined);
|
186
|
-
testParse('10px 25% bottom 25%', undefined);
|
187
|
-
testParse('25% 25% 25% 25%', undefined);
|
188
|
-
|
189
|
-
testParse('10px right, center center', undefined);
|
190
|
-
testParse('25% calc(80% - 15px), right 10px', '25% calc(80% + -15px), 100% 10px');
|
191
|
-
testParse('left calc(80% - 15px) top, 25% calc(80% - 15px)', 'calc(80% + -15px) 0%, 25% calc(80% + -15px)');
|
192
|
-
testParse('right left 25%, left calc(80% - 15px) top', undefined);
|
193
|
-
testParse('top center 25%, right left 25%', undefined);
|
194
|
-
|
195
|
-
testParse('10px right, center center, 25% calc(80% - 15px), right 10px', undefined);
|
196
|
-
testParse('right calc(80% - 15px) top, 25% calc(80% - 15px), top left 25%, left calc(80% - 15px) top', 'calc(20% + 15px) 0%, 25% calc(80% + -15px), 25% 0%, calc(80% + -15px) 0%');
|
197
|
-
testParse('calc(80% - 15px) 10px right 25%, left calc(80% - 15px) top 10px, center center, calc(80% - 15px) 10px right 25%', undefined);
|
198
|
-
|
199
|
-
testParse('aoeu', undefined);
|
200
|
-
testParse('aoeu, asdf', undefined);
|
201
|
-
testParse('laft 45%', undefined);
|
202
|
-
|
203
|
-
|
204
|
-
// Last parameter is expected result.
|
205
|
-
testAdd('0px 0px', '0px 0px', '0px 0px');
|
206
|
-
testAdd('0px 0px', '25px 50px', '25px 50px');
|
207
|
-
testAdd('0% 0%', '25% 50%', '25% 50%');
|
208
|
-
testAdd('10px 10%', '25px 50%', '35px 60%');
|
209
|
-
testAdd('10px 10%', '25% 50px', 'calc(10px + 25%) calc(10% + 50px)');
|
210
|
-
testAdd('10px 10%, 10px 10px', '25px 50%', '35px 60%, 10px 10px');
|
211
|
-
testAdd('10px 10%', '25px 50%, 10px 10px', '35px 60%, 10px 10px');
|
212
|
-
testAdd('10px 10%, 5% 5px', '25px 50%, 20% 20px', '35px 60%, 25% 25px');
|
213
|
-
|
214
|
-
|
215
|
-
testInterpolate({
|
216
|
-
from: '0px 0px',
|
217
|
-
to: '0px 0px',
|
218
|
-
fraction: 0.2,
|
219
|
-
expected: '0px 0px'});
|
220
|
-
testInterpolate({
|
221
|
-
from: '0px 0px',
|
222
|
-
to: '25px 50px',
|
223
|
-
fraction: 0.2,
|
224
|
-
expected: '5px 10px'});
|
225
|
-
testInterpolate({
|
226
|
-
from: '0% 0%',
|
227
|
-
to: '25% 50%',
|
228
|
-
fraction: 0.2,
|
229
|
-
expected: '5% 10%'});
|
230
|
-
testInterpolate({
|
231
|
-
from: '10px 10%',
|
232
|
-
to: '25px 50%',
|
233
|
-
fraction: 0.2,
|
234
|
-
expected: '13px 18%'});
|
235
|
-
testInterpolate({
|
236
|
-
from: '10px 10%',
|
237
|
-
to: '25% 50px',
|
238
|
-
fraction: 0.2,
|
239
|
-
expected: 'calc(8px + 5%) calc(8% + 10px)'});
|
240
|
-
testInterpolate({
|
241
|
-
from: '10px 10%, 10px 10px',
|
242
|
-
to: '25px 50%',
|
243
|
-
fraction: 0.2,
|
244
|
-
expected: '13px 18%, 8px 8px'});
|
245
|
-
testInterpolate({
|
246
|
-
from: '10px 10%',
|
247
|
-
to: '25px 50%, 10px 10px',
|
248
|
-
fraction: 0.2,
|
249
|
-
expected: '13px 18%, 2px 2px'});
|
250
|
-
testInterpolate({
|
251
|
-
from: '10px 10%, 5% 5px',
|
252
|
-
to: '25px 50%, 20% 20px',
|
253
|
-
fraction: 0.2,
|
254
|
-
expected: '13px 18%, 8% 8px'});
|
255
|
-
|
256
|
-
</script>
|
data/app/assets/components/web-animations-js/test/testcases/manual-test-add-player-onend.html
DELETED
@@ -1,57 +0,0 @@
|
|
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
|
-
|
19
|
-
<style>
|
20
|
-
#target {
|
21
|
-
background-color: lightsteelblue;
|
22
|
-
width: 50px;
|
23
|
-
height: 50px;
|
24
|
-
position: absolute;
|
25
|
-
left: 0px;
|
26
|
-
}
|
27
|
-
#expected {
|
28
|
-
background-color: darkred;
|
29
|
-
width: 50px;
|
30
|
-
height: 50px;
|
31
|
-
position: absolute;
|
32
|
-
left: 100px;
|
33
|
-
}
|
34
|
-
</style>
|
35
|
-
|
36
|
-
<div id="expected"></div>
|
37
|
-
<div id="target"></div>
|
38
|
-
|
39
|
-
<script src="../bootstrap.js"></script>
|
40
|
-
<script>
|
41
|
-
'use strict';
|
42
|
-
|
43
|
-
var test = async_test('Check second animation has fired after being triggered inside onend callback');
|
44
|
-
var element = document.querySelector('#target');
|
45
|
-
var animation = new Animation(element, {left: '50px'}, 0.5);
|
46
|
-
animation.addEventListener('end', function() {
|
47
|
-
var nextAnimation = new Animation(element, {left: '100px'}, 0.5);
|
48
|
-
nextAnimation.addEventListener('end', function() {
|
49
|
-
test.step(function() { assert_styles("#target", {left:'100px'}); });
|
50
|
-
test.done();
|
51
|
-
});
|
52
|
-
document.timeline.play(nextAnimation);
|
53
|
-
});
|
54
|
-
document.timeline.play(animation);
|
55
|
-
|
56
|
-
timing_test(function() {at(1 * 1000, function() {});}, 'Force testharness to execute to 1 second.');
|
57
|
-
</script>
|
@@ -1,71 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Copyright 2012 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
|
-
<style>
|
19
|
-
canvas {
|
20
|
-
border: silver solid 1px;
|
21
|
-
padding: 5px;
|
22
|
-
}
|
23
|
-
span {
|
24
|
-
display: inline-block;
|
25
|
-
padding: 5px;
|
26
|
-
}
|
27
|
-
</style>
|
28
|
-
<body>
|
29
|
-
|
30
|
-
<script src="../../web-animations.js"></script>
|
31
|
-
<script>
|
32
|
-
"use strict";
|
33
|
-
|
34
|
-
var size = 100;
|
35
|
-
var duration = 3.0 * 1000;
|
36
|
-
|
37
|
-
function testTiming(name) {
|
38
|
-
var canvas = document.createElement('canvas');
|
39
|
-
canvas.width = canvas.height = size;
|
40
|
-
var ctx = canvas.getContext('2d');
|
41
|
-
ctx.strokeStyle = 'blue';
|
42
|
-
ctx.beginPath();
|
43
|
-
ctx.moveTo(0, size);
|
44
|
-
var span = document.createElement('span');
|
45
|
-
span.appendChild(canvas);
|
46
|
-
span.appendChild(document.createElement('br'));
|
47
|
-
span.appendChild(document.createTextNode(name));
|
48
|
-
document.body.appendChild(span);
|
49
|
-
return new Animation(ctx,
|
50
|
-
function(timeFraction, animation) {
|
51
|
-
var inputTimeFraction = player.currentTime / duration;
|
52
|
-
animation.target.lineTo(inputTimeFraction * size, size - timeFraction * size);
|
53
|
-
animation.target.stroke();
|
54
|
-
}, {
|
55
|
-
duration: duration,
|
56
|
-
easing: name,
|
57
|
-
});
|
58
|
-
}
|
59
|
-
|
60
|
-
// TODO: Making player global like this is is rather ugly. It would be nice if
|
61
|
-
// the animation or player were passed to the custom animation effect's sample
|
62
|
-
// function.
|
63
|
-
var player = document.timeline.play(new AnimationGroup([
|
64
|
-
testTiming('ease'),
|
65
|
-
testTiming('linear'),
|
66
|
-
testTiming('ease-in'),
|
67
|
-
testTiming('ease-out'),
|
68
|
-
testTiming('ease-in-out'),
|
69
|
-
]));
|
70
|
-
|
71
|
-
</script>
|
@@ -1,88 +0,0 @@
|
|
1
|
-
<!--
|
2
|
-
Copyright 2012 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
|
-
<style>
|
19
|
-
canvas {
|
20
|
-
border: silver solid 1px;
|
21
|
-
padding: 5px;
|
22
|
-
}
|
23
|
-
span {
|
24
|
-
display: inline-block;
|
25
|
-
padding: 5px;
|
26
|
-
}
|
27
|
-
</style>
|
28
|
-
<body>
|
29
|
-
|
30
|
-
<script src="../../web-animations.js"></script>
|
31
|
-
<script>
|
32
|
-
"use strict";
|
33
|
-
|
34
|
-
var size = 100;
|
35
|
-
var duration = 3.0 * 1000;
|
36
|
-
|
37
|
-
function testStep(numSteps, position) {
|
38
|
-
var canvas = document.createElement('canvas');
|
39
|
-
canvas.width = canvas.height = size;
|
40
|
-
var ctx = canvas.getContext('2d');
|
41
|
-
ctx.beginPath();
|
42
|
-
var span = document.createElement('span');
|
43
|
-
span.appendChild(canvas);
|
44
|
-
span.appendChild(document.createElement('br'));
|
45
|
-
span.appendChild(document.createTextNode('steps: ' + numSteps));
|
46
|
-
span.appendChild(document.createElement('br'));
|
47
|
-
span.appendChild(document.createTextNode('position: ' + position));
|
48
|
-
document.body.appendChild(span);
|
49
|
-
return new Animation(ctx,
|
50
|
-
function(timeFraction, animation) {
|
51
|
-
var target = animation.target;
|
52
|
-
var inputTimeFraction = player.currentTime / duration;
|
53
|
-
if (target.lastTimeFraction !== timeFraction) {
|
54
|
-
target.beginPath();
|
55
|
-
target.moveTo(inputTimeFraction * size,
|
56
|
-
size - target.lastTimeFraction * size);
|
57
|
-
target.lineTo(inputTimeFraction * size, size - timeFraction * size);
|
58
|
-
target.strokeStyle = 'silver';
|
59
|
-
target.stroke();
|
60
|
-
target.beginPath();
|
61
|
-
target.strokeStyle = 'blue';
|
62
|
-
} else {
|
63
|
-
target.lineTo(inputTimeFraction * size, size - timeFraction * size);
|
64
|
-
}
|
65
|
-
target.lastTimeFraction = timeFraction;
|
66
|
-
target.stroke();
|
67
|
-
}, {
|
68
|
-
duration: duration,
|
69
|
-
easing: 'steps(' + numSteps + ', ' + position + ')',
|
70
|
-
});
|
71
|
-
}
|
72
|
-
|
73
|
-
// TODO: Making player global like this is is rather ugly. It would be nice if
|
74
|
-
// the animation or player were passed to the custom animation effect's sample
|
75
|
-
// function.
|
76
|
-
var player = document.timeline.play(new AnimationGroup([
|
77
|
-
testStep(1, 'start'),
|
78
|
-
testStep(1, 'middle'),
|
79
|
-
testStep(1, 'end'),
|
80
|
-
testStep(3, 'start'),
|
81
|
-
testStep(3, 'middle'),
|
82
|
-
testStep(3, 'end'),
|
83
|
-
testStep(10, 'start'),
|
84
|
-
testStep(10, 'middle'),
|
85
|
-
testStep(10, 'end'),
|
86
|
-
]));
|
87
|
-
|
88
|
-
</script>
|