<!doctype html> <!– @license Copyright © 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at polymer.github.io/LICENSE The complete set of authors may be found at polymer.github.io/AUTHORS The complete set of contributors may be found at polymer.github.io/CONTRIBUTORS Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at polymer.github.io/PATENTS –> <html> <head>
<meta charset="UTF-8"> <title>registerEffect</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <script src="../../../webcomponentsjs/webcomponents-lite.js"></script> <script src="../../../web-component-tester/browser.js"></script> <script src="../../../test-fixture/test-fixture-mocha.js"></script> <link rel="import" href="../../../test-fixture/test-fixture.html"> <link rel="import" href="../helpers.html">
</head> <body>
<script> suite('Polymer.AppLayout.registerEffect', function() { test('should register the effects', function() { Polymer.AppLayout.registerEffect('test', { setUp: Function(), run: Function(), tearDown: Function() }); assert.isFunction(Polymer.AppLayout._scrollEffects.test.setUp); assert.isFunction(Polymer.AppLayout._scrollEffects.test.run); assert.isFunction(Polymer.AppLayout._scrollEffects.test.tearDown); }); }); </script>
</body> </html>