angular/packages/core/test/bundling/image-directive
arturovt b7bd429951 fix(common): prevent warning about oversize image twice (#58021)
I’ve noticed that there was a loop inside a loop. Since we’re already iterating through
`images` using `forEach`, it was running a `for` loop through `images` again. This was
probably a mistake made when the functionality was initially added. The test actually
verified that `logs.length` is `1`, but in the real environment, it logs twice
(which is quite obvious due to the code).

I’ve also added the missing file to the Bazel target.

PR Close #58021
2024-10-02 11:46:17 +00:00
..
e2e fix(common): skip checking whether SVGs are oversized (#57966) 2024-09-30 13:28:45 -07:00
BUILD.bazel fix(common): prevent warning about oversize image twice (#58021) 2024-10-02 11:46:17 +00:00
index.html refactor: standardize doctype declaration to <!DOCTYPE html> (#51052) 2024-02-01 19:29:46 +00:00
index.ts fix(common): skip checking whether SVGs are oversized (#57966) 2024-09-30 13:28:45 -07:00
playground.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02: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