UNPKG

webcomponents-lazy-img

Version:

Lazy loading img element

32 lines (27 loc) 821 B
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes"> <title>lazy-image test</title> <script src="../../../@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script> <script src="../../../wct-browser-legacy/browser.js"></script> <script type="module" src="../lazy-img.js"></script> </head> <body> <test-fixture id="basic"> <template> <lazy-img></lazy-img> </template> </test-fixture> <script type="module"> import '../lazy-img.js'; suite('lazy-img', function() { test('instantiating the element works', function() { var element = fixture('basic'); assert.equal(element.is, 'lazy-img'); }); }); </script> </body> </html>