Sha256: 5bd26055c205eeb44bb6b8df388a0bb0993c66f6cd969aceb4c28686a25e2e46

Contents?: true

Size: 1.73 KB

Versions: 2

Compression:

Stored size: 1.73 KB

Contents

timing_test(function() {
  at(0 * 1000, function() {
    assert_styles(".anim",{'transform':'matrix(1, 0, 0, 1, 0, 0)'});
  });
  at(0.4 * 1000, function() {
    assert_styles(".anim", [
      {'transform':'matrix(1, 0, 0, 1, 40, 0)'},
      {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 0, 0)'},
      {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 40, 0)'},
      {'transform':'matrix(0.9511, 0.309, -0.309, 0.9511, 38.04, 12.36)'},
    ]);
  });
  at(0.8 * 1000, function() {
    assert_styles(".anim", [
      {'transform':'matrix(1, 0, 0, 1, 80, 0)'},
      {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 0, 0)'},
      {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 80, 0)'},
      {'transform':'matrix(0.809, 0.5878, -0.5878, 0.809, 64.72, 47.02)'},
    ]);
  });
  at(1.2000000000000002 * 1000, function() {
    assert_styles(".anim", [
      {'transform':'matrix(1, 0, 0, 1, 120, 0)'},
      {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 0, 0)'},
      {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 120, 0)'},
      {'transform':'matrix(0.5878, 0.809, -0.809, 0.5878, 70.53, 97.08)'},
    ]);
  });
  at(1.6 * 1000, function() {
    assert_styles(".anim", [
      {'transform':'matrix(1, 0, 0, 1, 160, 0)'},
      {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 0, 0)'},
      {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 160, 0)'},
      {'transform':'matrix(0.309, 0.9511, -0.9511, 0.309, 49.44, 152.2)'},
    ]);
  });
  at(2 * 1000, function() {
    assert_styles(".anim", [
      {'transform':'matrix(1, 0, 0, 1, 200, 0)'},
      {'transform':'matrix(0, 1, -1, 0, 0, 0)'},
      {'transform':'matrix(0, 1, -1, 0, 200, 0)'},
      {'transform':'matrix(0, 1, -1, 0, 0, 200)'},
    ]);
  });
}, "Auto generated tests");

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
polymer-paper-rails-0.2.0 app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js
polymer-core-rails-0.2.0 app/assets/components/web-animations-js/test/testcases/auto-test-composite-transforms-checks.js