angular/packages/core/test/bundling/image-directive
Alex Castle 4fde292bb5 feat(common): Add automatic srcset generation to ngOptimizedImage (#47547)
Add a feature to automatically generate the srcset attribute for images using the NgOptimizedImage directive. Uses the 'sizes' attribute to determine the appropriate srcset to generate.

PR Close #47547
2022-10-10 16:21:08 +00:00
..
e2e feat(common): Add automatic srcset generation to ngOptimizedImage (#47547) 2022-10-10 16:21:08 +00:00
BUILD.bazel refactor(common): minor NgOptimizedImage directive updates (#47082) 2022-08-16 17:36:54 +00:00
index.html test(common): configure e2e testing infrastructure for NgOptimizedImage test app (#47082) 2022-08-16 17:36:52 +00:00
index.ts feat(common): warn if rendered size is much smaller than intrinsic (#47082) 2022-08-16 17:36:54 +00:00
playground.ts fix(common): rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362) 2022-09-09 14:25:37 -07:00
README.md test(common): add e2e tests for LCP check logic of the NgOptimizedImage directive (#47082) 2022-08-16 17:36:52 +00:00

  • NgOptimizedImage directive testing

This folder contains a simple application that can be used as a playground for the NgOptimizedImage directive testing. You can run the following command to start the dev server:

yarn ibazel run packages/core/test/bundling/image-directive:devserver

There is also a set of e2e tests (powered by Protractor), which can be invoked by running:

yarn bazel test packages/core/test/bundling/image-directive:protractor_tests